Added "Uncaught" localization in Starter Selection UI (#831)

pull/841/head
José Ricardo Fleury Oliveira 2024-05-13 20:02:44 -03:00 committed by GitHub
parent 3a3611dfc0
commit 74ee3329f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 42 additions and 35 deletions

View File

@ -30,5 +30,6 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"enablePassive": "Passiv-Skill aktivieren",
"disablePassive": "Passiv-Skill deaktivieren",
"locked": "Gesperrt",
"disabled": "Deaktiviert"
"disabled": "Deaktiviert",
"uncaught": "Uncaught"
}

View File

@ -30,5 +30,6 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"enablePassive": "Enable Passive",
"disablePassive": "Disable Passive",
"locked": "Locked",
"disabled": "Disabled"
"disabled": "Disabled",
"uncaught": "Uncaught"
}

View File

@ -30,5 +30,6 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"enablePassive": "Activar Pasiva",
"disablePassive": "Desactivar Pasiva",
"locked": "Locked",
"disabled": "Disabled"
"disabled": "Disabled",
"uncaught": "Uncaught"
}

View File

@ -30,5 +30,6 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"enablePassive": "Activer Passif",
"disablePassive": "Désactiver Passif",
"locked": "Verrouillé",
"disabled": "Désactivé"
"disabled": "Désactivé",
"uncaught": "Uncaught"
}

View File

@ -30,5 +30,6 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"enablePassive": "Attiva Passiva",
"disablePassive": "Disattiva Passiva",
"locked": "Locked",
"disabled": "Disabled"
"disabled": "Disabled",
"uncaught": "Uncaught"
}

View File

@ -31,4 +31,5 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"disablePassive": "Desativar Passiva",
"locked": "Bloqueado",
"disabled": "Desativado",
"uncaught": "Não capturado"
}

View File

@ -30,5 +30,6 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"enablePassive": "启用被动",
"disablePassive": "禁用被动",
"locked": "Locked",
"disabled": "Disabled"
"disabled": "Disabled",
"uncaught": "Uncaught"
}

View File

@ -1,34 +1,34 @@
import BattleScene, { starterColors } from "../battle-scene";
import PokemonSpecies, { allSpecies, getPokemonSpecies, getPokemonSpeciesForm, speciesStarters, starterPassiveAbilities, getStarterValueFriendshipCap } from "../data/pokemon-species";
import { Species } from "../data/enums/species";
import { TextStyle, addBBCodeTextObject, addTextObject } from "./text";
import { Mode } from "./ui";
import MessageUiHandler from "./message-ui-handler";
import { Gender, getGenderColor, getGenderSymbol } from "../data/gender";
import { allAbilities } from "../data/ability";
import { GameModes, gameModes } from "../game-mode";
import { GrowthRate, getGrowthRateColor } from "../data/exp";
import { AbilityAttr, DexAttr, DexAttrProps, DexEntry, Passive as PassiveAttr, StarterFormMoveData, StarterMoveset } from "../system/game-data";
import * as Utils from "../utils";
import PokemonIconAnimHandler, { PokemonIconAnimMode } from "./pokemon-icon-anim-handler";
import { StatsContainer } from "./stats-container";
import { addWindow } from "./ui-theme";
import { Nature, getNatureName } from "../data/nature";
import BBCodeText from "phaser3-rex-plugins/plugins/bbcodetext";
import { pokemonFormChanges } from "../data/pokemon-forms";
import { Tutorial, handleTutorial } from "../tutorial";
import { LevelMoves, pokemonFormLevelMoves, pokemonSpeciesLevelMoves } from "../data/pokemon-level-moves";
import { allMoves } from "../data/move";
import { Type } from "../data/type";
import { Moves } from "../data/enums/moves";
import { speciesEggMoves } from "../data/egg-moves";
import { TitlePhase } from "../phases";
import { argbFromRgba } from "@material/material-color-utilities";
import { OptionSelectItem } from "./abstact-option-select-ui-handler";
import { pokemonPrevolutions } from "#app/data/pokemon-evolutions";
import { Variant, getVariantTint } from "#app/data/variant";
import { argbFromRgba } from "@material/material-color-utilities";
import i18next from "i18next";
import {Button} from "../enums/buttons";
import BBCodeText from "phaser3-rex-plugins/plugins/bbcodetext";
import BattleScene, { starterColors } from "../battle-scene";
import { allAbilities } from "../data/ability";
import { speciesEggMoves } from "../data/egg-moves";
import { Moves } from "../data/enums/moves";
import { Species } from "../data/enums/species";
import { GrowthRate, getGrowthRateColor } from "../data/exp";
import { Gender, getGenderColor, getGenderSymbol } from "../data/gender";
import { allMoves } from "../data/move";
import { Nature, getNatureName } from "../data/nature";
import { pokemonFormChanges } from "../data/pokemon-forms";
import { LevelMoves, pokemonFormLevelMoves, pokemonSpeciesLevelMoves } from "../data/pokemon-level-moves";
import PokemonSpecies, { allSpecies, getPokemonSpecies, getPokemonSpeciesForm, getStarterValueFriendshipCap, speciesStarters, starterPassiveAbilities } from "../data/pokemon-species";
import { Type } from "../data/type";
import { Button } from "../enums/buttons";
import { GameModes, gameModes } from "../game-mode";
import { TitlePhase } from "../phases";
import { AbilityAttr, DexAttr, DexAttrProps, DexEntry, Passive as PassiveAttr, StarterFormMoveData, StarterMoveset } from "../system/game-data";
import { Tutorial, handleTutorial } from "../tutorial";
import * as Utils from "../utils";
import { OptionSelectItem } from "./abstact-option-select-ui-handler";
import MessageUiHandler from "./message-ui-handler";
import PokemonIconAnimHandler, { PokemonIconAnimMode } from "./pokemon-icon-anim-handler";
import { StatsContainer } from "./stats-container";
import { TextStyle, addBBCodeTextObject, addTextObject } from "./text";
import { Mode } from "./ui";
import { addWindow } from "./ui-theme";
export type StarterSelectCallback = (starters: Starter[]) => void;
@ -241,7 +241,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
this.pokemonGenderText.setOrigin(0, 0);
this.starterSelectContainer.add(this.pokemonGenderText);
this.pokemonUncaughtText = addTextObject(this.scene, 6, 127, 'Uncaught', TextStyle.SUMMARY_ALT, { fontSize: '56px' });
this.pokemonUncaughtText = addTextObject(this.scene, 6, 127, i18next.t("starterSelectUiHandler:uncaught"), TextStyle.SUMMARY_ALT, { fontSize: '56px' });
this.pokemonUncaughtText.setOrigin(0, 0);
this.starterSelectContainer.add(this.pokemonUncaughtText);