mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
add translation for buttons: edit button
This commit is contained in:
parent
75e8a6cdc0
commit
d84f4387c5
@ -2,6 +2,7 @@ import OnClickButtonWidget from "./onclick_button.js";
|
|||||||
import appContext from "../../components/app_context.js";
|
import appContext from "../../components/app_context.js";
|
||||||
import attributeService from "../../services/attributes.js";
|
import attributeService from "../../services/attributes.js";
|
||||||
import protectedSessionHolder from "../../services/protected_session_holder.js";
|
import protectedSessionHolder from "../../services/protected_session_holder.js";
|
||||||
|
import { t } from "../../services/i18n.js";
|
||||||
|
|
||||||
export default class EditButton extends OnClickButtonWidget {
|
export default class EditButton extends OnClickButtonWidget {
|
||||||
isEnabled() {
|
isEnabled() {
|
||||||
@ -14,7 +15,7 @@ export default class EditButton extends OnClickButtonWidget {
|
|||||||
super();
|
super();
|
||||||
|
|
||||||
this.icon("bx-edit-alt")
|
this.icon("bx-edit-alt")
|
||||||
.title("Edit this note")
|
.title(t("edit_button.edit_this_note"))
|
||||||
.titlePlacement("bottom")
|
.titlePlacement("bottom")
|
||||||
.onClick(widget => {
|
.onClick(widget => {
|
||||||
this.noteContext.viewScope.readOnlyTemporarilyDisabled = true;
|
this.noteContext.viewScope.readOnlyTemporarilyDisabled = true;
|
||||||
|
@ -555,5 +555,8 @@
|
|||||||
},
|
},
|
||||||
"create_pane_button": {
|
"create_pane_button": {
|
||||||
"create_new_split": "拆分面板"
|
"create_new_split": "拆分面板"
|
||||||
|
},
|
||||||
|
"edit_button": {
|
||||||
|
"edit_this_note": "编辑此笔记"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -556,5 +556,8 @@
|
|||||||
},
|
},
|
||||||
"create_pane_button": {
|
"create_pane_button": {
|
||||||
"create_new_split": "Create new split"
|
"create_new_split": "Create new split"
|
||||||
|
},
|
||||||
|
"edit_button": {
|
||||||
|
"edit_this_note": "Edit this note"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user