mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
client: Translate protected switch
This commit is contained in:
parent
38ac4318b9
commit
a0fdaabb1f
@ -1,3 +1,4 @@
|
|||||||
|
import { t } from "../services/i18n.js";
|
||||||
import protectedSessionService from "../services/protected_session.js";
|
import protectedSessionService from "../services/protected_session.js";
|
||||||
import SwitchWidget from "./switch.js";
|
import SwitchWidget from "./switch.js";
|
||||||
|
|
||||||
@ -5,11 +6,11 @@ export default class ProtectedNoteSwitchWidget extends SwitchWidget {
|
|||||||
doRender() {
|
doRender() {
|
||||||
super.doRender();
|
super.doRender();
|
||||||
|
|
||||||
this.$switchOnName.text("Protect the note");
|
this.$switchOnName.text(t("protect_note.toggle-on"));
|
||||||
this.$switchOnButton.attr("title", "Note is not protected, click to make it protected");
|
this.$switchOnButton.attr("title", t("protect_note.toggle-on-hint"));
|
||||||
|
|
||||||
this.$switchOffName.text("Unprotect the note");
|
this.$switchOffName.text(t("protect_note.toggle-off"));
|
||||||
this.$switchOffButton.attr("title", "Note is protected, click to make it unprotected");
|
this.$switchOffButton.attr("title", t("protect_note.toggle-off-hint"));
|
||||||
}
|
}
|
||||||
|
|
||||||
switchOn() {
|
switchOn() {
|
||||||
|
@ -1299,5 +1299,11 @@
|
|||||||
"launcher": "Launcher",
|
"launcher": "Launcher",
|
||||||
"doc": "Doc",
|
"doc": "Doc",
|
||||||
"widget": "Widget"
|
"widget": "Widget"
|
||||||
|
},
|
||||||
|
"protect_note": {
|
||||||
|
"toggle-on": "Protect the note",
|
||||||
|
"toggle-off": "Unprotect the note",
|
||||||
|
"toggle-on-hint": "Note is not protected, click to make it protected",
|
||||||
|
"toggle-off-hint": "Note is protected, click to make it unprotected"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1299,5 +1299,11 @@
|
|||||||
"image": "Imagine",
|
"image": "Imagine",
|
||||||
"launcher": "Scurtătură",
|
"launcher": "Scurtătură",
|
||||||
"widget": "Widget"
|
"widget": "Widget"
|
||||||
|
},
|
||||||
|
"protect_note": {
|
||||||
|
"toggle-off": "Deprotejează notița",
|
||||||
|
"toggle-off-hint": "Notița este protejată, click pentru a o deproteja",
|
||||||
|
"toggle-on": "Protejează notița",
|
||||||
|
"toggle-on-hint": "Notița nu este protejată, clic pentru a o proteja"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user