More literals and multilang for summary images

pull/918/head
rnicar 2024-05-14 21:37:40 +02:00
parent 2f2418acf5
commit faf05d8258
109 changed files with 213 additions and 56 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 981 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1020 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 867 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

View File

@ -8,7 +8,7 @@ import { SceneBase } from "./scene-base";
import { WindowVariant, getWindowVariantSuffix } from "./ui/ui-theme"; import { WindowVariant, getWindowVariantSuffix } from "./ui/ui-theme";
import { isMobile } from "./touch-controls"; import { isMobile } from "./touch-controls";
import * as Utils from "./utils"; import * as Utils from "./utils";
import { initI18n } from "./plugins/i18n"; import i18next, { initI18n } from "./plugins/i18n";
export class LoadingScene extends SceneBase { export class LoadingScene extends SceneBase {
constructor() { constructor() {
@ -108,8 +108,23 @@ export class LoadingScene extends SceneBase {
this.loadImage('summary_moves_overlay_row', 'ui'); this.loadImage('summary_moves_overlay_row', 'ui');
this.loadImage('summary_moves_overlay_pp', 'ui'); this.loadImage('summary_moves_overlay_pp', 'ui');
this.loadAtlas('summary_moves_cursor', 'ui'); this.loadAtlas('summary_moves_cursor', 'ui');
for (let t = 1; t <= 3; t++) for (let t = 1; t <= 3; t++){
this.loadImage(`summary_tabs_${t}`, 'ui'); this.loadImage(`summary_tabs_${t}`, 'ui');
}
i18next.languages.forEach(lang => {
if(Utils.verifyLang(lang)){
this.loadImage(`starter_select_bg_${lang}`, 'ui');
this.loadImage(`summary_bg_${lang}`, 'ui');
this.loadImage(`summary_moves_${lang}`, 'ui');
this.loadImage(`summary_moves_effect_${lang}`, 'ui');
this.loadImage(`summary_profile_${lang}`, 'ui');
this.loadImage(`summary_stats_${lang}`, 'ui');
for (let t = 1; t <= 3; t++){
this.loadImage(`summary_tabs_${t}_${lang}`, 'ui');
}
}
});
this.loadImage('starter_select_bg', 'ui'); this.loadImage('starter_select_bg', 'ui');
this.loadImage('select_cursor', 'ui'); this.loadImage('select_cursor', 'ui');
@ -185,10 +200,11 @@ export class LoadingScene extends SceneBase {
this.loadAtlas('pb', ''); this.loadAtlas('pb', '');
this.loadAtlas('items', ''); this.loadAtlas('items', '');
this.loadAtlas('types', ''); this.loadAtlas('types', '');
this.loadAtlas('types_es', ''); i18next.languages.forEach(lang => {
this.loadAtlas('types_de', ''); if(Utils.verifyLang(lang)){
this.loadAtlas('types_it', ''); this.loadAtlas(`types_${lang}`, '');
this.loadAtlas('types_fr', ''); }
});
this.loadAtlas('types_zh_CN', ''); this.loadAtlas('types_zh_CN', '');
this.loadAtlas('statuses', ''); this.loadAtlas('statuses', '');
this.loadAtlas('categories', ''); this.loadAtlas('categories', '');

View File

@ -2,4 +2,16 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const partyUiHandler: SimpleTranslationEntries = { export const partyUiHandler: SimpleTranslationEntries = {
"choosePokemon": "Choose a Pokémon.", "choosePokemon": "Choose a Pokémon.",
"cantReleaseInBattle": "You can\'t release a Pokémon that\'s in battle!",
"what2doWithPoke": "Do what with this Pokémon?",
"cancelShort": "Cancel",
"selectMove": "Select a move.",
"selectHeldItemTransfer": "Select a held item to transfer.",
"selectSplice": "Select another Pokémon to splice.",
"deactivate": "Deactivate",
"activate": "Activate",
"SEND_OUT": "Send Out",
"SUMMARY": "Summary",
"RELEASE": "Release",
"CANCEL": "Cancel"
} as const; } as const;

View File

@ -28,5 +28,8 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": "N: Wesen Ändern", "cycleNature": "N: Wesen Ändern",
"cycleVariant": "V: Seltenheit ändern", "cycleVariant": "V: Seltenheit ändern",
"enablePassive": "Passiv-Skill aktivieren", "enablePassive": "Passiv-Skill aktivieren",
"disablePassive": "Passiv-Skill deaktivieren" "disablePassive": "Passiv-Skill deaktivieren",
"uncaught": "Uncaught",
"luck":" Luck",
"form": "Form"
} }

View File

@ -1,5 +1,17 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n"; import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const SummaryUiHandler: SimpleTranslationEntries = { export const SummaryUiHandler: SimpleTranslationEntries = {
"pokemonInfo": "Pokémon Info", "pokemonInfo": "Pokémon Info", //Currently unused
"originalTrainer": "OT",
"type": "Type",
"natureBeforeText": "",
"natureAfterText": " nature",
"apparently": "apparently",
"metAtLv":"met at Lv",
"status": "Status",
"lvl": "Lvl",
"unknown": 'Unknown',
"expPoints": "EXP. Points",
"nextLv": "Next Lv.",
"moveStats": "Power\nAccuracy\nCategory"
} as const; } as const;

View File

@ -5,6 +5,11 @@ export const partyUiHandler: SimpleTranslationEntries = {
"cantReleaseInBattle": "You can\'t release a Pokémon that\'s in battle!", "cantReleaseInBattle": "You can\'t release a Pokémon that\'s in battle!",
"what2doWithPoke": "Do what with this Pokémon?", "what2doWithPoke": "Do what with this Pokémon?",
"cancelShort": "Cancel", "cancelShort": "Cancel",
"selectMove": "Select a move.",
"selectHeldItemTransfer": "Select a held item to transfer.",
"selectSplice": "Select another Pokémon to splice.",
"deactivate": "Deactivate",
"activate": "Activate",
"SEND_OUT": "Send Out", "SEND_OUT": "Send Out",
"SUMMARY": "Summary", "SUMMARY": "Summary",
"RELEASE": "Release", "RELEASE": "Release",

View File

@ -28,5 +28,8 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": 'N: Cycle Nature', "cycleNature": 'N: Cycle Nature',
"cycleVariant": 'V: Cycle Variant', "cycleVariant": 'V: Cycle Variant',
"enablePassive": "Enable Passive", "enablePassive": "Enable Passive",
"disablePassive": "Disable Passive" "disablePassive": "Disable Passive",
"uncaught": "Uncaught",
"luck":" Luck",
"form": "Form"
} }

View File

@ -1,12 +1,17 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n"; import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const SummaryUiHandler: SimpleTranslationEntries = { export const SummaryUiHandler: SimpleTranslationEntries = {
"pokemonInfo": "Pokémon Info", //Do not translate yet "pokemonInfo": "Pokémon Info", //Currently unused
"originalTrainer": "OT", "originalTrainer": "OT",
"type": "Type", "type": "Type",
"natureBeforeText": "", "natureBeforeText": "",
"natureAfterText": " nature", "natureAfterText": " nature",
"apparently": "apparently", "apparently": "apparently",
"metAtLv":"met at Lv", "metAtLv":"met at Lv",
"status": "Status" "status": "Status",
"lvl": "Lvl",
"unknown": 'Unknown',
"expPoints": "EXP. Points",
"nextLv": "Next Lv.",
"moveStats": "Power\nAccuracy\nCategory"
} as const; } as const;

View File

@ -5,6 +5,11 @@ export const partyUiHandler: SimpleTranslationEntries = {
"cantReleaseInBattle": "¡No puedes liberar un Pokémon en combate!", "cantReleaseInBattle": "¡No puedes liberar un Pokémon en combate!",
"what2doWithPoke": "¿Qué hacer con este Pokémon?", "what2doWithPoke": "¿Qué hacer con este Pokémon?",
"cancelShort": "Cancel", "cancelShort": "Cancel",
"selectMove": "Elige un movimiento.",
"selectHeldItemTransfer": "Elige qué objeto transferir.",
"selectSplice": "Elige otro Pokémon para la fusión.",
"deactivate": "Desactivar",
"activate": "Activar",
"SEND_OUT": "Cambiar", "SEND_OUT": "Cambiar",
"SUMMARY": "Datos", "SUMMARY": "Datos",
"RELEASE": "Liberar", "RELEASE": "Liberar",

View File

@ -28,5 +28,8 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": 'N: Cambiar Naturaleza', "cycleNature": 'N: Cambiar Naturaleza',
"cycleVariant": 'V: Cambiar Variante', "cycleVariant": 'V: Cambiar Variante',
"enablePassive": "Activar Pasiva", "enablePassive": "Activar Pasiva",
"disablePassive": "Desactivar Pasiva" "disablePassive": "Desactivar Pasiva",
"uncaught": "Sin capturar",
"luck":" Suerte",
"form": "Forma"
} }

View File

@ -1,12 +1,17 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n"; import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const SummaryUiHandler: SimpleTranslationEntries = { export const SummaryUiHandler: SimpleTranslationEntries = {
"pokemonInfo": "Info Pokémon", //Do not translate yet "pokemonInfo": "Info. Pokémon", //Currently unused
"originalTrainer": "EO", "originalTrainer": "EO",
"type": "Tipo", "type": "Tipo",
"natureBeforeText": "Naturaleza", "natureBeforeText": "Naturaleza: ",
"natureAfterText": "", "natureAfterText": "",
"apparently": "aparentemente", "apparently": "aparentemente",
"metAtLv":"encontrado con Nv. ", "metAtLv":"encontrado con Nv. ",
"status": "Estado" "status": "Estado",
"lvl": "Nv",
"unknown": "Desconocido",
"expPoints": "Puntos Exp",
"nextLv": "Sig. Nv.",
"moveStats": "Poder\nPrecisión\nCategoría"
} as const; } as const;

View File

@ -2,4 +2,16 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const partyUiHandler: SimpleTranslationEntries = { export const partyUiHandler: SimpleTranslationEntries = {
"choosePokemon": "Choose a Pokémon.", "choosePokemon": "Choose a Pokémon.",
"cantReleaseInBattle": "You can\'t release a Pokémon that\'s in battle!",
"what2doWithPoke": "Do what with this Pokémon?",
"cancelShort": "Cancel",
"selectMove": "Select a move.",
"selectHeldItemTransfer": "Select a held item to transfer.",
"selectSplice": "Select another Pokémon to splice.",
"deactivate": "Deactivate",
"activate": "Activate",
"SEND_OUT": "Send Out",
"SUMMARY": "Summary",
"RELEASE": "Release",
"CANCEL": "Cancel"
} as const; } as const;

View File

@ -28,5 +28,8 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": "N: » Natures", "cycleNature": "N: » Natures",
"cycleVariant": "V: » Variants", "cycleVariant": "V: » Variants",
"enablePassive": "Activer Passif", "enablePassive": "Activer Passif",
"disablePassive": "Désactiver Passif" "disablePassive": "Désactiver Passif",
"uncaught": "Uncaught",
"luck":" Luck",
"form": "Form"
} }

View File

@ -1,5 +1,17 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n"; import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const SummaryUiHandler: SimpleTranslationEntries = { export const SummaryUiHandler: SimpleTranslationEntries = {
"pokemonInfo": "Pokémon Info", "pokemonInfo": "Pokémon Info", //Currently unused
"originalTrainer": "OT",
"type": "Type",
"natureBeforeText": "",
"natureAfterText": " nature",
"apparently": "apparently",
"metAtLv":"met at Lv",
"status": "Status",
"lvl": "Lvl",
"unknown": 'Unknown',
"expPoints": "EXP. Points",
"nextLv": "Next Lv.",
"moveStats": "Power\nAccuracy\nCategory"
} as const; } as const;

View File

@ -2,4 +2,16 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const partyUiHandler: SimpleTranslationEntries = { export const partyUiHandler: SimpleTranslationEntries = {
"choosePokemon": "Choose a Pokémon.", "choosePokemon": "Choose a Pokémon.",
"cantReleaseInBattle": "You can\'t release a Pokémon that\'s in battle!",
"what2doWithPoke": "Do what with this Pokémon?",
"cancelShort": "Cancel",
"selectMove": "Select a move.",
"selectHeldItemTransfer": "Select a held item to transfer.",
"selectSplice": "Select another Pokémon to splice.",
"deactivate": "Deactivate",
"activate": "Activate",
"SEND_OUT": "Send Out",
"SUMMARY": "Summary",
"RELEASE": "Release",
"CANCEL": "Cancel"
} as const; } as const;

Some files were not shown because too many files have changed in this diff Show More