mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
add translation for 2 ribbon widgets
This commit is contained in:
parent
835891999e
commit
2916182cdf
@ -1,3 +1,4 @@
|
||||
import { t } from "../../services/i18n.js";
|
||||
import NoteContextAwareWidget from "../note_context_aware_widget.js";
|
||||
|
||||
const TPL = `
|
||||
@ -10,7 +11,7 @@ const TPL = `
|
||||
</style>
|
||||
|
||||
<div style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap">
|
||||
This note was originally taken from: <a class="page-url external"></a>
|
||||
${t('note_properties.this_note_was_originally_taken_from')} <a class="page-url external"></a>
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
@ -26,7 +27,7 @@ export default class NotePropertiesWidget extends NoteContextAwareWidget {
|
||||
return {
|
||||
show: this.isEnabled(),
|
||||
activate: true,
|
||||
title: 'Info',
|
||||
title: t('note_properties.info'),
|
||||
icon: 'bx bx-info-square'
|
||||
};
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { t } from "../../services/i18n.js";
|
||||
import NoteContextAwareWidget from "../note_context_aware_widget.js";
|
||||
import AttributeDetailWidget from "../attribute_widgets/attribute_detail.js";
|
||||
import AttributeEditorWidget from "../attribute_widgets/attribute_editor.js";
|
||||
@ -48,7 +49,7 @@ export default class OwnedAttributeListWidget extends NoteContextAwareWidget {
|
||||
getTitle() {
|
||||
return {
|
||||
show: !this.note.isLaunchBarConfig(),
|
||||
title: "Owned Attributes",
|
||||
title: t('owned_attribute_list.owned_attributes'),
|
||||
icon: "bx bx-list-check"
|
||||
};
|
||||
}
|
||||
|
@ -730,5 +730,12 @@
|
||||
"outside_hoisted": "此路径在提升的笔记之外,您需要取消提升。",
|
||||
"archived": "已归档",
|
||||
"search": "搜索"
|
||||
},
|
||||
"note_properties": {
|
||||
"this_note_was_originally_taken_from": "笔记来源:",
|
||||
"info": "信息"
|
||||
},
|
||||
"owned_attribute_list": {
|
||||
"owned_attributes": "拥有的属性"
|
||||
}
|
||||
}
|
||||
|
@ -731,5 +731,12 @@
|
||||
"outside_hoisted": "This path is outside of hoisted note and you would have to unhoist.",
|
||||
"archived": "Archived",
|
||||
"search": "Search"
|
||||
},
|
||||
"note_properties": {
|
||||
"this_note_was_originally_taken_from": "This note was originally taken from:",
|
||||
"info": "Info"
|
||||
},
|
||||
"owned_attribute_list": {
|
||||
"owned_attributes": "Owned Attributes"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user