aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-02-02 16:32:38 +0100
committerGitHub <noreply@github.com>2023-02-02 16:32:38 +0100
commit2e655b7ee5a9ad66e64dee94c8e22ad800ef38e2 (patch)
tree43f63f4831fd31503bca50494869eabf6dc1ba4c /src
parent4703574ebf54e269c19a0c4c8a5061e35b9727c6 (diff)
parent195319b09a18c2dcc0885950dfba622ade645acd (diff)
downloadViper-2e655b7ee5a9ad66e64dee94c8e22ad800ef38e2.tar.gz
Viper-2e655b7ee5a9ad66e64dee94c8e22ad800ef38e2.zip
Merge pull request #171 from 0neGal/modlist-localization
feat: Localize revamped modlist
Diffstat (limited to 'src')
-rw-r--r--src/app/js/browser.js14
-rw-r--r--src/app/js/mods.js14
-rw-r--r--src/lang/de.json2
-rw-r--r--src/lang/en.json2
-rw-r--r--src/lang/es.json4
-rw-r--r--src/lang/fr.json2
6 files changed, 31 insertions, 7 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/de.json b/src/lang/de.json
index e281ff5..8e3a482 100644
--- a/src/lang/de.json
+++ b/src/lang/de.json
@@ -54,6 +54,7 @@
"gui.mods": "Mods",
"gui.mods.count": "Installierte Mods:",
"gui.mods.disabledtag": "Deaktiviert",
+ "gui.mods.remove": "Entfernen",
"gui.mods.install": "Installiere den Mod",
"gui.mods.find": "Suche nach Mods",
"gui.mods.toggleall": "Aktiviere/Deaktiviere alle Mods",
@@ -63,6 +64,7 @@
"gui.mods.removeall.confirm": "Das Entfernen aller Mods führt meist dazu das eine Neuinstallation von Northstar nötig ist. Bist du dir sicher das du diese Aktion durchführen willst?",
"gui.mods.required.confirm": "Du hast einen von Northstar benötigten Mod ausgewählt, bist du dir sicher das du diese Aktion durchführen willst",
"gui.mods.notamod": "Kein Mod!",
+ "gui.mods.unknown_author": "Unbekannt",
"gui.mods.extracting": "Extrahiere den Mod...",
"gui.mods.installing": "Installiere den Mod...",
"gui.mods.installedmod": "Mod installiert!",
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!",
diff --git a/src/lang/es.json b/src/lang/es.json
index 64c3f01..774e2af 100644
--- a/src/lang/es.json
+++ b/src/lang/es.json
@@ -68,7 +68,9 @@
"gui.mods.installedmod": "¡Modificación instalada!",
"gui.mods.dragdrop": "Arrastra y suelta una modificación para instalarla",
"gui.mods.confirmdependencies": "Este paquete tiene dependencias, se muestran abajo. Presionar \"Ok\" instalará el paquete y las dependencias.\n\n",
-
+ "gui.mods.remove": "Remover",
+ "gui.mods.unknown_author": "Desconocido",
+
"gui.browser.info": "Información",
"gui.browser.madeby": "por",
"gui.browser.search": "Buscar...",
diff --git a/src/lang/fr.json b/src/lang/fr.json
index 94c31c8..89aa457 100644
--- a/src/lang/fr.json
+++ b/src/lang/fr.json
@@ -54,6 +54,7 @@
"gui.mods": "Mods",
"gui.mods.count": "Mods installés :",
"gui.mods.disabledtag": "Désactivé",
+ "gui.mods.remove": "Supprimer",
"gui.mods.install": "Installer le mod",
"gui.mods.find": "Chercher des mods",
"gui.mods.toggleall": "Activer/désactiver tous les mods",
@@ -63,6 +64,7 @@
"gui.mods.removeall.confirm": "Supprimer tous les mods vous forcera à réinstaller Northstar, souhaitez-vous faire cela ?",
"gui.mods.required.confirm": "Vous avez sélectionné un mod de base, Northstar peut ne pas fonctionner sans celui-ci. Souhaitez-vous faire cela ?",
"gui.mods.notamod": "Ceci n'est pas un mod !",
+ "gui.mods.unknown_author": "Inconnu",
"gui.mods.extracting": "Extraction du mod...",
"gui.mods.installing": "Installation du mod...",
"gui.mods.installedmod": "Mod installé !",