Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
Fix localization of general error during upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nagmat84 committed Oct 19, 2022
1 parent 9a085f5 commit 069b906
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/main/lychee_locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
4 changes: 2 additions & 2 deletions scripts/main/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 069b906

Please sign in to comment.