update: syncManager locale
This commit is contained in:
parent
778922db3a
commit
bfa3dd60f5
|
|
@ -68,15 +68,6 @@
|
|||
overflow: hidden;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
.footer-container {
|
||||
padding: 5px;
|
||||
margin: 0;
|
||||
height: 30px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
.list-viewport {
|
||||
width: 100%;
|
||||
background-color: #ffffff;
|
||||
|
|
@ -87,15 +78,8 @@
|
|||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.tool-button {
|
||||
width: 75px;
|
||||
max-width: 75px;
|
||||
min-width: 75px;
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
margin: 0 10px 0 10px;
|
||||
}
|
||||
</style>
|
||||
<link rel="localization" href="__addonRef__-syncManager.ftl" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="viewport-container">
|
||||
|
|
@ -106,26 +90,11 @@
|
|||
<div
|
||||
class="footer-container"
|
||||
style="justify-content: flex-start; padding: 10px"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
>
|
||||
<button class="tool-button" id="refresh" locale-target="innerHTML">
|
||||
syncManager.refresh
|
||||
</button>
|
||||
<button
|
||||
class="tool-button"
|
||||
id="sync"
|
||||
locale-target="innerHTML,title"
|
||||
title="syncManager.syncDetail"
|
||||
>
|
||||
syncManager.sync
|
||||
</button>
|
||||
<button
|
||||
class="tool-button"
|
||||
id="unSync"
|
||||
locale-target="innerHTML,title"
|
||||
title="syncManager.unSyncDetail"
|
||||
>
|
||||
syncManager.unSync
|
||||
</button>
|
||||
<button id="refresh" data-l10n-id="refresh"></button>
|
||||
<button id="sync" data-l10n-id="sync"></button>
|
||||
<button id="unSync" data-l10n-id="unSync"></button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -56,12 +56,6 @@ export-confirm = Export
|
|||
export-cancel = Close
|
||||
export-target = Target
|
||||
|
||||
syncManager-title = Sync Manager
|
||||
syncManager-refresh = Refresh
|
||||
syncManager-sync = Sync
|
||||
syncManager-syncDetail = Check and sync immedietly
|
||||
syncManager-unSync = UnSync
|
||||
syncManager-unSyncDetail = Remove selected notes from syncing list
|
||||
syncManager-noteName = Note Name
|
||||
syncManager-lastSync = Last Sync
|
||||
syncManager-filePath = MarkDown Path
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
title = Sync Manager
|
||||
refresh =
|
||||
.label = Refresh
|
||||
sync =
|
||||
.label = Sync
|
||||
unSync =
|
||||
.label = UnSync
|
||||
|
|
@ -56,12 +56,6 @@ export-confirm=Экспорт
|
|||
export-cancel=Закрыть
|
||||
export-target=Цель
|
||||
|
||||
syncManager-title=Синк Менеджер
|
||||
syncManager-refresh=Обновить
|
||||
syncManager-sync=Синк
|
||||
syncManager-syncDetail=Проверить и синкнуть немедленно
|
||||
syncManager-unSync=ДеСинк
|
||||
syncManager-unSyncDetail=Удалить выделенные заметки из списка синхронизации
|
||||
syncManager-noteName=Имя заметки
|
||||
syncManager-lastSync=Последний Синк
|
||||
syncManager-filePath=MarkDown путь
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
title = Синк Менеджер
|
||||
refresh =
|
||||
.label = Обновить
|
||||
sync =
|
||||
.label = Синк
|
||||
unSync =
|
||||
.label = ДеСинк
|
||||
|
|
@ -56,12 +56,6 @@ export-confirm=导出
|
|||
export-cancel=关闭
|
||||
export-target=目标
|
||||
|
||||
syncManager-title=同步管理
|
||||
syncManager-refresh=刷新
|
||||
syncManager-sync=同步
|
||||
syncManager-syncDetail=检查并立即同步
|
||||
syncManager-unSync=取消同步
|
||||
syncManager-unSyncDetail=从同步列表中移除选中的笔记
|
||||
syncManager-noteName=笔记名称
|
||||
syncManager-lastSync=最近同步
|
||||
syncManager-filePath=MarkDown路径
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
title = 同步管理
|
||||
refresh =
|
||||
.label = 刷新
|
||||
sync =
|
||||
.label = 同步
|
||||
unSync =
|
||||
.label = 取消同步
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { config } from "../../../package.json";
|
||||
import { getLinkedNotesRecursively, getNoteLink } from "../../utils/link";
|
||||
import { getString } from "../../utils/locale";
|
||||
import { isWindowAlive, localeWindow } from "../../utils/window";
|
||||
import { isWindowAlive } from "../../utils/window";
|
||||
|
||||
export async function showSyncManager() {
|
||||
if (isWindowAlive(addon.data.sync.manager.window)) {
|
||||
|
|
@ -19,7 +19,6 @@ export async function showSyncManager() {
|
|||
)!;
|
||||
await windowArgs._initPromise.promise;
|
||||
addon.data.sync.manager.window = win;
|
||||
localeWindow(win);
|
||||
updateData();
|
||||
addon.data.sync.manager.tableHelper = new ztoolkit.VirtualizedTable(win!)
|
||||
.setContainerId("table-container")
|
||||
|
|
|
|||
Loading…
Reference in New Issue