From 4fe1940a06e23963c3b80efdcbd11d436a0b5f59 Mon Sep 17 00:00:00 2001 From: aandrew-me Date: Tue, 18 Nov 2025 18:19:45 +0300 Subject: [PATCH] Translation updates and minor changes --- html/compressor.html | 3 --- html/preferences.html | 2 +- main.js | 2 +- src/compressor.js | 16 +++------------- 4 files changed, 5 insertions(+), 18 deletions(-) diff --git a/html/compressor.html b/html/compressor.html index 866e4f2..1c5aa92 100644 --- a/html/compressor.html +++ b/html/compressor.html @@ -11,9 +11,6 @@ - - Text copied - menu diff --git a/html/preferences.html b/html/preferences.html index cf326cb..67edd25 100644 --- a/html/preferences.html +++ b/html/preferences.html @@ -130,7 +130,7 @@
Proxy -
diff --git a/main.js b/main.js index 6bccf66..0392c9b 100644 --- a/main.js +++ b/main.js @@ -384,7 +384,7 @@ function registerIpcHandlers() { type: "error", title: "Error", message: message, - buttons: ["Ok", "Copy error"], + buttons: ["Ok", i18n("clickToCopy")], }); if (response === 1) clipboard.writeText(message); }); diff --git a/src/compressor.js b/src/compressor.js index 7cfe3f8..fdb31c2 100644 --- a/src/compressor.js +++ b/src/compressor.js @@ -170,7 +170,7 @@ async function startCompression() { } else { updateProgress("success", "", itemId); const fileSavedElement = document.createElement("b"); - fileSavedElement.textContent = "File saved. Click to open"; + fileSavedElement.textContent = i18n.__("fileSavedClickToOpen"); fileSavedElement.onclick = () => { ipcRenderer.send("show-file", outputPath); }; @@ -182,7 +182,7 @@ async function startCompression() { errorElement.onclick = () => { ipcRenderer.send("error_dialog", error.message); }; - errorElement.textContent = "Error. Click for details"; + errorElement.textContent = i18n.__("errorClickForDetails"); updateProgress("error", "", itemId); getId(itemId + "_prog").appendChild(errorElement); currentItemId = ""; @@ -647,14 +647,4 @@ getId("homeWin").addEventListener("click", () => { closeMenu(); menuIsOpen = false; ipcRenderer.send("load-win", __dirname + "/index.html"); -}); - -// Popup message -function showPopup(text) { - console.log("Triggered showpopup"); - getId("popupText").textContent = text; - getId("popupText").style.display = "inline-block"; - setTimeout(() => { - getId("popupText").style.display = "none"; - }, 2200); -} +}); \ No newline at end of file