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
electron: Translate title bar button
Elian Doran28b8e59b4dc4
diff --git a/src/public/app/widgets/title_bar_buttons.js b/src/public/app/widgets/title_bar_buttons.jsindex ef5d5a8164..edb270f779 100644--- a/src/public/app/widgets/title_bar_buttons.js+++ b/src/public/app/widgets/title_bar_buttons.js@@ -1,6 +1,7 @@import BasicWidget from "./basic_widget.js";import options from "../services/options.js";import utils from "../services/utils.js";+import { t } from "../services/i18n.js";const TPL = `<div class="title-bar-buttons">@@ -41,7 +42,7 @@ const TPL = `</style><!-- divs act as a hitbox for the buttons, making them clickable on corners -->- <div class="top-btn" title="Keep this window on top. "><button class="btn bx bx-pin"></button></div>+ <div class="top-btn" title="${t("title_bar_buttons.window-on-top")}"><button class="btn bx bx-pin"></button></div><div class="minimize-btn"><button class="btn bx bx-minus"></button></div><div class="maximize-btn"><button class="btn bx bx-checkbox"></button></div><div class="close-btn"><button class="btn bx bx-x"></button></div>diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex 3788ec532b..8b96ebf42f 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -1365,5 +1365,8 @@"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"+ },+ "title_bar_buttons": {+ "window-on-top": "Keep this window on top."}}diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.jsonindex 58b7f20dd8..74d005cfb8 100644--- a/src/public/translations/ro/translation.json+++ b/src/public/translations/ro/translation.json@@ -1365,5 +1365,8 @@"save-changes": "Salvează și aplică modificările","scroll-active-title": "Mergi la notița activă","tree-settings-title": "Setări ale ierarhiei notițelor"+ },+ "title_bar_buttons": {+ "window-on-top": "Menține fereastra mereu vizibilă"}}