Skip to content

Commit

Permalink
Localization: Localized error message for server connection issue (pa…
Browse files Browse the repository at this point in the history
…gefaultgames#2598)

* Localization: localized error message for server connection issue

* forgor about the portuguese translation

* Update src/locales/fr/menu.ts

Co-authored-by: Lugiad' <[email protected]>

* switched the chinese and portuguese translations

* Update src/locales/de/menu.ts

Co-authored-by: Jannik Tappert <[email protected]>

* Update src/locales/zh_CN/menu.ts

Co-authored-by: Yonmaru40 <[email protected]>

* Update src/locales/ko/menu.ts

Co-authored-by: Enoch <[email protected]>

* updated pt translation

* last german fix

* Update src/locales/es/menu.ts

Co-authored-by: Arxxer <[email protected]>

---------

Co-authored-by: Lugiad' <[email protected]>
Co-authored-by: Jannik Tappert <[email protected]>
Co-authored-by: Yonmaru40 <[email protected]>
Co-authored-by: Enoch <[email protected]>
Co-authored-by: Arxxer <[email protected]>
  • Loading branch information
6 people authored Jun 27, 2024
1 parent e521862 commit 5ec8bf1
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/locales/de/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ export const menu: SimpleTranslationEntries = {
"disclaimer": "HAFTUNGSAUSSCHLUSS",
"disclaimerDescription": "Dieses Spiel ist ein unfertiges Produkt. Es kann spielbeinträchtigende Fehler (bis hin zum Verlust des Speicherstandes)\n aufweisen, sich ohne Vorankündigung ändern und es gibt keine Garantie dass es weiterentwickelt oder fertiggestellt wird.",
"choosePokemon": "Choose a Pokémon.",
"errorServerDown": "Ups! Es gab einen Fehler beim Versuch\nden Server zu kontaktieren\nLasse dieses Fenster offen\nDu wirst automatisch neu verbunden.",
} as const;
1 change: 1 addition & 0 deletions src/locales/en/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ export const menu: SimpleTranslationEntries = {
"disclaimer": "DISCLAIMER",
"disclaimerDescription": "This game is an unfinished product; it might have playability issues (including the potential loss of save data),\n change without notice, and may or may not be updated further or completed.",
"choosePokemon": "Choose a Pokémon.",
"errorServerDown": "Oops! There was an issue contacting the server.\n\nYou may leave this window open,\nthe game will automatically reconnect.",
} as const;
1 change: 1 addition & 0 deletions src/locales/es/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ export const menu: SimpleTranslationEntries = {
"disclaimer": "AVISO",
"disclaimerDescription": "Este juego es un producto inacabado; puede tener problemas de jugabilidad (incluyendo la posible pérdida\n de datos de guardado),cambiar sin avisar, y puede o no puede ser actualizado hasta ser completado.",
"choosePokemon": "Choose a Pokémon.",
"errorServerDown": "¡Ups! Ha habido un problema al contactar con el servidor.\n\nPuedes mantener esta ventana abierta,\nel juego se reconectará automáticamente.",
} as const;
1 change: 1 addition & 0 deletions src/locales/fr/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ export const menu: SimpleTranslationEntries = {
"disclaimer": "AVERTISSEMENT",
"disclaimerDescription": "Ce jeu n’est pas un produit fini et peut contenir des problèmes de jouabilité, dont de possibles pertes de sauvegardes,\ndes modifications sans avertissement et pourrait ou non encore être mis à jour ou terminé.",
"choosePokemon": "Sélectionnez un Pokémon.",
"errorServerDown": "Oupsi ! Un problème de connexion au serveur est survenu.\n\nVous pouvez garder cette fenêtre ouverte,\nle jeu se reconnectera automatiquement.",
} as const;
1 change: 1 addition & 0 deletions src/locales/it/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ export const menu: SimpleTranslationEntries = {
"disclaimer": "DISCLAIMER",
"disclaimerDescription": "Questo gioco è un prodotto incompleto; si potrebbero riscontrare errori (inclusa la perdita dei dati di salvataggio),\ncambiamenti impercettibili, e non è detto che venga aggiornato nel tempo o mai completato del tutto.",
"choosePokemon": "Choose a Pokémon.",
"errorServerDown": "Oops! There was an issue contacting the server.\n\nYou may leave this window open,\nthe game will automatically reconnect.",
} as const;
1 change: 1 addition & 0 deletions src/locales/ko/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ export const menu: SimpleTranslationEntries = {
"disclaimer": "면책 조항",
"disclaimerDescription": "이 게임은 완전히 개발되지 않았습니다- (세이브 데이터 소실을 포함) 플레이에 지장을 주는 문제가 생길 수 있으며,\n공지 없이 업데이트가 진행 혹은 중지될 수 있습니다.",
"choosePokemon": "포켓몬을 선택하세요.",
"errorServerDown": "서버 연결 중 문제가 발생했습니다.\n\n이 창을 종료하지 않고 두면,\n게임은 자동으로 재접속됩니다.",
} as const;
1 change: 1 addition & 0 deletions src/locales/pt_BR/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ export const menu: SimpleTranslationEntries = {
"disclaimer": "AVISO",
"disclaimerDescription": "Este jogo é um produto inacabado; ele pode ter problemas de jogabilidade (incluindo possíveis\n perdas de dados salvos), sofrer alterações sem aviso prévio e pode ou não ser atualizado ou concluído.",
"choosePokemon": "Escolha um Pokémon.",
"errorServerDown": "Opa! Não foi possível conectar-se ao servidor.\n\nVocê pode deixar essa janela aberta,\npois o jogo irá se reconectar automaticamente.",
} as const;
1 change: 1 addition & 0 deletions src/locales/zh_CN/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ export const menu: SimpleTranslationEntries = {
"disclaimer": "免责声明",
"disclaimerDescription": "这个游戏尚未完成; 可能存在游戏性问题(包括潜在的丢档风险)、\n 不经通知的调整、 未来可能会更新或完成更多内容",
"choosePokemon": "选择一只宝可梦。",
"errorServerDown": "糟糕!访问服务器时发生了错误。\n\n你可以保持页面开启,\n游戏会自动重新连接。",
} as const;
1 change: 1 addition & 0 deletions src/locales/zh_TW/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ export const menu: SimpleTranslationEntries = {
"disclaimer": "DISCLAIMER",
"disclaimerDescription": "This game is an unfinished product; it might have playability issues (including the potential loss of save data),\n change without notice, and may or may not be updated further or completed.",
"choosePokemon": "Choose a Pokémon.",
"errorServerDown": "Oops! There was an issue contacting the server.\n\nYou may leave this window open,\nthe game will automatically reconnect.",
} as const;
3 changes: 2 additions & 1 deletion src/ui/unavailable-modal-ui-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { addTextObject, TextStyle } from "./text";
import { Mode } from "./ui";
import { updateUserInfo } from "#app/account";
import * as Utils from "#app/utils";
import i18next from "i18next";

export default class UnavailableModalUiHandler extends ModalUiHandler {
private reconnectTimer: NodeJS.Timeout;
Expand Down Expand Up @@ -43,7 +44,7 @@ export default class UnavailableModalUiHandler extends ModalUiHandler {
setup(): void {
super.setup();

const label = addTextObject(this.scene, this.getWidth() / 2, this.getHeight() / 2, "Oops! There was an issue contacting the server.\n\nYou may leave this window open,\nthe game will automatically reconnect.", TextStyle.WINDOW, { fontSize: "48px", align: "center" });
const label = addTextObject(this.scene, this.getWidth() / 2, this.getHeight() / 2, i18next.t("menu:errorServerDown"), TextStyle.WINDOW, { fontSize: "48px", align: "center" });
label.setOrigin(0.5, 0.5);

this.modalContainer.add(label);
Expand Down

0 comments on commit 5ec8bf1

Please sign in to comment.