From 069b9065850e8f37d0d61c4b5a7eca067ee7e0cc Mon Sep 17 00:00:00 2001 From: Matthias Nagel Date: Wed, 19 Oct 2022 10:41:15 +0200 Subject: [PATCH] Fix localization of general error during upload --- scripts/main/lychee_locale.js | 1 + scripts/main/upload.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/main/lychee_locale.js b/scripts/main/lychee_locale.js index e199f4f3..f4d3c6ef 100644 --- a/scripts/main/lychee_locale.js +++ b/scripts/main/lychee_locale.js @@ -438,6 +438,7 @@ lychee.locale = { UPLOAD_FAILED_WARNING: "Upload failed. Server returned a warning!", UPLOAD_SKIPPED: "Skipped", UPLOAD_UPDATED: "Updated", + UPLOAD_GENERAL: "General", UPLOAD_IMPORT_SKIPPED_DUPLICATE: "This photo has been skipped because it's already in your library.", UPLOAD_IMPORT_RESYNCED_DUPLICATE: "This photo has been skipped because it's already in your library, but its metadata has been updated.", UPLOAD_ERROR_CONSOLE: "Please take a look at the console of your browser for further details.", diff --git a/scripts/main/upload.js b/scripts/main/upload.js index ef5ccce9..60a4edc8 100644 --- a/scripts/main/upload.js +++ b/scripts/main/upload.js @@ -252,7 +252,7 @@ upload.start = { // Error upload.showProgressReportCloseButton(); if (shallCancelUpload) { - const row = upload.buildReportRow("General"); + const row = upload.buildReportRow(lychee.locale["UPLOAD_GENERAL"]); row.status.textContent = lychee.locale["UPLOAD_CANCELLED"]; row.status.classList.add("warning"); upload._dom.reportList.appendChild(row.listEntry); @@ -779,7 +779,7 @@ upload.start = { } else { // The event report does not refer to a // specific directory. - row = upload.buildReportRow("General"); + row = upload.buildReportRow(lychee.locale["UPLOAD_GENERAL"]); upload._dom.reportList.appendChild(row.listEntry); } row.listEntry.scrollIntoView(upload.SCROLL_OPTIONS);