aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/app/browser.js8
-rw-r--r--src/lang/en.json2
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...",