aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-02-01 17:20:34 +0100
committer0neGal <mail@0negal.com>2023-02-01 17:20:34 +0100
commit74289689ba85b2156c774e717bf15e6cbbf407e3 (patch)
tree8cd640f148f13c5fed04f8f28034c5fbe98176ba
parent4703574ebf54e269c19a0c4c8a5061e35b9727c6 (diff)
downloadViper-74289689ba85b2156c774e717bf15e6cbbf407e3.tar.gz
Viper-74289689ba85b2156c774e717bf15e6cbbf407e3.zip
en.json modlist localizations
-rw-r--r--src/app/js/browser.js14
-rw-r--r--src/app/js/mods.js14
-rw-r--r--src/lang/en.json2
3 files changed, 24 insertions, 6 deletions
diff --git a/src/app/js/browser.js b/src/app/js/browser.js
index ece28bd..4f8b68a 100644
--- a/src/app/js/browser.js
+++ b/src/app/js/browser.js
@@ -401,10 +401,18 @@ function BrowserEl(properties) {
<div class="text">
<div class="title">${properties.title}</div>
<div class="description">${properties.description}</div>
- <button class="install bg-blue" onclick=''>${installstr}</button>
- <button class="info" onclick="Preview.set('${properties.url}')">${lang('gui.browser.view')}</button>
+ <button class="install bg-blue" onclick=''>
+ ${installstr}
+ </button>
+ <button class="info" onclick="Preview.set('${properties.url}')">
+ ${lang('gui.browser.view')}
+ </button>
+
<button class="visual">${properties.version}</button>
- <button class="visual">${lang("gui.browser.madeby")} ${properties.author}</button>
+ <button class="visual">
+ ${lang("gui.browser.madeby")}
+ ${properties.author}
+ </button>
</div>
`
diff --git a/src/app/js/mods.js b/src/app/js/mods.js
index c80221b..fd900a2 100644
--- a/src/app/js/mods.js
+++ b/src/app/js/mods.js
@@ -35,10 +35,18 @@ mods.load = (mods_obj) => {
<div class="title">${mod.Name}</div>
<div class="description">${mod.Description}</div>
<button class="switch on orange"></button>
- <button class="update bg-blue">${lang("gui.browser.update")}</button>
- <button class="bg-red" onclick="mods.remove('${mod.Name}')">Remove</button>
+ <button class="update bg-blue">
+ ${lang("gui.browser.update")}
+ </button>
+ <button class="bg-red" onclick="mods.remove('${mod.Name}')">
+ ${lang("gui.mods.remove")}
+ </button>
+
<button class="visual">${mod.Version}</button>
- <button class="visual">by ${mod.Author || "Unknown"}</button>
+ <button class="visual">
+ ${lang("gui.browser.madeby")}
+ ${mod.Author || lang("gui.mods.unknown_author")}
+ </button>
</div>
`;
diff --git a/src/lang/en.json b/src/lang/en.json
index cfb294a..3627151 100644
--- a/src/lang/en.json
+++ b/src/lang/en.json
@@ -54,6 +54,7 @@
"gui.mods": "Mods",
"gui.mods.count": "Mods Installed:",
"gui.mods.disabledtag": "Disabled",
+ "gui.mods.remove": "Remove",
"gui.mods.install": "Install Mod",
"gui.mods.find": "Find Mods",
"gui.mods.toggleall": "Toggle All",
@@ -63,6 +64,7 @@
"gui.mods.removeall.confirm": "Removing all mods will usually require you to reinstall Northstar. Are you sure?",
"gui.mods.required.confirm": "You've selected a core mod, Northstar may not function without it. Are you sure?",
"gui.mods.notamod": "Not a mod!",
+ "gui.mods.unknown_author": "Unknown",
"gui.mods.extracting": "Extracting mod...",
"gui.mods.installing": "Installing mod...",
"gui.mods.installedmod": "Installed mod!",