localized strings

This commit is contained in:
JFH
2021-05-10 00:12:11 +02:00
parent 6fd0e6420b
commit 8b67334e37
5 changed files with 11 additions and 11 deletions

View File

@@ -226,7 +226,7 @@ class LayersPanel {
return;
}
if (this.editor.svgCanvas.getCurrentDrawing().hasLayer(newName)) {
alert(this.uiStrings.notification.dupeLayerName);
alert(this.i18next.t('notification.dupeLayerName'));
return;
}
this.editor.svgCanvas.createLayer(newName);
@@ -270,7 +270,7 @@ class LayersPanel {
return;
}
if (this.editor.svgCanvas.getCurrentDrawing().hasLayer(newName)) {
alert(this.uiStrings.notification.dupeLayerName);
alert(this.i18next.t('notification.dupeLayerName'));
return;
}
this.editor.svgCanvas.cloneLayer(newName);
@@ -323,7 +323,7 @@ class LayersPanel {
*/
layerRename() {
const oldName = document.querySelector("#layerlist tr.layersel td.layername").textContent;
const newName = prompt(this.uiStrings.notification.enterNewLayerName, "");
const newName = prompt(this.i18next.t('notification.enterNewLayerName'), "");
if (!newName) {
return;
}