electron: Translate title bar button

This commit is contained in:
Elian Doran 2024-09-13 22:56:30 +03:00
parent 51b6725b91
commit 28b8e59b4d
No known key found for this signature in database
3 changed files with 8 additions and 1 deletions

View File

@ -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>

View File

@ -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."
}
}

View File

@ -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ă"
}
}