From ea671766d7589d4efdb81996237dca9290b329c1 Mon Sep 17 00:00:00 2001 From: GitExample Date: Thu, 3 Feb 2022 01:47:56 +0100 Subject: added English localizations I forgot about these before... --- src/app/browser.js | 8 ++++---- src/lang/en.json | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/browser.js b/src/app/browser.js index 357a076..7fbae1d 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -61,9 +61,9 @@ function BrowserEl(properties) { browserEntries.innerHTML = ""; } - let installstring = "Install"; + let installstr = lang("gui.browser.install"); if (normalize(modsdiv.innerText.split("\n")).includes(normalize(properties.title))) { - installstring = "Re-Install"; + installstr = lang("gui.browser.reinstall"); } browserEntries.innerHTML += ` @@ -74,7 +74,7 @@ function BrowserEl(properties) {
${properties.title}
${properties.description} - ${lang("gui.browser.madeby")} ${properties.author}
- +
@@ -86,7 +86,7 @@ ipcRenderer.on("installedmod", (event, modname) => { modname = normalize(modname); if (document.getElementById(modname)) { - document.getElementById(modname).querySelector(".text button").innerHTML = "Re-Install"; + document.getElementById(modname).querySelector(".text button").innerHTML = lang("gui.browser.reinstall"); } }) diff --git a/src/lang/en.json b/src/lang/en.json index 0d29115..47bfacb 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -65,6 +65,8 @@ "gui.browser.loading": "Loading mods...", "gui.browser.madeby": "by", + "gui.browser.install": "Install", + "gui.browser.reinstall": "Re-Install", "gui.update.downloading": "Downloading...", "gui.update.extracting": "Extracting update...", -- cgit v1.2.3