diff options
author | GitExample <git@example.com> | 2022-02-03 01:47:56 +0100 |
---|---|---|
committer | GitExample <git@example.com> | 2022-02-03 01:47:56 +0100 |
commit | ea671766d7589d4efdb81996237dca9290b329c1 (patch) | |
tree | 69f927caf6f2024a9ee187381cbe19354be5d793 | |
parent | 4c9d8e1b3fc80fa0c23ed78015ab6238bf88dd06 (diff) | |
download | Viper-ea671766d7589d4efdb81996237dca9290b329c1.tar.gz Viper-ea671766d7589d4efdb81996237dca9290b329c1.zip |
added English localizations
I forgot about these before...
-rw-r--r-- | src/app/browser.js | 8 | ||||
-rw-r--r-- | 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) { <div class="text"> <div class="title">${properties.title}</div> <div class="description">${properties.description} - ${lang("gui.browser.madeby")} ${properties.author}</div> - <button onclick="installFromURL('${properties.download}')">${installstring}</button> + <button onclick="installFromURL('${properties.download}')">${installstr}</button> <button class="visual">${properties.version}</button> </div> </div> @@ -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...", |