Skip to content

Commit

Permalink
more minor fixes to the change in lang files
Browse files Browse the repository at this point in the history
  • Loading branch information
0neGal committed Sep 16, 2023
1 parent 1c405a6 commit 53c1905
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions src/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},

Expand Down
1 change: 1 addition & 0 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},

Expand Down
9 changes: 5 additions & 4 deletions src/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@
"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...",
"checking": "Buscando actualizaciones...",
"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"
},

Expand All @@ -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!",
Expand Down
1 change: 1 addition & 0 deletions src/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},

Expand Down
6 changes: 3 additions & 3 deletions src/modules/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand All @@ -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;
}
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 53c1905

Please sign in to comment.