Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(i18n): translate note tree buttons
Elian Doran947a7d1ad4c7
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.jsindex b0acc39ec3..c0bb297f8e 100644--- a/src/public/app/widgets/note_tree.js+++ b/src/public/app/widgets/note_tree.js@@ -548,28 +548,28 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {const isHoistedNote = activeNoteContext && activeNoteContext.hoistedNoteId === note.noteId && note.noteId !== 'root';if (note.hasLabel('workspace') && !isHoistedNote) {- const $enterWorkspaceButton = $('<span class="tree-item-button enter-workspace-button bx bx-door-open" title="Hoist this note (workspace)"></span>')+ const $enterWorkspaceButton = $(`<span class="tree-item-button enter-workspace-button bx bx-door-open" title="${t("note_tree.hoist-this-note-workspace")}"></span>`).on("click", cancelClickPropagation);$span.append($enterWorkspaceButton);}if (note.type === 'search') {- const $refreshSearchButton = $('<span class="tree-item-button refresh-search-button bx bx-refresh" title="Refresh saved search results"></span>')+ const $refreshSearchButton = $(`<span class="tree-item-button refresh-search-button bx bx-refresh" title="${t("note_tree.refresh-saved-search-results")}"></span>`).on("click", cancelClickPropagation);$span.append($refreshSearchButton);}if (!['search', 'launcher'].includes(note.type) && !note.isOptions() && !note.isLaunchBarConfig()) {- const $createChildNoteButton = $('<span class="tree-item-button add-note-button bx bx-plus" title="Create child note"></span>')+ const $createChildNoteButton = $(`<span class="tree-item-button add-note-button bx bx-plus" title="${t("note_tree.create-child-note")}"></span>`).on("click", cancelClickPropagation);$span.append($createChildNoteButton);}if (isHoistedNote) {- const $unhoistButton = $('<span class="tree-item-button unhoist-button bx bx-door-open" title="Unhoist"></span>')+ const $unhoistButton = $(`<span class="tree-item-button unhoist-button bx bx-door-open" title="${t("note_tree.unhoist")}"></span>`).on("click", cancelClickPropagation);$span.append($unhoistButton);diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex fc5885a8d1..5406e80531 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -1459,7 +1459,11 @@"automatically-collapse-notes-title": "Notes will be collapsed after period of inactivity to declutter the tree.","save-changes": "Save & apply changes","auto-collapsing-notes-after-inactivity": "Auto collapsing notes after inactivity...",- "saved-search-note-refreshed": "Saved search note refreshed."+ "saved-search-note-refreshed": "Saved search note refreshed.",+ "hoist-this-note-workspace": "Hoist this note (workspace)",+ "refresh-saved-search-results": "Refresh saved search results",+ "create-child-note": "Create child note",+ "unhoist": "Unhoist"},"title_bar_buttons": {"window-on-top": "Keep Window on Top"diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.jsonindex e7e5f55206..4df6d06406 100644--- a/src/public/translations/ro/translation.json+++ b/src/public/translations/ro/translation.json@@ -1449,7 +1449,11 @@"scroll-active-title": "Mergi la notița activă","tree-settings-title": "Setări ale ierarhiei notițelor","auto-collapsing-notes-after-inactivity": "Se minimizează notițele după inactivitate...",- "saved-search-note-refreshed": "Notița de căutare salvată a fost reîmprospătată."+ "saved-search-note-refreshed": "Notița de căutare salvată a fost reîmprospătată.",+ "create-child-note": "Crează subnotiță",+ "hoist-this-note-workspace": "Focalizează spațiul de lucru",+ "refresh-saved-search-results": "Reîmprospătează căutarea salvată",+ "unhoist": "Defocalizează notița"},"title_bar_buttons": {"window-on-top": "Menține fereastra mereu vizibilă"