mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
client: Translate note tree
This commit is contained in:
parent
d0061794dd
commit
a3aa6b0628
@ -18,6 +18,7 @@ import options from "../services/options.js";
|
|||||||
import protectedSessionHolder from "../services/protected_session_holder.js";
|
import protectedSessionHolder from "../services/protected_session_holder.js";
|
||||||
import dialogService from "../services/dialog.js";
|
import dialogService from "../services/dialog.js";
|
||||||
import shortcutService from "../services/shortcuts.js";
|
import shortcutService from "../services/shortcuts.js";
|
||||||
|
import { t } from "../services/i18n.js";
|
||||||
|
|
||||||
const TPL = `
|
const TPL = `
|
||||||
<div class="tree-wrapper">
|
<div class="tree-wrapper">
|
||||||
@ -99,15 +100,15 @@ const TPL = `
|
|||||||
|
|
||||||
<div class="tree-actions">
|
<div class="tree-actions">
|
||||||
<button class="tree-floating-button bx bx-layer-minus collapse-tree-button"
|
<button class="tree-floating-button bx bx-layer-minus collapse-tree-button"
|
||||||
title="Collapse note tree"
|
title="${t("note_tree.collapse-title")}"
|
||||||
data-trigger-command="collapseTree"></button>
|
data-trigger-command="collapseTree"></button>
|
||||||
|
|
||||||
<button class="tree-floating-button bx bx-crosshair scroll-to-active-note-button"
|
<button class="tree-floating-button bx bx-crosshair scroll-to-active-note-button"
|
||||||
title="Scroll to active note"
|
title="${t("note_tree.scroll-active-title")}"
|
||||||
data-trigger-command="scrollToActiveNote"></button>
|
data-trigger-command="scrollToActiveNote"></button>
|
||||||
|
|
||||||
<button class="tree-floating-button bx bxs-tree tree-settings-button"
|
<button class="tree-floating-button bx bxs-tree tree-settings-button"
|
||||||
title="Tree settings"></button>
|
title="${t("note_tree.tree-settings-title")}"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -116,22 +117,22 @@ const TPL = `
|
|||||||
<label class="form-check-label">
|
<label class="form-check-label">
|
||||||
<input class="form-check-input hide-archived-notes" type="checkbox" value="">
|
<input class="form-check-input hide-archived-notes" type="checkbox" value="">
|
||||||
|
|
||||||
Hide archived notes
|
${t("note_tree.hide-archived-notes")}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<label class="form-check-label">
|
<label class="form-check-label">
|
||||||
<input class="form-check-input auto-collapse-note-tree" type="checkbox" value="">
|
<input class="form-check-input auto-collapse-note-tree" type="checkbox" value="">
|
||||||
|
|
||||||
Automatically collapse notes
|
${t("note_tree.automatically-collapse-notes")}
|
||||||
<span class="bx bx-info-circle"
|
<span class="bx bx-info-circle"
|
||||||
title="Notes will be collapsed after period of inactivity to declutter the tree."></span>
|
title="${t("note_tree.automatically-collapse-notes-title")}"></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<button class="btn btn-sm btn-primary save-tree-settings-button" type="submit">Save & apply changes</button>
|
<button class="btn btn-sm btn-primary save-tree-settings-button" type="submit">${t("note_tree.save-changes")}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -1356,5 +1356,14 @@
|
|||||||
"no-results": "No results found",
|
"no-results": "No results found",
|
||||||
"more-results": "... and {{number}} more results.",
|
"more-results": "... and {{number}} more results.",
|
||||||
"show-in-full-search": "Show in full search"
|
"show-in-full-search": "Show in full search"
|
||||||
|
},
|
||||||
|
"note_tree": {
|
||||||
|
"collapse-title": "Collapse note tree",
|
||||||
|
"scroll-active-title": "Scroll to active note",
|
||||||
|
"tree-settings-title": "Tree settings",
|
||||||
|
"hide-archived-notes": "Hide archived notes",
|
||||||
|
"automatically-collapse-notes": "Automatically collapse notes",
|
||||||
|
"automatically-collapse-notes-title": "Notes will be collapsed after period of inactivity to declutter the tree.",
|
||||||
|
"save-changes": "Save & apply changes"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user