Skip to content

Build your personal knowledge base with Trilium Notes

client: Translate note icon

Elian Dorand0061794dd3d
diff --git a/src/public/app/widgets/note_icon.js b/src/public/app/widgets/note_icon.js
index 7718974443..e93e4e09bd 100644
--- a/src/public/app/widgets/note_icon.js
+++ b/src/public/app/widgets/note_icon.js
@@ -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>
<div class="dropdown-menu" aria-labelledby="note-path-list-button" style="width: 610px;">
<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 class="icon-list"></div>
@@ -151,7 +151,7 @@ export default class NoteIconWidget extends NoteContextAwareWidget {
this.$iconList.append(
$(`<div style="text-align: center">`)
.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()
.forEach(label => attributeService.removeAttributeById(this.noteId, label.attributeId))
)
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index 5296197065..e778b71d33 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -680,7 +680,10 @@
"error_unrecognized_command": "Unrecognized command {{command}}"
},
"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": {
"note_type": "Note type",