diff options
author | 0neGal <mail@0negal.com> | 2023-09-16 03:16:37 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-09-16 03:16:37 +0200 |
commit | 53c19052738a4a9cc43feca31e8231c844b4d2b5 (patch) | |
tree | 1ca9f7ad99e839bf4b87b542cd4db053b65daa22 | |
parent | 1c405a64400b16414559dc48250b946722f0108a (diff) | |
download | Viper-53c19052738a4a9cc43feca31e8231c844b4d2b5.tar.gz Viper-53c19052738a4a9cc43feca31e8231c844b4d2b5.zip |
more minor fixes to the change in lang files
-rw-r--r-- | src/app/main.js | 2 | ||||
-rw-r--r-- | src/lang/de.json | 1 | ||||
-rw-r--r-- | src/lang/en.json | 1 | ||||
-rw-r--r-- | src/lang/es.json | 9 | ||||
-rw-r--r-- | src/lang/fr.json | 1 | ||||
-rw-r--r-- | src/modules/update.js | 6 |
6 files changed, 12 insertions, 8 deletions
diff --git a/src/app/main.js b/src/app/main.js index f7deb41..bbf1e57 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -176,7 +176,7 @@ ipcRenderer.on("ns-update-event", (event, key) => { document.getElementById("update").innerText = `(${lang(key)})`; console.log(lang(key)); switch(key) { - case "cli.update.uptodate.short": + case "cli.update.uptodate_short": case "cli.update.no_internet": setButtons(true); playNsBtn.innerText = lang("gui.launch"); diff --git a/src/lang/de.json b/src/lang/de.json index bb7c189..7ea7538 100644 --- a/src/lang/de.json +++ b/src/lang/de.json @@ -29,6 +29,7 @@ "download_done": "Herunterladen abgeschlossen! Extrahiere...", "finished": "Installation/Aktualisierung abeschlossen!", "uptodate": "Installation ist bereits auf dem neusten Stand (%s), aktualisieren wird übersprungen.", + "uptodate_short": "Auf dem neusten stand", "no_internet": "Keine Internetverbindung" }, diff --git a/src/lang/en.json b/src/lang/en.json index 67e7aa9..56d7cd8 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -29,6 +29,7 @@ "download_done": "Download done! Extracting...", "finished": "Installation/Update finished!", "uptodate": "Latest version (%s) is already installed, skipping update.", + "uptodate_short": "Up-to-date", "no_internet": "No Internet connection" }, diff --git a/src/lang/es.json b/src/lang/es.json index 31b1d71..41e80dd 100644 --- a/src/lang/es.json +++ b/src/lang/es.json @@ -22,10 +22,6 @@ "no_arg": "No se ha proporcionado ningún argumento para --setpath" }, - "gamepath": { - "lost": "El directorio del juego no fue encontrado, ¡asegúrate de que esté disponible!" - }, - "update": { "current": "Versión actual:", "downloading": "Descargando...", @@ -33,6 +29,7 @@ "download_done": "¡Descarga completa! Extrayendo...", "finished": "Instalación/Actualización completada!", "uptodate": "La ultima versión (%s) ya está instalada, omitiendo actualización.", + "uptodate_short": "Está actualizado", "no_internet": "Sin conexión a internet" }, @@ -47,6 +44,10 @@ "linux_error": "La ejecución del juego en Linux aun no está implementada" }, + "gamepath": { + "lost": "El directorio del juego no fue encontrado, ¡asegúrate de que esté disponible!" + }, + "mods": { "failed": "¡Fallo al instalar el mod!", "removed": "¡Modificación removida exitosamente!", diff --git a/src/lang/fr.json b/src/lang/fr.json index 0635e62..e44656f 100644 --- a/src/lang/fr.json +++ b/src/lang/fr.json @@ -29,6 +29,7 @@ "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.", + "uptodate_short": "Votre client est à jour", "no_internet": "Pas de connexion Internet" }, diff --git a/src/modules/update.js b/src/modules/update.js index c6c92d7..087cbd9 100644 --- a/src/modules/update.js +++ b/src/modules/update.js @@ -171,7 +171,7 @@ update.northstar = async () => { // Makes sure it is not already the latest version if (! await northstar_update_available()) { - ipcMain.emit("ns-update-event", "cli.update.uptodate.short"); + ipcMain.emit("ns-update-event", "cli.update.uptodate_short"); console.ok(lang("cli.update.uptodate").replace("%s", ns_version)); win.log(lang("gui.update.uptodate")); @@ -189,7 +189,7 @@ update.northstar = async () => { https.get(requests.getLatestNsVersionLink(), (res) => { // cancel out if zip can't be retrieved and or found if (res.statusCode !== 200) { - ipcMain.emit("ns-update-event", "cli.update.uptodate.short"); + ipcMain.emit("ns-update-event", "cli.update.uptodate_short"); console.ok(lang("cli.update.uptodate"), ns_version); return false; } @@ -249,7 +249,7 @@ update.northstar = async () => { ipcMain.emit("gui-getmods"); ipcMain.emit("get-version"); - ipcMain.emit("ns-update-event", "cli.update.uptodate.short"); + ipcMain.emit("ns-update-event", "cli.update.uptodate_short"); win.log(lang("gui.update.finished")); console.ok(lang("cli.update.finished")); cli.exit(); |