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
i18n: Translate launcher context menu
Elian Doran9ed7eb977ebf
diff --git a/src/public/app/menus/launcher_context_menu.js b/src/public/app/menus/launcher_context_menu.jsindex 1db6bb1f67..b7c722daea 100644--- a/src/public/app/menus/launcher_context_menu.js+++ b/src/public/app/menus/launcher_context_menu.js@@ -34,20 +34,20 @@ export default class LauncherContextMenu {const isAvailableItem = parentNoteId === '_lbAvailableLaunchers';const isItem = isVisibleItem || isAvailableItem;const canBeDeleted = !note.noteId.startsWith("_"); // fixed notes can't be deleted- const canBeReset = !canBeDeleted && note.isLaunchBarConfig();;+ const canBeReset = !canBeDeleted && note.isLaunchBarConfig();return [- (isVisibleRoot || isAvailableRoot) ? { title: 'Add a note launcher', command: 'addNoteLauncher', uiIcon: "bx bx-plus" } : null,- (isVisibleRoot || isAvailableRoot) ? { title: 'Add a script launcher', command: 'addScriptLauncher', uiIcon: "bx bx-plus" } : null,- (isVisibleRoot || isAvailableRoot) ? { title: 'Add a custom widget', command: 'addWidgetLauncher', uiIcon: "bx bx-plus" } : null,- (isVisibleRoot || isAvailableRoot) ? { title: 'Add spacer', command: 'addSpacerLauncher', uiIcon: "bx bx-plus" } : null,+ (isVisibleRoot || isAvailableRoot) ? { title: t("launcher_context_menu.add-note-launcher"), command: 'addNoteLauncher', uiIcon: "bx bx-plus" } : null,+ (isVisibleRoot || isAvailableRoot) ? { title: t("launcher_context_menu.add-script-launcher"), command: 'addScriptLauncher', uiIcon: "bx bx-plus" } : null,+ (isVisibleRoot || isAvailableRoot) ? { title: t("launcher_context_menu.add-custom-widget"), command: 'addWidgetLauncher', uiIcon: "bx bx-plus" } : null,+ (isVisibleRoot || isAvailableRoot) ? { title: t("launcher_context_menu.add-spacer"), command: 'addSpacerLauncher', uiIcon: "bx bx-plus" } : null,(isVisibleRoot || isAvailableRoot) ? { title: "----" } : null,- { title: 'Delete <kbd data-command="deleteNotes"></kbd>', command: "deleteNotes", uiIcon: "bx bx-trash", enabled: canBeDeleted },- { title: 'Reset', command: "resetLauncher", uiIcon: "bx bx-empty", enabled: canBeReset},+ { title: `${t("launcher_context_menu.delete")} <kbd data-command="deleteNotes"></kbd>`, command: "deleteNotes", uiIcon: "bx bx-trash", enabled: canBeDeleted },+ { title: t("launcher_context_menu.reset"), command: "resetLauncher", uiIcon: "bx bx-empty", enabled: canBeReset},{ title: "----" },- isAvailableItem ? { title: 'Move to visible launchers', command: "moveLauncherToVisible", uiIcon: "bx bx-show", enabled: true } : null,- isVisibleItem ? { title: 'Move to available launchers', command: "moveLauncherToAvailable", uiIcon: "bx bx-hide", enabled: true } : null,- { title: `Duplicate launcher <kbd data-command="duplicateSubtree">`, command: "duplicateSubtree", uiIcon: "bx bx-empty",+ isAvailableItem ? { title: t("launcher_context_menu.move-to-visible-launchers"), command: "moveLauncherToVisible", uiIcon: "bx bx-show", enabled: true } : null,+ isVisibleItem ? { title: t("launcher_context_menu.move-to-available-launchers"), command: "moveLauncherToAvailable", uiIcon: "bx bx-hide", enabled: true } : null,+ { title: `${t("launcher_context_menu.duplicate-launcher")} <kbd data-command="duplicateSubtree">`, command: "duplicateSubtree", uiIcon: "bx bx-empty",enabled: isItem }].filter(row => row !== null);}diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex 608f1a0e76..2ca89c155a 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -1476,6 +1476,15 @@"confirm_unhoisting": "Requested note '{{requestedNote}}' is outside of hoisted note '{{hoistedNote}}' subtree and you must unhoist to access the note. Do you want to proceed with unhoisting?"},"launcher_context_menu": {- "reset_launcher_confirm": "Do you really want to reset \"{{title}}\"? All data / settings in this note (and its children) will be lost and the launcher will be returned to its original location."+ "reset_launcher_confirm": "Do you really want to reset \"{{title}}\"? All data / settings in this note (and its children) will be lost and the launcher will be returned to its original location.",+ "add-note-launcher": "Add a note launcher",+ "add-script-launcher": "Add a script launcher",+ "add-custom-widget": "Add a custom widget",+ "add-spacer": "Add spacer",+ "delete": "Delete",+ "reset": "Reset",+ "move-to-visible-launchers": "Move to visible launchers",+ "move-to-available-launchers": "Move to available launchers",+ "duplicate-launcher": "Duplicate launcher"}}diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.jsonindex fb6521a320..dd4052b804 100644--- a/src/public/translations/ro/translation.json+++ b/src/public/translations/ro/translation.json@@ -1476,6 +1476,15 @@"confirm_unhoisting": "Notița dorită „{{requestedNote}}” este în afara ierarhiei notiței focalizate „{{hoistedNote}}”. Doriți defocalizarea pentru a accesa notița?"},"launcher_context_menu": {- "reset_launcher_confirm": "Doriți resetarea lansatorului „{{title}}”? Toate datele și setările din această notiță (și subnotițele ei) vor fi pierdute, iar lansatorul va fi resetat în poziția lui originală."+ "reset_launcher_confirm": "Doriți resetarea lansatorului „{{title}}”? Toate datele și setările din această notiță (și subnotițele ei) vor fi pierdute, iar lansatorul va fi resetat în poziția lui originală.",+ "add-custom-widget": "Adaugă un widget personalizat",+ "add-note-launcher": "Adaugă un lansator de notiță",+ "add-script-launcher": "Adaugă un lansator de script",+ "add-spacer": "Adaugă un separator",+ "delete": "Șterge",+ "duplicate-launcher": "Dublifică lansatorul",+ "move-to-available-launchers": "Mută în Lansatoare disponibile",+ "move-to-visible-launchers": "Mută în Lansatoare vizibile",+ "reset": "Resetează"}}