mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
electron: Translate title bar button
This commit is contained in:
parent
51b6725b91
commit
28b8e59b4d
@ -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>
|
||||
|
@ -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."
|
||||
}
|
||||
}
|
||||
|
@ -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ă"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user