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

@@ -14,7 +14,6 @@ class LayersPanel {
* @param {PlainObject} editor
*/
constructor(editor) {
this.uiStrings = editor.uiStrings;
this.updateContextPanel = editor.topPanel.updateContextPanel;
this.sidedrag = -1;
this.sidedragging = false;
@@ -215,11 +214,11 @@ class LayersPanel {
let uniqName;
let i = this.editor.svgCanvas.getCurrentDrawing().getNumLayers();
do {
uniqName = this.uiStrings.layers.layer + " " + ++i;
uniqName = this.editor.i18next.t("layers.layer") + " " + ++i;
} while (this.editor.svgCanvas.getCurrentDrawing().hasLayer(uniqName));
const newName = prompt(
this.i18next.t('notification.enterUniqueLayerName'),
this.editor.i18next.t('notification.enterUniqueLayerName'),
uniqName
);
if (!newName) {

View File

@@ -15,7 +15,6 @@ class TopPanel {
*/
constructor(editor) {
this.editor = editor;
this.uiStrings = editor.uiStrings;
}
/**
* @type {module}