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

@@ -27,7 +27,7 @@ class MainMenu {
*/
async clickClear() {
const [x, y] = this.editor.configObj.curConfig.dimensions;
const ok = await seConfirm(this.editor.uiStrings.notification.QwantToClear);
const ok = await seConfirm(this.editor.i18next.t('notification.QwantToClear'));
if (ok === "Cancel") {
return;
}
@@ -72,15 +72,15 @@ class MainMenu {
this.editor.svgCanvas.setDocumentTitle(title);
if (w !== "fit" && !isValidUnit("width", w)) {
seAlert(this.editor.uiStrings.notification.invalidAttrValGiven);
seAlert(this.editor.i18next.t('notification.invalidAttrValGiven'));
return false;
}
if (h !== "fit" && !isValidUnit("height", h)) {
seAlert(this.editor.uiStrings.notification.invalidAttrValGiven);
seAlert(this.editor.i18next.t('notification.invalidAttrValGiven'));
return false;
}
if (!this.editor.svgCanvas.setResolution(w, h)) {
seAlert(this.editor.uiStrings.notification.noContentToFitTo);
seAlert(this.editor.i18next.t('notification.noContentToFitTo'));
return false;
}
// Set image save option