i18n: Translate note map buttons

This commit is contained in:
Elian Doran 2024-09-08 11:59:24 +03:00
parent 4f7bbee769
commit c0d613c46d
No known key found for this signature in database
3 changed files with 11 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import appContext from "../components/app_context.js";
import NoteContextAwareWidget from "./note_context_aware_widget.js";
import linkContextMenuService from "../menus/link_context_menu.js";
import utils from "../services/utils.js";
import { t } from "../services/i18n.js";
const esc = utils.escapeHtml;
@ -30,8 +31,8 @@ const TPL = `<div class="note-map-widget" style="position: relative;">
</style>
<div class="btn-group btn-group-sm map-type-switcher" role="group">
<button type="button" class="btn bx bx-network-chart" title="Link Map" data-type="link"></button>
<button type="button" class="btn bx bx-sitemap" title="Tree map" data-type="tree"></button>
<button type="button" class="btn bx bx-network-chart" title="${t("note-map.button-link-map")}" data-type="link"></button>
<button type="button" class="btn bx bx-sitemap" title="${t("note-map.button-tree-map")}" data-type="tree"></button>
</div>
<div class="style-resolver"></div>

View File

@ -1244,5 +1244,9 @@
"note_is_editable": "Note is editable if it's not too long.",
"note_is_read_only": "Note is read-only, but can be edited with a button click.",
"note_is_always_editable": "Note is always editable, regardless of its length."
},
"note-map": {
"button-link-map": "Link Map",
"button-tree-map": "Tree map"
}
}

View File

@ -1244,5 +1244,9 @@
},
"svg_export_button": {
"button_title": "Exportă diagrama ca SVG"
},
"note-map": {
"button-link-map": "Harta legăturilor",
"button-tree-map": "Harta ierarhiei"
}
}