aboutsummaryrefslogtreecommitdiff
path: root/src/app/browser.js
diff options
context:
space:
mode:
authorGitExample <git@example.com>2022-02-03 01:47:56 +0100
committerGitExample <git@example.com>2022-02-03 01:47:56 +0100
commitea671766d7589d4efdb81996237dca9290b329c1 (patch)
tree69f927caf6f2024a9ee187381cbe19354be5d793 /src/app/browser.js
parent4c9d8e1b3fc80fa0c23ed78015ab6238bf88dd06 (diff)
downloadViper-ea671766d7589d4efdb81996237dca9290b329c1.tar.gz
Viper-ea671766d7589d4efdb81996237dca9290b329c1.zip
added English localizations
I forgot about these before...
Diffstat (limited to 'src/app/browser.js')
-rw-r--r--src/app/browser.js8
1 files changed, 4 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");
}
})