fix some translation issues

This commit is contained in:
JFH
2021-05-16 16:44:13 +02:00
parent 81a31c3dad
commit 8001005a19
5 changed files with 6 additions and 19 deletions

View File

@@ -309,7 +309,7 @@ class Editor extends EditorStartup {
mod = modBits[0] + '+';
key = modBits[1];
}
keyStr += (i ? '/' : '') + mod + (this.uiStrings['key_' + key] || key);
keyStr += (i ? '/' : '') + mod + (this.i18next.t('key_' + key) || key);
});
if (menu) {
this.lastChild.textContent = t + ' [' + keyStr + ']';
@@ -329,15 +329,6 @@ class Editor extends EditorStartup {
});
}
/**
* Expose the `uiStrings`.
* @function module:SVGthis.canvas.getUIStrings
* @returns {module:SVGthis.uiStrings}
*/
getUIStrings() {
return this.uiStrings;
}
/**
* @param {boolean} editmode
* @param {module:svgcanvas.SvgCanvas#event:selected} elems
@@ -1054,7 +1045,6 @@ class Editor extends EditorStartup {
const oldLayerName = ($id('#layerlist')) ? $id('#layerlist').querySelector('tr.layersel td.layername').textContent : "";
const renameLayer = (oldLayerName === this.i18next.t('notification.common.layer') + ' 1');
// this.svgCanvas.setUiStrings(allStrings);
this.setTitles();
if (renameLayer) {