aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-09-16 02:17:46 +0200
committer0neGal <mail@0negal.com>2023-09-16 02:20:05 +0200
commitb125018808b43fac9f5c81d7e7b07ec92eef30fc (patch)
tree1356b2236b3f26525d1fc13f10b684ac0baebb30 /src
parenta91f0d2eac46510c109a4faebf520f68a3456aab (diff)
downloadViper-b125018808b43fac9f5c81d7e7b07ec92eef30fc.tar.gz
Viper-b125018808b43fac9f5c81d7e7b07ec92eef30fc.zip
made some lang keys far more logical
Most of these are from back when Viper was originally started, I also removed a few keys as they were no longer in use, but were forgotten about, most of these are from pre-v1.0.0 aka, the old smaller UI
Diffstat (limited to 'src')
-rw-r--r--src/app/index.html6
-rw-r--r--src/app/js/browser.js8
-rw-r--r--src/app/js/mods.js10
-rw-r--r--src/app/js/settings.js9
-rw-r--r--src/app/main.js6
-rw-r--r--src/cli.js12
-rw-r--r--src/index.js2
-rw-r--r--src/lang/de.json104
-rw-r--r--src/lang/en.json108
-rw-r--r--src/lang/es.json105
-rw-r--r--src/lang/fr.json106
-rw-r--r--src/modules/gamepath.js2
-rw-r--r--src/modules/launch.js4
-rw-r--r--src/modules/mods.js28
-rw-r--r--src/modules/requests.js4
-rw-r--r--src/modules/settings.js2
-rw-r--r--src/modules/update.js14
17 files changed, 249 insertions, 281 deletions
diff --git a/src/app/index.html b/src/app/index.html
index c61960f..4a8dca9 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -26,7 +26,7 @@
<div id="dragUI">
<div id="dragitems">
<div id="icon"></div>
- <div id="text">%%gui.mods.dragdrop%%</div>
+ <div id="text">%%gui.mods.drag_n_drop%%</div>
</div>
</div>
@@ -238,8 +238,8 @@
<div class="line">
<div class="text" id="modcount">%%gui.mods.title%%</div>
<div class="buttons modbtns">
- <button id="removeall" class="bg-red2" onclick="mods.remove('allmods')">%%gui.mods.removeall%%</button>
- <button id="toggleall" class="bg-orange2" onclick="mods.toggle('allmods')">%%gui.mods.toggleall%%</button>
+ <button id="removeall" class="bg-red2" onclick="mods.remove('allmods')">%%gui.mods.remove_all%%</button>
+ <button id="toggleall" class="bg-orange2" onclick="mods.toggle('allmods')">%%gui.mods.toggle_all%%</button>
<button id="installmod" class="bg-blue" onclick="installmod()">%%gui.mods.install%%</button>
<button id="findmod" class="bg-blue2" onclick="Browser.toggle(true)">%%gui.mods.find%%</button>
</div>
diff --git a/src/app/js/browser.js b/src/app/js/browser.js
index f3b11c9..8283e9b 100644
--- a/src/app/js/browser.js
+++ b/src/app/js/browser.js
@@ -231,7 +231,7 @@ var Browser = {
return
}
- Browser.msg(`<button id="loadmore">${lang("gui.browser.loadmore")}</button>`);
+ Browser.msg(`<button id="loadmore">${lang("gui.browser.load_more")}</button>`);
loadmore.addEventListener("click", () => {
Browser.loadpkgs(pkgs);
Browser.endoflist(! pkgs.length);
@@ -427,7 +427,7 @@ function BrowserEl(properties) {
<button class="visual">${properties.version}</button>
<button class="visual">
- ${lang("gui.browser.madeby")}
+ ${lang("gui.browser.made_by")}
${properties.author}
</button>
</div>
@@ -490,8 +490,8 @@ ipcRenderer.on("no-internet", (event, modname) => {
new Toast({
timeout: 10000,
scheme: "error",
- title: lang("gui.toast.noInternet.title"),
- description: lang("gui.toast.noInternet.desc")
+ title: lang("gui.toast.title.no_internet"),
+ description: lang("gui.toast.desc.no_internet")
})
})
diff --git a/src/app/js/mods.js b/src/app/js/mods.js
index 696f01a..b17cadd 100644
--- a/src/app/js/mods.js
+++ b/src/app/js/mods.js
@@ -63,7 +63,7 @@ mods.load = (mods_obj) => {
<button class="visual">${version.format(mod_details.version)}</button>
<button class="visual">
- ${lang("gui.browser.madeby")}
+ ${lang("gui.browser.made_by")}
${mod.author || lang("gui.mods.unknown_author")}
</button>
</div>
@@ -183,11 +183,11 @@ mods.load = (mods_obj) => {
mods.remove = (mod) => {
if (mod.toLowerCase().match(/^northstar\./)) {
- if (! confirm(lang("gui.mods.required.confirm"))) {
+ if (! confirm(lang("gui.mods.required_confirm"))) {
return;
}
} else if (mod == "allmods") {
- if (! confirm(lang("gui.mods.removeall.confirm"))) {
+ if (! confirm(lang("gui.mods.remove_all.confirm"))) {
return;
}
}
@@ -197,11 +197,11 @@ mods.remove = (mod) => {
mods.toggle = (mod) => {
if (mod.toLowerCase().match(/^northstar\./)) {
- if (! confirm(lang("gui.mods.required.confirm"))) {
+ if (! confirm(lang("gui.mods.required_confirm"))) {
return;
}
} else if (mod == "allmods") {
- if (! confirm(lang("gui.mods.toggleall.confirm"))) {
+ if (! confirm(lang("gui.mods.toggle_all_confirm"))) {
return;
}
}
diff --git a/src/app/js/settings.js b/src/app/js/settings.js
index 69ee7b8..db29300 100644
--- a/src/app/js/settings.js
+++ b/src/app/js/settings.js
@@ -65,15 +65,18 @@ var Settings = {
let div = options[i].querySelector("select");
div.innerHTML = "";
- let langs = fs.readdirSync(__dirname + "/../lang");
+ let lang_dir = __dirname + "/../lang";
+ let langs = fs.readdirSync(lang_dir);
for (let i in langs) {
+ let lang_file = require(lang_dir + "/" + langs[i]);
let lang_no_extension = langs[i].replace(/\..*$/, "");
- let title = lang("lang.title", lang_no_extension);
- if (title == "lang.title") {
+ if (! lang_file.lang || ! lang_file.lang.title) {
continue;
}
+ let title = lang_file.lang.title;
+
if (title) {
div.innerHTML += `<option value="${lang_no_extension}">${title}</option>`
}
diff --git a/src/app/main.js b/src/app/main.js
index b7058ce..f7deb41 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -177,7 +177,7 @@ ipcRenderer.on("ns-update-event", (event, key) => {
console.log(lang(key));
switch(key) {
case "cli.update.uptodate.short":
- case "cli.update.noInternet":
+ case "cli.update.no_internet":
setButtons(true);
playNsBtn.innerText = lang("gui.launch");
break;
@@ -241,7 +241,7 @@ function installFromURL(url, dependencies, clearqueue, author, package_name, ver
package_name: pkg[1]
});
- prettydepends.push(`${pkg[1]} v${pkg[2]} - ${lang("gui.browser.madeby")} ${pkg[0]}`);
+ prettydepends.push(`${pkg[1]} v${pkg[2]} - ${lang("gui.browser.made_by")} ${pkg[0]}`);
}
}
}
@@ -356,7 +356,7 @@ ipcRenderer.on("version", (event, versions) => {
// Since Northstar is not installed, we cannot launch it
shouldInstallNorthstar = true;
- playNsBtn.innerText = lang("gui.installnorthstar");
+ playNsBtn.innerText = lang("gui.install");
}
}); ipcRenderer.send("get-version");
diff --git a/src/cli.js b/src/cli.js
index 9ba5fd7..16a23d4 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -65,13 +65,13 @@ async function init() {
--cli ${lang("cli.help.cli")}
--update ${lang("cli.help.update")}
- --update-viper ${lang("cli.help.updatevp")}
+ --update-viper ${lang("cli.help.update_vp")}
--setpath ${lang("cli.help.setpath")}
- --no-vp-updates ${lang("cli.help.novpupdates")}
+ --no-vp-updates ${lang("cli.help.no_vp_updates")}
- --installmod ${lang("cli.help.installmod")}
- --removemod ${lang("cli.help.removemod")}
- --togglemod ${lang("cli.help.togglemod")}`)
+ --installmod ${lang("cli.help.install_mod")}
+ --removemod ${lang("cli.help.remove_mod")}
+ --togglemod ${lang("cli.help.toggle_mod")}`)
// In the future --setpath should be able to understand
// relative paths, instead of just absolute ones.
exit();
@@ -88,7 +88,7 @@ async function init() {
if (cli.getSwitchValue("setpath") != "") {
ipcMain.emit("setpathcli", cli.getSwitchValue("setpath"));
} else {
- console.error(lang("cli.setpath.noarg"));
+ console.error(lang("cli.setpath.no_arg"));
exit(1);
}
}
diff --git a/src/index.js b/src/index.js
index b8a9f97..2a7f4d7 100644
--- a/src/index.js
+++ b/src/index.js
@@ -209,7 +209,7 @@ ipcMain.on("setlang", (event, lang) => {
ipcMain.on("update-northstar", async () => {
if (await is_running.game()) {
- return win_show.alert(lang("general.autoupdates.gamerunning"));
+ return win_show.alert(lang("general.auto_updates.game_running"));
}
update.northstar();
diff --git a/src/lang/de.json b/src/lang/de.json
index 1432a8b..bb7c189 100644
--- a/src/lang/de.json
+++ b/src/lang/de.json
@@ -11,36 +11,36 @@
"cli": "Zwingt die CLI Einstellung auf \"an\".",
"update": "Aktualisiert den Installationspfad von Northstar, durch den gegeben Installationspfad von Titanfall 2.",
"setpath": "Setzt den Installationspfad von Titanfall 2.",
- "updatevp": "Aktualisiert Viper, falls dies unterstützt wird.",
- "novpupdates": "Überschreibt viper.json und deaktiviert das Aktualisieren von Viper.",
- "installmod": "Installiert einen Mod, eine ZIP-Datei oder einen Ordner.",
- "removemod": "Entfernt einen Mod.",
- "togglemod": "Aktiviert/Deaktiviert einen Mod."
+ "update_vp": "Aktualisiert Viper, falls dies unterstützt wird.",
+ "no_vp_updates": "Überschreibt viper.json und deaktiviert das Aktualisieren von Viper.",
+ "install_mod": "Installiert einen Mod, eine ZIP-Datei oder einen Ordner.",
+ "remove_mod": "Entfernt einen Mod.",
+ "toggle_mod": "Aktiviert/Deaktiviert einen Mod."
},
"setpath": {
- "noarg": "Keine Argument für --setpath wurden angegeben!"
+ "no_arg": "Keine Argument für --setpath wurden angegeben!"
},
"update": {
"current": "Jetzige Version:",
"downloading": "Wird heruntergeladen...",
"checking": "Überprüfe auf Updates...",
- "downloaddone": "Herunterladen abgeschlossen! Extrahiere...",
+ "download_done": "Herunterladen abgeschlossen! Extrahiere...",
"finished": "Installation/Aktualisierung abeschlossen!",
"uptodate": "Installation ist bereits auf dem neusten Stand (%s), aktualisieren wird übersprungen.",
- "noInternet": "Keine Internetverbindung"
+ "no_internet": "Keine Internetverbindung"
},
- "autoupdates": {
+ "auto_updates": {
"checking": "Überprüfe Northstar auf Updates...",
"available": "Ein Update für Northstar wurde gefunden!",
- "updatingns": "Updateprozess wird gestartet...",
- "noupdate": "Kein Update für Northstar vorhanden."
+ "updating_ns": "Updateprozess wird gestartet...",
+ "no_update": "Kein Update für Northstar vorhanden."
},
"launch": {
- "linuxerror": "Das Spiel starten ist derzeit nicht auf Linux unterstützt"
+ "linux_error": "Das Spiel starten ist derzeit nicht auf Linux unterstützt"
},
"gamepath": {
@@ -52,10 +52,10 @@
"removed": "Mod wurde erfolgreich entfernt!",
"toggled": "Mod wurde erfolgreich aktiviert/deaktiviert!",
"installed": "Mod wurde erfolgreich installiert!",
- "cantfind": "Ein Mod mit diesem Namen konnte nicht gefunden werden!",
- "notamod": "Die angegebene Datei/der angegebene Ordner ist kein Mod!",
- "toggledall": "Alle Mods wurde erfolgreich aktiviert/deaktiviert!",
- "improperjson": "Die mod.json vom Mod %s ist fehlerhaft!"
+ "cant_find": "Ein Mod mit diesem Namen konnte nicht gefunden werden!",
+ "not_a_mod": "Die angegebene Datei/der angegebene Ordner ist kein Mod!",
+ "toggled_all": "Alle Mods wurde erfolgreich aktiviert/deaktiviert!",
+ "improper_json": "Die mod.json vom Mod %s ist fehlerhaft!"
}
},
@@ -82,41 +82,42 @@
"mods": {
"title": "Mods",
"count": "Installierte Mods:",
- "disabledtag": "Deaktiviert",
+ "disabled_tag": "Deaktiviert",
"remove": "Entfernen",
"install": "Installiere den Mod",
"find": "Suche nach Mods",
- "toggleall": "Aktiviere/Deaktiviere alle Mods",
- "removeall": "Entferne alle Mods",
- "nothingselected": "Es wurde kein Mod ausgewählt.",
+ "toggle_all": "Aktiviere/Deaktiviere alle Mods",
+ "toggle_all_confirm": "Das Deaktivieren aller Mods kann zum Deaktiveren von Mods führen die von Northstar benötigt werden. Bist du dir sicher das du diese Aktion durchführen willst?",
+ "remove_all": "Entferne alle Mods",
+ "remove_all_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?",
+ "nothing_selected": "Es wurde kein Mod ausgewählt.",
+ "required_confirm": "Du hast einen von Northstar benötigten Mod ausgewählt, bist du dir sicher das du diese Aktion durchführen willst",
- "required": {
- "confirm": "Du hast einen von Northstar benötigten Mod ausgewählt, bist du dir sicher das du diese Aktion durchführen willst"
- },
-
- "notamod": "Kein Mod!",
+ "not_a_mod": "Kein Mod!",
"unknown_author": "Unbekannt",
"extracting": "Extrahiere den Mod...",
"installing": "Installiere den Mod...",
- "installedmod": "Mod installiert!",
- "dragdrop": "Drag and drop den Mod um ihn zu installieren!",
- "confirmdependencies": "Dieser Mod benötigt weitere Mods, diese werden unter dieser Nachricht angezeigt. Beim drücken auf \"Ok\" stimmst du zu da diese Installiert werden.\n\n",
- "confirm_plugins_title": "Das folgende Packet hat native plugins::",
- "confirm_plugins_description": "Native plugins haben sehr viel mehr Rechte als reguläre Mods, da durch ist das nutzen dieser um einiges unsicherer denn es ist einfacher ihnen zuschaden! Bitte installieren sie nur native plugins von vertrauten Entwicklern oder ähnliches, falls dir bewusst ist was du machst kannst du diese Nachricht ignorieren."
+ "installed_mod": "Mod installiert!",
+ "drag_n_drop": "Drag and drop den Mod um ihn zu installieren!",
+ "confirm_dependencies": "Dieser Mod benötigt weitere Mods, diese werden unter dieser Nachricht angezeigt. Beim drücken auf \"Ok\" stimmst du zu da diese Installiert werden.\n\n",
+ "confirm_plugins": {
+ "title": "Das folgende Packet hat native plugins::",
+ "description": "Native plugins haben sehr viel mehr Rechte als reguläre Mods, da durch ist das nutzen dieser um einiges unsicherer denn es ist einfacher ihnen zuschaden! Bitte installieren sie nur native plugins von vertrauten Entwicklern oder ähnliches, falls dir bewusst ist was du machst kannst du diese Nachricht ignorieren."
+ }
},
"browser": {
"info": "Info",
"view": "Anschauen",
- "madeby": "von",
+ "made_by": "von",
"search": "Suchen...",
"update": "Aktualisieren",
"install": "Installieren",
"reinstall": "Neuinstallieren",
"loading": "Lade Mods...",
- "loadmore": "Lade mehr...",
- "endoflist": "Alle Packete wurden geladen.",
- "noresults": "Keine Ergebnisse...",
+ "load_more": "Lade mehr...",
+ "end_of_list": "Alle Packete wurden geladen.",
+ "no_results": "Keine Ergebnisse...",
"filter": {
"mods": "Mods",
@@ -188,10 +189,7 @@
},
"launch": "Starten",
- "launchvanilla": "Vanilla",
- "launchnorthstar": "Northstar",
- "installnorthstar": "Installieren",
- "selectpath": "Bitte wähle einen Installationspfad!",
+ "install": "Installieren",
"gamepath": {
"must": "Der Installationspfad muss gesetzt worden sein um Viper zu nutzen.",
@@ -205,7 +203,8 @@
"failed": "Fehler beim Installieren des Mods!",
"malformed": "Fehlerhafte Ordnerstruktur!",
"duped": "Duplizierter Ordner name!",
- "unknown_error": "Unbekannter Fehler!"
+ "unknown_error": "Unbekannter Fehler!",
+ "no_internet": "Kein Internet"
},
"desc": {
@@ -213,12 +212,8 @@
"malformed": "hat eine fehlerhafte Ordnerstruktur, falls du der Entwickler bist, solltest du dies beheben.",
"failed": "Ein unbekannter Fehler ist aufgetaucht beim Installieren, die Schuld kann beim Autor liegen oder bei Viper selbst!",
"duped": "hat mehrere Ordner in sich mit dem selben Namen, wodurch ein duplizierter Ordner ensteht! Falls du der Entwickler bist solltest du dies beheben!",
- "unknown_error": "Ein unbekannter Fehler ist aufgetreten für mehr details drücken! Es wird empfohlen einen Screenshot von der detalierten Fehlernachricht zu machen wenn ein Bug-Report erstellt wird!"
- },
-
- "noInternet": {
- "title": "Kein Internet",
- "desc": "Viper funktioniert möglicherweise nicht korrekt"
+ "unknown_error": "Ein unbekannter Fehler ist aufgetreten für mehr details drücken! Es wird empfohlen einen Screenshot von der detalierten Fehlernachricht zu machen wenn ein Bug-Report erstellt wird!",
+ "no_internet": "Viper funktioniert möglicherweise nicht korrekt"
}
}
},
@@ -229,6 +224,7 @@
"release": "Release Notes",
"info": "Extras"
},
+
"info": {
"links": "Links",
"credits": "Credits",
@@ -246,8 +242,8 @@
},
"general": {
- "autoupdates": {
- "gamerunning": "Spiel wird ausgeführt, Northstar wird nicht aktualisiert."
+ "auto_updates": {
+ "game_running": "Spiel wird ausgeführt, Northstar wird nicht aktualisiert."
},
"mods": {
@@ -256,21 +252,15 @@
"installed": "Installierte Mods:"
},
- "missingpath": "Installationspfad konnte nicht automatisch gefunden werden, bitte setze diesen manuell!",
- "notinstalled": "Northstar ist nicht installiert!",
+ "missing_path": "Installationspfad konnte nicht automatisch gefunden werden, bitte setze diesen manuell!",
+ "not_installed": "Northstar ist nicht installiert!",
"launching": "Starte!",
- "invalidconfig": "Deine Konfigurationsdatei ist nicht richtig formatiert, falls diese manuell verändert wurde bitte stelle sicher das alles korrekt ist.\n\nFalls du diese nicht manuell verändert hast, ist es empfohlen diese zurückzusetzen!\n\nUm sie zurückzusetzen drücke einfach auf \"Ok\".\n\nWeitere Informationen:\n",
"running": "Läuft bereits."
},
"request": {
- "viper": {
- "noReleaseNotes": "Viper Release Notes konnten nicht geladen werden.\nVersuche es erneut später!"
- },
-
- "northstar": {
- "noReleaseNotes": "Northstar Release Notes konnten nicht geladen werden.\nVersuche es erneut später!"
- }
+ "no_vp_release_notes": "Viper Release Notes konnten nicht geladen werden.\nVersuche es erneut später!",
+ "no_ns_release_notes": "Northstar Release Notes konnten nicht geladen werden.\nVersuche es erneut später!"
},
"tooltip": {
diff --git a/src/lang/en.json b/src/lang/en.json
index cec13ce..cf314ad 100644
--- a/src/lang/en.json
+++ b/src/lang/en.json
@@ -11,36 +11,36 @@
"cli": "forces the CLI to enable",
"update": "updates Northstar from your set game path",
"setpath": "sets your game path",
- "updatevp": "updates Viper itself, if supported.",
- "novpupdates": "overwrites viper.json and disables Viper updates",
- "installmod": "installs a mod, folder or zip",
- "removemod": "removes a mod",
- "togglemod": "toggles a mod"
+ "update_vp": "updates Viper itself, if supported.",
+ "no_vp_updates": "overwrites viper.json and disables Viper updates",
+ "install_mod": "installs a mod, folder or zip",
+ "remove_mod": "removes a mod",
+ "toggle_mod": "toggles a mod"
},
"setpath": {
- "noarg": "No argument provided for --setpath"
+ "no_arg": "No argument provided for --setpath"
},
"update": {
"current": "Current version:",
"downloading": "Downloading...",
"checking": "Checking for updates...",
- "downloaddone": "Download done! Extracting...",
+ "download_done": "Download done! Extracting...",
"finished": "Installation/Update finished!",
"uptodate": "Latest version (%s) is already installed, skipping update.",
- "noInternet": "No Internet connection"
+ "no_internet": "No Internet connection"
},
- "autoupdates": {
+ "auto_updates": {
"checking": "Checking for Northstar updates...",
"available": "Northstar update available!",
- "updatingns": "Launching update process...",
- "noupdate": "No Northstar update available."
+ "updating_ns": "Launching update process...",
+ "no_update": "No Northstar update available."
},
"launch": {
- "linuxerror": "Launching the game is not currently supported on Linux"
+ "linux_error": "Launching the game is not currently supported on Linux"
},
"gamepath": {
@@ -52,10 +52,10 @@
"removed": "Successfully removed mod!",
"toggled": "Successfully toggled mod",
"installed": "Successfully installed mod!",
- "cantfind": "Can't find a mod with that name!",
- "notamod": "Selected folder/file is not a mod",
- "toggledall": "Successfully toggled all mods",
- "improperjson": "%s's mod.json has formatting errors"
+ "cant_find": "Can't find a mod with that name!",
+ "not_a_mod": "Selected folder/file is not a mod",
+ "toggled_all": "Successfully toggled all mods",
+ "improper_json": "%s's mod.json has formatting errors"
}
},
"gui": {
@@ -81,41 +81,43 @@
"mods": {
"title": "Mods",
"count": "Mods Installed:",
- "disabledtag": "Disabled",
+ "disabled_tag": "Disabled",
"remove": "Remove",
"install": "Install Mod",
"find": "Find Mods",
- "toggleall": "Toggle All",
- "removeall": "Remove All",
- "nothingselected": "You've not selected a mod.",
-
- "required": {
- "confirm": "You've selected a core mod, Northstar may not function without it. Are you sure?"
- },
-
- "notamod": "Not a mod!",
+ "toggle_all": "Toggle All",
+ "toggle_all_confirm": "Toggling all mods could disable mods required for Northstar to function. Are you sure?",
+ "remove_all": "Remove All",
+ "remove_all_confirm": "Removing all mods will usually require you to reinstall Northstar. Are you sure?",
+ "nothing_selected": "You've not selected a mod.",
+ "required_confirm": "You've selected a core mod, Northstar may not function without it. Are you sure?",
+
+ "not_a_mod": "Not a mod!",
"unknown_author": "Unknown",
"extracting": "Extracting mod...",
"installing": "Installing mod...",
- "installedmod": "Installed mod!",
- "dragdrop": "Drag and drop a mod to install",
- "confirmdependencies": "This package has dependencies, shown below, clicking \"Ok\" will install the package and the dependencies.\n\n",
- "confirm_plugins_title": "The following package has native plugins:",
- "confirm_plugins_description": "Native plugins have far more system access than a regular mod, and because of this they're inherently less secure to have installed, as a malicious plugin could do far more harm this way. If this plugin is one from a trusted developer or similar or you know what you're doing, then you can disregard this message completely."
+ "installed_mod": "Installed mod!",
+ "drag_n_drop": "Drag and drop a mod to install",
+ "confirm_dependencies": "This package has dependencies, shown below, clicking \"Ok\" will install the package and the dependencies.\n\n",
+
+ "confirm_plugins": {
+ "title": "The following package has native plugins:",
+ "description": "Native plugins have far more system access than a regular mod, and because of this they're inherently less secure to have installed, as a malicious plugin could do far more harm this way. If this plugin is one from a trusted developer or similar or you know what you're doing, then you can disregard this message completely."
+ }
},
"browser": {
"info": "Info",
"view": "View",
- "madeby": "by",
+ "made_by": "by",
"search": "Search...",
"update": "Update",
"install": "Install",
"reinstall": "Re-Install",
"loading": "Loading mods...",
- "loadmore": "Load more...",
- "endoflist": "All packages have been loaded.",
- "noresults": "No results...",
+ "load_more": "Load more...",
+ "end_of_list": "All packages have been loaded.",
+ "no_results": "No results...",
"filter": {
"mods": "Mods",
@@ -187,10 +189,7 @@
},
"launch": "Launch",
- "launchvanilla": "Vanilla",
- "launchnorthstar": "Northstar",
- "installnorthstar": "Install",
- "selectpath": "Please select the path!",
+ "install": "Install",
"gamepath": {
"must": "The game path must be set to start Viper.",
@@ -204,7 +203,8 @@
"duped": "Duplicate folder names!",
"failed": "Failed to install",
"malformed": "Incorrect folder structure!",
- "unknown_error": "Unknown Error!"
+ "unknown_error": "Unknown Error!",
+ "no_internet": "No Internet"
},
"desc": {
@@ -212,12 +212,8 @@
"malformed": "has an incorrect folder structure, if you're the developer, you should fix this.",
"failed": "An unknown error occurred while trying to install the mod. This may be the author's fault, and it may also be Viper's fault.",
"duped": "has multiple mod folders in it, with the same name, causing duplicate folders, if you're the developer, you should fix this.",
- "unknown_error": "An unknown error occurred, click for more details. You may want to take a screenshot of the detailed error when filing a bug report."
- },
-
- "noInternet": {
- "title": "No Internet",
- "desc": "Viper may not work properly."
+ "unknown_error": "An unknown error occurred, click for more details. You may want to take a screenshot of the detailed error when filing a bug report.",
+ "no_internet": "Viper may not work properly."
}
}
},
@@ -228,6 +224,7 @@
"release": "Release Notes",
"info": "Extras"
},
+
"info": {
"links": "Links",
"credits": "Credits",
@@ -246,8 +243,8 @@
},
"general": {
- "autoupdates": {
- "gamerunning": "Game is running, refusing to update Northstar"
+ "auto_updates": {
+ "game_running": "Game is running, refusing to update Northstar"
},
"mods": {
@@ -256,20 +253,15 @@
"installed": "Installed mods:"
},
- "missingpath": "Game location could not be found automatically! Please select it manually!",
- "notinstalled": "Northstar is not installed!",
+ "missing_path": "Game location could not be found automatically! Please select it manually!",
+ "not_installed": "Northstar is not installed!",
"running": "Running",
- "launching": "Launching",
- "invalidconfig": "Your config file is improperly formatted, if it's been manually edited, please validate that everything is typed correctly.\n\nIf you did not manually edit the config file, it is recommended to simply reset the config.\n\nTo reset your config file simply click \"Ok\" below.\n\nMore details:\n"
+ "launching": "Launching"
},
"request": {
- "viper": {
- "noReleaseNotes": "Couldn't fetch Viper release notes.\nTry again later!"
- },
- "northstar": {
- "noReleaseNotes": "Couldn't fetch Northstar release notes.\nTry again later!"
- }
+ "no_vp_release_notes": "Couldn't fetch Viper release notes.\nTry again later!",
+ "no_ns_release_notes": "Couldn't fetch Northstar release notes.\nTry again later!"
},
"tooltip": {
diff --git a/src/lang/es.json b/src/lang/es.json
index 01377d4..31b1d71 100644
--- a/src/lang/es.json
+++ b/src/lang/es.json
@@ -11,15 +11,15 @@
"cli": "obliga la linea de comandos a habilitarse",
"update": "actualiza Northstar desde la ruta de juego establecida",
"setpath": "establece la ruta del juego",
- "updatevp": "actualiza Viper si es soportado",
- "novpupdates": "sobrescribe viper.json y deshabilita las actualizaciones de Viper",
- "installmod": "instala una modificación, desde una carpeta o zip",
- "removemod": "remueve una modificación",
- "togglemod": "alterna el estado de la modificación"
+ "update_vp": "actualiza Viper si es soportado",
+ "no_vp_updates": "sobrescribe viper.json y deshabilita las actualizaciones de Viper",
+ "install_mod": "instala una modificación, desde una carpeta o zip",
+ "remove_mod": "remueve una modificación",
+ "toggle_mod": "alterna el estado de la modificación"
},
"setpath": {
- "noarg": "No se ha proporcionado ningún argumento para --setpath"
+ "no_arg": "No se ha proporcionado ningún argumento para --setpath"
},
"gamepath": {
@@ -30,21 +30,21 @@
"current": "Versión actual:",
"downloading": "Descargando...",
"checking": "Buscando actualizaciones...",
- "downloaddone": "¡Descarga completa! Extrayendo...",
+ "download_done": "¡Descarga completa! Extrayendo...",
"finished": "Instalación/Actualización completada!",
"uptodate": "La ultima versión (%s) ya está instalada, omitiendo actualización.",
- "noInternet": "Sin conexión a internet"
+ "no_internet": "Sin conexión a internet"
},
- "autoupdates": {
+ "auto_updates": {
"checking": "Buscando actualizaciones de Northstar...",
"available": "¡Actualización de Northsar disponible!",
- "updatingns": "Lanzando proceso de actualización...",
- "noupdate": "No hay actualizaciones de Northstar disponibles."
+ "updating_ns": "Lanzando proceso de actualización...",
+ "no_update": "No hay actualizaciones de Northstar disponibles."
},
"launch": {
- "linuxerror": "La ejecución del juego en Linux aun no está implementada"
+ "linux_error": "La ejecución del juego en Linux aun no está implementada"
},
"mods": {
@@ -52,10 +52,10 @@
"removed": "¡Modificación removida exitosamente!",
"toggled": "¡El estado de la modificación ha cambiado exitosamente!",
"installed": "¡Modificiación instalada exitosamente!",
- "cantfind": "¡No se encuentra una modificación con ese nombre!",
- "notamod": "La carpeta o el archivo seleccionado no es una modificación",
- "toggledall": "¡El estado de todas las modifiaciones ha sido cambiado exitosamente!",
- "improperjson": "%s's mod.json tiene errores de formato"
+ "cant_find": "¡No se encuentra una modificación con ese nombre!",
+ "not_a_mod": "La carpeta o el archivo seleccionado no es una modificación",
+ "toggled_all": "¡El estado de todas las modifiaciones ha sido cambiado exitosamente!",
+ "improper_json": "%s's mod.json tiene errores de formato"
}
},
@@ -82,41 +82,42 @@
"mods": {
"title": "Modificaciones (Mods)",
"count": "Modificaciones instaladas:",
- "disabledtag": "Deshabilitado",
+ "disabled_tag": "Deshabilitado",
"install": "Instalar modificación",
"find": "Buscar modificaciones",
- "toggleall": "Activar / Desactivar todo",
- "removeall": "Remover todo",
- "nothingselected": "No has seleccionado una modificación.",
-
- "required": {
- "confirm": "Ha seleccionado un mod esencial, es posible que Northstar no funcione sin él. ¿Está seguro?"
- },
-
- "notamod": "¡No es una modificación!",
+ "toggle_all": "Activar / Desactivar todo",
+ "toggle_all_confirm": "Alternar todo podría deshabilitar las modificaciones requeridas para que Northstar funcione. ¿Está seguro?",
+ "remove_all": "Remover todo",
+ "remove_all_confirm": "Eliminar todas las modificaciones generalmente requerirá que reinstales Northstar. ¿Está seguro?",
+ "nothing_selected": "No has seleccionado una modificación.",
+ "required_confirm": "Ha seleccionado un mod esencial, es posible que Northstar no funcione sin él. ¿Está seguro?",
+
+ "not_a_mod": "¡No es una modificación!",
"extracting": "Extrayendo modificación...",
"installing": "Instalando modificación...",
- "installedmod": "¡Modificación instalada!",
- "dragdrop": "Arrastra y suelta una modificación para instalarla",
- "confirmdependencies": "Este paquete tiene dependencias, se muestran abajo. Presionar \"Ok\" instalará el paquete y las dependencias.\n\n",
+ "installed_mod": "¡Modificación instalada!",
+ "drag_n_drop": "Arrastra y suelta una modificación para instalarla",
+ "confirm_dependencies": "Este paquete tiene dependencias, se muestran abajo. Presionar \"Ok\" instalará el paquete y las dependencias.\n\n",
"remove": "Remover",
"unknown_author": "Desconocido",
- "confirm_plugins_title": "El siguiente paquete tiene complementos nativos:",
- "confirm_plugins_description": "Los complementos nativos tienen mucho más acceso al sistema que un mod regular y, por lo tanto, son inherentemente menos seguros de instalar, ya que un complemento malicioso podría causar mucho más daño de esta manera. Si este complemento es de un desarrollador confiable o similar o si sabe lo que está haciendo, entonces puede ignorar completamente este mensaje."
+ "confirm_plugins": {
+ "title": "El siguiente paquete tiene complementos nativos:",
+ "description": "Los complementos nativos tienen mucho más acceso al sistema que un mod regular y, por lo tanto, son inherentemente menos seguros de instalar, ya que un complemento malicioso podría causar mucho más daño de esta manera. Si este complemento es de un desarrollador confiable o similar o si sabe lo que está haciendo, entonces puede ignorar completamente este mensaje."
+ }
},
"browser": {
"info": "Información",
"view": "Ver",
- "madeby": "hecho por",
+ "made_by": "hecho por",
"search": "Buscar...",
"update": "Actualizar",
"install": "Instalar",
"reinstall": "Re-Instalar",
"loading": "Cargando modificaciones...",
- "loadmore": "Cargar más...",
- "endoflist": "Todos los paquetes han sido cargados",
- "noresults": "Sin resultados...",
+ "load_more": "Cargar más...",
+ "end_of_list": "Todos los paquetes han sido cargados",
+ "no_results": "Sin resultados...",
"filter": {
"mods": "Modificaciones",
@@ -188,10 +189,7 @@
},
"launch": "Ejecutar",
- "launchvanilla": "Vainilla",
- "launchnorthstar": "Northstar",
- "installnorthstar": "Instalar",
- "selectpath": "Por favor, ¡elija la ruta del juego!",
+ "install": "Instalar",
"gamepath": {
"must": "La ruta del juego debe establecerse para ejecutar Viper.",
@@ -205,7 +203,8 @@
"failed": "¡Falló al instalar!",
"malformed": "¡Estructura de las carpetas incorrecta!",
"duped": "tiene varias carpetas de la modificación con el mismo nombre, lo que genera carpetas duplicadas. Si eres el desarrollador, deberías arreglar esto.",
- "unknown_error": "¡Error desconocido!"
+ "unknown_error": "¡Error desconocido!",
+ "no_internet": "Sin Internet"
},
"desc": {
@@ -213,12 +212,8 @@
"malformed": "tiene una estructura de carpetas incorrecta, si usted es el desarrollador, debe corregir esto.",
"failed": "Se produjo un error desconocido al intentar instalar la modificación. Esto puede ser culpa del autor de la modificación, y también puede ser culpa de Viper.",
"duped": "¡Nombres de las carpetas duplicados!",
- "unknown_error": "Ha ocurrido un error desconocido, presiona para más detalles. Recomendamos que tomes una captura de pantalla del error con sus detalles cuando reportes un error."
- },
-
- "noInternet": {
- "title": "Sin Internet",
- "desc": "Viper puede funcionar de forma incorrecta."
+ "unknown_error": "Ha ocurrido un error desconocido, presiona para más detalles. Recomendamos que tomes una captura de pantalla del error con sus detalles cuando reportes un error.",
+ "no_internet": "Viper puede funcionar de forma incorrecta."
}
}
},
@@ -229,6 +224,7 @@
"release": "Notas de la versión",
"info": "Extras"
},
+
"info": {
"links": "Links",
"credits": "Creditos",
@@ -246,8 +242,8 @@
},
"general": {
- "autoupdates": {
- "gamerunning": "El juego está en ejecución, no se puede actualizar Northstar"
+ "auto_updates": {
+ "game_running": "El juego está en ejecución, no se puede actualizar Northstar"
},
"mods": {
@@ -256,20 +252,15 @@
"installed": "Modificiaciones instaladas:"
},
- "missingpath": "¡La ruta del jueno no se ha podido encontrar automaticamente! ¡Por favor, elige la ruta manualmente!",
- "notinstalled": "¡Northstar no se ha instalado!",
+ "missing_path": "¡La ruta del jueno no se ha podido encontrar automaticamente! ¡Por favor, elige la ruta manualmente!",
+ "not_installed": "¡Northstar no se ha instalado!",
"launching": "Ejecutando",
- "invalidconfig": "Su archivo de configuración está formateado de forma incorrecta, si ha sido editado manualmente, por favor valide que ha sido escrito correctamente. \n\nSi no ha editado manualmente el archivo de configuración, es recomendado que simplemente restaure la configuración. \n\nPara restaurar tu configuración simplemente de click en \"OK\" a continuación. \n\nMas detalles:\n",
"running": "Ejecutandose"
},
"request": {
- "viper": {
- "noReleaseNotes": "No se pudo encontrar las notas de lanzamiento de Viper.\n¡Intenta mas tarde!"
- },
- "northstar": {
- "noReleaseNotes": "No se pudo encontrar las notas de lanzamiento de Northstar.\n¡Intenta mas tarde!"
- }
+ "no_vp_release_notes": "No se pudo encontrar las notas de lanzamiento de Viper.\n¡Intenta mas tarde!",
+ "no_ns_release_notes": "No se pudo encontrar las notas de lanzamiento de Northstar.\n¡Intenta mas tarde!"
},
"tooltip": {
diff --git a/src/lang/fr.json b/src/lang/fr.json
index fcd3da8..0635e62 100644
--- a/src/lang/fr.json
+++ b/src/lang/fr.json
@@ -11,36 +11,36 @@
"cli": "force l'activation de la CLI",
"update": "met à jour Northstar sur le chemin du jeu précisé",
"setpath": "enregistre le chemin du client de jeu",
- "updatevp": "met à jour le client Viper, si le format actuel le permet.",
- "novpupdates": "écrase viper.json et désactive les mises à jour de Viper",
- "installmod": "Installe un mod, dossier ou zip",
- "removemod": "Supprime un mod",
- "togglemod": "Active/désactive un mod"
+ "update_vp": "met à jour le client Viper, si le format actuel le permet.",
+ "no_vp_updates": "écrase viper.json et désactive les mises à jour de Viper",
+ "install_mod": "Installe un mod, dossier ou zip",
+ "remove_mod": "Supprime un mod",
+ "toggle_mod": "Active/désactive un mod"
},
"setpath": {
- "noarg": "Aucun argument donné à --setpath"
+ "no_arg": "Aucun argument donné à --setpath"
},
"update": {
"current": "Version actuelle :",
"downloading": "Téléchargement en cours...",
"checking": "Vérification des mises à jour...",
- "downloaddone": "Téléchargement terminé ! Extraction des fichiers...",
+ "download_done": "Téléchargement terminé ! Extraction des fichiers...",
"finished": "Mise à jour terminée !",
"uptodate": "La dernière version (%s) est déjà installée.",
- "noInternet": "Pas de connexion Internet"
+ "no_internet": "Pas de connexion Internet"
},
- "autoupdates": {
+ "auto_updates": {
"checking": "Vérifications des mises à jour de Northstar...",
"available": "Une mise à jour de Northstar est disponible !",
- "updatingns": "Lancement de la mise à jour...",
- "noupdate": "Pas de mise à jour de Northstar disponible."
+ "updating_ns": "Lancement de la mise à jour...",
+ "no_update": "Pas de mise à jour de Northstar disponible."
},
"launch": {
- "linuxerror": "Le support du jeu sur Linux n'est pas encore implémenté."
+ "linux_error": "Le support du jeu sur Linux n'est pas encore implémenté."
},
"gamepath": {
@@ -52,10 +52,10 @@
"removed": "Le mod a bien été supprimé.",
"toggled": "Le mod a bien été activé/désactivé.",
"installed": "Mod installé !",
- "cantfind": "Aucun mod avec ce nom n'a pu être trouvé.",
- "notamod": "Le fichier/dossier sélectionné n'est pas un mod.",
- "toggledall": "Tous les mods ont bien été activés/désactivés.",
- "improperjson": "Le mod.json de %s présente des erreurs de formatage."
+ "cant_find": "Aucun mod avec ce nom n'a pu être trouvé.",
+ "not_a_mod": "Le fichier/dossier sélectionné n'est pas un mod.",
+ "toggled_all": "Tous les mods ont bien été activés/désactivés.",
+ "improper_json": "Le mod.json de %s présente des erreurs de formatage."
}
},
@@ -63,6 +63,7 @@
"exit": "Fermer",
"welcome": "Bienvenue sur Viper !",
"setpath": "Mettre à jour le chemin du jeu",
+
"versions": {
"viper": "Version de Viper",
"northstar": "Version de Northstar"
@@ -81,41 +82,42 @@
"mods": {
"title": "Mods",
"count": "Mods installés :",
- "disabledtag": "Désactivé",
+ "disabled_tag": "Désactivé",
"remove": "Supprimer",
"install": "Installer le mod",
"find": "Chercher des mods",
- "toggleall": "Activer/désactiver tous les mods",
- "removeall": "Tout supprimer",
- "nothingselected": "Aucun mod n'est sélectionné.",
-
- "required": {
- "confirm": "Vous avez sélectionné un mod de base, Northstar peut ne pas fonctionner sans celui-ci. Souhaitez-vous faire cela ?"
- },
-
- "notamod": "Ceci n'est pas un mod !",
+ "toggle_all": "Activer/désactiver tous les mods",
+ "toggle_all_confirm": "Cette action pourrait désactiver des mods nécessaires au bon fonctionnement de Northstar. Souhaitez-vous faire cela ?",
+ "remove_all": "Tout supprimer",
+ "remove_all_confirm": "Supprimer tous les mods vous forcera à réinstaller Northstar, souhaitez-vous faire cela ?",
+ "nothing_selected": "Aucun mod n'est sélectionné.",
+ "required_confirm": "Vous avez sélectionné un mod de base, Northstar peut ne pas fonctionner sans celui-ci. Souhaitez-vous faire cela ?",
+
+ "not_a_mod": "Ceci n'est pas un mod !",
"unknown_author": "Inconnu",
"extracting": "Extraction du mod...",
"installing": "Installation du mod...",
- "installedmod": "Mod installé !",
- "dragdrop": "Glissez/déposez un mod pour l'installer",
- "confirmdependencies": "Ce mod a des dépendances (affichées ci-dessous), cliquer \"Ok\" les installera en même temps que le mod.\n\n",
- "confirm_plugins_title": "Ce mod contient des plugins :",
- "confirm_plugins_description": "Les plugins ont des accès à votre système, comparés aux mods classiques, et sont de fait plus dangereux à l'installation, comme pourrait l'être un plugin contenant un malware. Si ce plugin provient d'un tiers de confiance ou si vous savez ce que vous faites, ne tenez pas compte de ce message."
+ "installed_mod": "Mod installé !",
+ "drag_n_drop": "Glissez/déposez un mod pour l'installer",
+ "confirm_dependencies": "Ce mod a des dépendances (affichées ci-dessous), cliquer \"Ok\" les installera en même temps que le mod.\n\n",
+ "confirm_plugins": {
+ "title": "Ce mod contient des plugins :",
+ "description": "Les plugins ont des accès à votre système, comparés aux mods classiques, et sont de fait plus dangereux à l'installation, comme pourrait l'être un plugin contenant un malware. Si ce plugin provient d'un tiers de confiance ou si vous savez ce que vous faites, ne tenez pas compte de ce message."
+ }
},
"browser": {
"info": "Info",
"view": "Voir",
- "madeby": "par",
+ "made_by": "par",
"search": "Rechercher",
"update": "Mise à jour",
"install": "Installer",
"reinstall": "Réinstaller",
"loading": "Chargement des mods...",
- "loadmore": "Charger plus de mods...",
- "endoflist": "Fin de la liste de mods.<br>Utilisez la barre de recherche pour en trouver davantage !",
- "noresults": "Pas de résultat",
+ "load_more": "Charger plus de mods...",
+ "end_of_list": "Fin de la liste de mods.<br>Utilisez la barre de recherche pour en trouver davantage !",
+ "no_results": "Pas de résultat",
"filter": {
"mods": "Mods",
@@ -187,10 +189,7 @@
},
"launch": "Jouer",
- "launchvanilla": "Vanilla",
- "launchnorthstar": "Northstar",
- "installnorthstar": "Installer",
- "selectpath": "Veuillez sélectionner le dossier où se trouve le client Titanfall 2.",
+ "install": "Installer",
"gamepath": {
"must": "Vous devez sélectionner le chemin du dossier du jeu Titanfall 2 pour pouvoir lancer Viper.",
@@ -204,7 +203,8 @@
"duped": "Nom de dossier dupliqué !",
"failed": "L'installation a échoué",
"malformed": "La structure du dossier du mod est incorrecte.",
- "unknown_error": "Erreur inconnue"
+ "unknown_error": "Erreur inconnue",
+ "no_internet": "Pas de connexion Internet"
},
"desc": {
@@ -212,12 +212,8 @@
"malformed": "a une structure de dossier incorrecte ; si vous êtes son développeur, vous devriez réparer ça.",
"failed": "Une erreur inconnue est survenue lors de l'installation du mod. Cela peut être du ressort de l'auteur du mod ou de Viper.",
"duped": "contient plusieurs dossiers ayant le même nom ; si vous êtes le développer, vous devriez réparer ceci.",
- "unknown_error": "Une erreur inconnue est survenue, cliquez pour plus de détails. Vous devriez prendre une capture d'écran de l'erreur si vous comptez créer un ticket."
- },
-
- "noInternet": {
- "title": "Pas de connexion Internet",
- "desc": "Viper ne fonctionnera pas correctement tant que la connexion n'est pas rétablie."
+ "unknown_error": "Une erreur inconnue est survenue, cliquez pour plus de détails. Vous devriez prendre une capture d'écran de l'erreur si vous comptez créer un ticket.",
+ "no_internet": "Viper ne fonctionnera pas correctement tant que la connexion n'est pas rétablie."
}
}
},
@@ -228,6 +224,7 @@
"release": "Notes de mises à jour",
"info": "Informations"
},
+
"info": {
"links": "Liens utiles",
"credits": "Remerciements",
@@ -245,8 +242,8 @@
},
"general": {
- "autoupdates": {
- "gamerunning": "Le jeu est en cours d'exécution, impossible de lancer la mise à jour."
+ "auto_updates": {
+ "game_running": "Le jeu est en cours d'exécution, impossible de lancer la mise à jour."
},
"mods": {
@@ -255,20 +252,15 @@
"installed": "Mods installés :"
},
- "missingpath": "Le chemin du client n'a pu être trouvé automatiquement, merci de le sélectionner manuellement.",
- "notinstalled": "Northstar n'est pas installé !",
+ "missing_path": "Le chemin du client n'a pu être trouvé automatiquement, merci de le sélectionner manuellement.",
+ "not_installed": "Northstar n'est pas installé !",
"launching": "Lancement",
- "invalidconfig": "Votre fichier de configuration n'est pas formaté correctement ; si vous l'avez manuellement édité, veuillez vérifier son contenu.\n\nSinon, il est recommandé de remettre la configuration à zéro.\n\nPour cela, cliquez sur le bouton \"Ok\" en-dessous de ce message.\n\nPlus d'informations :\n",
"running": "En cours d'exécution"
},
"request": {
- "viper": {
- "noReleaseNotes": "Impossible de récupérer les notes de mises à jour de Viper.\nVeuillez réessayer plus tard."
- },
- "northstar": {
- "noReleaseNotes": "Impossible de récupérer les notes de mises à jour de Northstar.\nVeuillez réessayer plus tard."
- }
+ "no_vp_release_notes": "Impossible de récupérer les notes de mises à jour de Viper.\nVeuillez réessayer plus tard.",
+ "no_ns_release_notes": "Impossible de récupérer les notes de mises à jour de Northstar.\nVeuillez réessayer plus tard."
},
"tooltip": {
diff --git a/src/modules/gamepath.js b/src/modules/gamepath.js
index 1ec5838..6555cbd 100644
--- a/src/modules/gamepath.js
+++ b/src/modules/gamepath.js
@@ -58,7 +58,7 @@ gamepath.set = async (win, force_dialog) => {
return;
}
- await win_show.alert(lang("general.missingpath"));
+ await win_show.alert(lang("general.missing_path"));
}
// fallback to GUI/manual selection
diff --git a/src/modules/launch.js b/src/modules/launch.js
index 8801d1b..24ea4b2 100644
--- a/src/modules/launch.js
+++ b/src/modules/launch.js
@@ -15,8 +15,8 @@ console = require("./console");
function launch(game_version) {
// return early, and show error message if on Linux
if (process.platform == "linux") {
- win.alert(lang("cli.launch.linuxerror"));
- console.error(lang("cli.launch.linuxerror"));
+ win.alert(lang("cli.launch.linux_error"));
+ console.error(lang("cli.launch.linux_error"));
cli.exit(1);
return;
}
diff --git a/src/modules/mods.js b/src/modules/mods.js
index 95b7e06..50db011 100644
--- a/src/modules/mods.js
+++ b/src/modules/mods.js
@@ -34,8 +34,8 @@ mods.list = () => {
// make sure Northstar is actually installed
if (version.northstar() == "unknown") {
- win.log(lang("general.notinstalled"));
- console.error(lang("general.notinstalled"));
+ win.log(lang("general.not_installed"));
+ console.error(lang("general.not_installed"));
cli.exit(1);
return false;
}
@@ -180,8 +180,8 @@ mods.get = (mod) => {
// make sure Northstar is actually installed
if (version.northstar() == "unknown") {
- win.log(lang("general.notinstalled"));
- console.error(lang("general.notinstalled"));
+ win.log(lang("general.not_installed"));
+ console.error(lang("general.not_installed"));
cli.exit(1);
return false;
}
@@ -314,15 +314,15 @@ mods.install = (mod, opts) => {
}
if (version.northstar() == "unknown") {
- win.log(lang("general.notinstalled"));
- console.error(lang("general.notinstalled"));
+ win.log(lang("general.not_installed"));
+ console.error(lang("general.not_installed"));
cli.exit(1);
return false;
}
let notamod = () => {
- win.log(lang("gui.mods.notamod"));
- console.error(lang("cli.mods.notamod"));
+ win.log(lang("gui.mods.not_a_mod"));
+ console.error(lang("cli.mods.not_a_mod"));
cli.exit(1);
return false;
}
@@ -561,8 +561,8 @@ mods.remove = (mod) => {
// make sure Northstar is actually installed
if (version.northstar() == "unknown") {
- win.log(lang("general.notinstalled"));
- console.error(lang("general.notinstalled"));
+ win.log(lang("general.not_installed"));
+ console.error(lang("general.not_installed"));
cli.exit(1);
return false;
}
@@ -580,7 +580,7 @@ mods.remove = (mod) => {
let mod_name = mod_data.folder_name;
if (! mod_name) {
- console.error(lang("cli.mods.cantfind"));
+ console.error(lang("cli.mods.cant_find"));
cli.exit(1);
return;
}
@@ -633,8 +633,8 @@ mods.toggle = (mod, fork) => {
// make sure Northstar is actually installed
if (version.northstar() == "unknown") {
- win.log(lang("general.notinstalled"));
- console.error(lang("general.notinstalled"));
+ win.log(lang("general.not_installed"));
+ console.error(lang("general.not_installed"));
cli.exit(1);
return false;
}
@@ -646,7 +646,7 @@ mods.toggle = (mod, fork) => {
mods.toggle(modlist[i].name, true); // enable mod
}
- console.ok(lang("cli.mods.toggledall"));
+ console.ok(lang("cli.mods.toggled_all"));
cli.exit(0);
return
}
diff --git a/src/modules/requests.js b/src/modules/requests.js
index 6841fe2..94639fa 100644
--- a/src/modules/requests.js
+++ b/src/modules/requests.js
@@ -123,7 +123,7 @@ async function getNsReleaseNotes() {
resolve( cache[NORTHSTAR_RELEASE_NOTES_KEY]["body"] );
} else {
console.error("Couldn't fetch Northstar release notes, cache is empty.");
- resolve( [lang("request.northstar.noReleaseNotes")] );
+ resolve( [lang("request.no_ns_release_notes")] );
}
});
}
@@ -174,7 +174,7 @@ async function getVpReleaseNotes() {
resolve( cache[VIPER_RELEASE_NOTES_KEY]["body"] );
} else {
console.error("Couldn't fetch Viper release notes, cache is empty.");
- resolve( [lang("request.viper.noReleaseNotes")] );
+ resolve( [lang("request.no_vp_release_notes")] );
}
});
}
diff --git a/src/modules/settings.js b/src/modules/settings.js
index 94f6414..5476404 100644
--- a/src/modules/settings.js
+++ b/src/modules/settings.js
@@ -49,7 +49,7 @@ if (fs.existsSync("viper.json")) {
settings.nsargs = fs.readFileSync(args, "utf8");
}
} else {
- console.error(lang("general.missingpath"));
+ console.error(lang("general.missing_path"));
}
// as to not have to do the same one liner a million times, this
diff --git a/src/modules/update.js b/src/modules/update.js
index eb6e540..c6c92d7 100644
--- a/src/modules/update.js
+++ b/src/modules/update.js
@@ -59,23 +59,23 @@ update.northstar_autoupdate = () => {
async function _checkForUpdates() {
is_auto_updating = true;
- console.info(lang("cli.autoupdates.checking"));
+ console.info(lang("cli.auto_updates.checking"));
// checks if NS is outdated
if (await northstar_update_available()) {
- console.ok(lang("cli.autoupdates.available"));
+ console.ok(lang("cli.auto_updates.available"));
if (await is_running.game()) {
- console.error(lang("general.autoupdates.gamerunning"));
+ console.error(lang("general.auto_updates.game_running"));
new Notification({
title: lang("gui.nsupdate.gaming.title"),
body: lang("gui.nsupdate.gaming.body")
}).show();
} else {
- console.info(lang("cli.autoupdates.updatingns"));
+ console.info(lang("cli.auto_updates.updating_ns"));
update.northstar();
}
} else {
- console.info(lang("cli.autoupdates.noupdate"));
+ console.info(lang("cli.auto_updates.no_update"));
}
setTimeout(
@@ -152,7 +152,7 @@ update.viper = (autoinstall) => {
// unzip module does not support excluding files directly.
update.northstar = async () => {
if (await is_running.game()) {
- console.error(lang("general.autoupdates.gamerunning"));
+ console.error(lang("general.auto_updates.game_running"));
return false;
}
@@ -227,7 +227,7 @@ update.northstar = async () => {
win.log(lang("gui.update.extracting"));
ipcMain.emit("ns-update-event", "gui.update.extracting");
- console.ok(lang("cli.update.downloaddone"));
+ console.ok(lang("cli.update.download_done"));
// extracts the zip, this is the part where we're actually
// installing Northstar.
extract.pipe(unzip.Extract({path: settings.gamepath}))