mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
client: Translate note icon
This commit is contained in:
parent
17c8708b54
commit
d0061794dd
@ -70,9 +70,9 @@ const TPL = `
|
|||||||
<button class="btn dropdown-toggle note-icon" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="${t("note_icon.change_note_icon")}"></button>
|
<button class="btn dropdown-toggle note-icon" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="${t("note_icon.change_note_icon")}"></button>
|
||||||
<div class="dropdown-menu" aria-labelledby="note-path-list-button" style="width: 610px;">
|
<div class="dropdown-menu" aria-labelledby="note-path-list-button" style="width: 610px;">
|
||||||
<div class="filter-row">
|
<div class="filter-row">
|
||||||
<span>Category:</span> <select name="icon-category" class="form-control"></select>
|
<span>${t("note_icon.category")}</span> <select name="icon-category" class="form-control"></select>
|
||||||
|
|
||||||
<span>Search:</span> <input type="text" name="icon-search" class="form-control" />
|
<span>${t("note_icon.search")}</span> <input type="text" name="icon-search" class="form-control" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="icon-list"></div>
|
<div class="icon-list"></div>
|
||||||
@ -151,7 +151,7 @@ export default class NoteIconWidget extends NoteContextAwareWidget {
|
|||||||
this.$iconList.append(
|
this.$iconList.append(
|
||||||
$(`<div style="text-align: center">`)
|
$(`<div style="text-align: center">`)
|
||||||
.append(
|
.append(
|
||||||
$('<button class="btn btn-sm">Reset to default icon</button>')
|
$(`<button class="btn btn-sm">${t("note_icon.reset-default")}</button>`)
|
||||||
.on('click', () => this.getIconLabels()
|
.on('click', () => this.getIconLabels()
|
||||||
.forEach(label => attributeService.removeAttributeById(this.noteId, label.attributeId))
|
.forEach(label => attributeService.removeAttributeById(this.noteId, label.attributeId))
|
||||||
)
|
)
|
||||||
|
@ -680,7 +680,10 @@
|
|||||||
"error_unrecognized_command": "Unrecognized command {{command}}"
|
"error_unrecognized_command": "Unrecognized command {{command}}"
|
||||||
},
|
},
|
||||||
"note_icon": {
|
"note_icon": {
|
||||||
"change_note_icon": "Change note icon"
|
"change_note_icon": "Change note icon",
|
||||||
|
"category": "Category:",
|
||||||
|
"search": "Search:",
|
||||||
|
"reset-default": "Reset to default icon"
|
||||||
},
|
},
|
||||||
"basic_properties": {
|
"basic_properties": {
|
||||||
"note_type": "Note type",
|
"note_type": "Note type",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user