Added Gen names localizations in Starter Selection UI (+"Uncaught" translation in French) (#907)
* Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Update starter-select-ui-handler.ts * Update starter-select-ui-handler.ts * Added Gen names localizations in Starter Selection UI * Added Gen names localizations in Starter Selection UI * Updated with recent pt BR editspull/383/merge
parent
9197f9f070
commit
afcffab90f
|
@ -7,6 +7,15 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
*/
|
*/
|
||||||
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"confirmStartTeam": "Mit diesen Pokémon losziehen?",
|
"confirmStartTeam": "Mit diesen Pokémon losziehen?",
|
||||||
|
"gen1": "I",
|
||||||
|
"gen2": "II",
|
||||||
|
"gen3": "III",
|
||||||
|
"gen4": "IV",
|
||||||
|
"gen5": "V",
|
||||||
|
"gen6": "VI",
|
||||||
|
"gen7": "VII",
|
||||||
|
"gen8": "VIII",
|
||||||
|
"gen9": "IX",
|
||||||
"growthRate": "Wachstum:",
|
"growthRate": "Wachstum:",
|
||||||
"ability": "Fhgkeit:",
|
"ability": "Fhgkeit:",
|
||||||
"passive": "Passiv:",
|
"passive": "Passiv:",
|
||||||
|
|
|
@ -7,6 +7,15 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
*/
|
*/
|
||||||
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"confirmStartTeam":'Begin with these Pokémon?',
|
"confirmStartTeam":'Begin with these Pokémon?',
|
||||||
|
"gen1": "I",
|
||||||
|
"gen2": "II",
|
||||||
|
"gen3": "III",
|
||||||
|
"gen4": "IV",
|
||||||
|
"gen5": "V",
|
||||||
|
"gen6": "VI",
|
||||||
|
"gen7": "VII",
|
||||||
|
"gen8": "VIII",
|
||||||
|
"gen9": "IX",
|
||||||
"growthRate": "Growth Rate:",
|
"growthRate": "Growth Rate:",
|
||||||
"ability": "Ability:",
|
"ability": "Ability:",
|
||||||
"passive": "Passive:",
|
"passive": "Passive:",
|
||||||
|
|
|
@ -7,6 +7,15 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
*/
|
*/
|
||||||
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"confirmStartTeam":'¿Comenzar con estos Pokémon?',
|
"confirmStartTeam":'¿Comenzar con estos Pokémon?',
|
||||||
|
"gen1": "I",
|
||||||
|
"gen2": "II",
|
||||||
|
"gen3": "III",
|
||||||
|
"gen4": "IV",
|
||||||
|
"gen5": "V",
|
||||||
|
"gen6": "VI",
|
||||||
|
"gen7": "VII",
|
||||||
|
"gen8": "VIII",
|
||||||
|
"gen9": "IX",
|
||||||
"growthRate": "Crecimiento:",
|
"growthRate": "Crecimiento:",
|
||||||
"ability": "Habilid:",
|
"ability": "Habilid:",
|
||||||
"passive": "Pasiva:",
|
"passive": "Pasiva:",
|
||||||
|
|
|
@ -7,6 +7,15 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
*/
|
*/
|
||||||
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"confirmStartTeam":'Commencer avec ces Pokémon ?',
|
"confirmStartTeam":'Commencer avec ces Pokémon ?',
|
||||||
|
"gen1": "1G",
|
||||||
|
"gen2": "2G",
|
||||||
|
"gen3": "3G",
|
||||||
|
"gen4": "4G",
|
||||||
|
"gen5": "5G",
|
||||||
|
"gen6": "6G",
|
||||||
|
"gen7": "7G",
|
||||||
|
"gen8": "8G",
|
||||||
|
"gen9": "9G",
|
||||||
"growthRate": "Croissance :",
|
"growthRate": "Croissance :",
|
||||||
"ability": "Talent :",
|
"ability": "Talent :",
|
||||||
"passive": "Passif :",
|
"passive": "Passif :",
|
||||||
|
@ -31,5 +40,5 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"disablePassive": "Désactiver Passif",
|
"disablePassive": "Désactiver Passif",
|
||||||
"locked": "Verrouillé",
|
"locked": "Verrouillé",
|
||||||
"disabled": "Désactivé",
|
"disabled": "Désactivé",
|
||||||
"uncaught": "Uncaught"
|
"uncaught": "Non-capturé"
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,15 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
*/
|
*/
|
||||||
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"confirmStartTeam":'Vuoi iniziare con questi Pokémon?',
|
"confirmStartTeam":'Vuoi iniziare con questi Pokémon?',
|
||||||
|
"gen1": "I",
|
||||||
|
"gen2": "II",
|
||||||
|
"gen3": "III",
|
||||||
|
"gen4": "IV",
|
||||||
|
"gen5": "V",
|
||||||
|
"gen6": "VI",
|
||||||
|
"gen7": "VII",
|
||||||
|
"gen8": "VIII",
|
||||||
|
"gen9": "IX",
|
||||||
"growthRate": "Vel. Crescita:",
|
"growthRate": "Vel. Crescita:",
|
||||||
"ability": "Abilità:",
|
"ability": "Abilità:",
|
||||||
"passive": "Passiva:",
|
"passive": "Passiva:",
|
||||||
|
|
|
@ -7,6 +7,15 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
*/
|
*/
|
||||||
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"confirmStartTeam": 'Começar com esses Pokémon?',
|
"confirmStartTeam": 'Começar com esses Pokémon?',
|
||||||
|
"gen1": "I",
|
||||||
|
"gen2": "II",
|
||||||
|
"gen3": "III",
|
||||||
|
"gen4": "IV",
|
||||||
|
"gen5": "V",
|
||||||
|
"gen6": "VI",
|
||||||
|
"gen7": "VII",
|
||||||
|
"gen8": "VIII",
|
||||||
|
"gen9": "IX",
|
||||||
"growthRate": "Crescimento:",
|
"growthRate": "Crescimento:",
|
||||||
"ability": "Habilidade:",
|
"ability": "Habilidade:",
|
||||||
"passive": "Passiva:",
|
"passive": "Passiva:",
|
||||||
|
|
|
@ -7,6 +7,15 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
*/
|
*/
|
||||||
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"confirmStartTeam":'使用这些宝可梦开始游戏吗?',
|
"confirmStartTeam":'使用这些宝可梦开始游戏吗?',
|
||||||
|
"gen1": "I",
|
||||||
|
"gen2": "II",
|
||||||
|
"gen3": "III",
|
||||||
|
"gen4": "IV",
|
||||||
|
"gen5": "V",
|
||||||
|
"gen6": "VI",
|
||||||
|
"gen7": "VII",
|
||||||
|
"gen8": "VIII",
|
||||||
|
"gen9": "IX",
|
||||||
"growthRate": "成长速度:",
|
"growthRate": "成长速度:",
|
||||||
"ability": "特性:",
|
"ability": "特性:",
|
||||||
"passive": "被动:",
|
"passive": "被动:",
|
||||||
|
|
|
@ -86,7 +86,17 @@ function getValueReductionCandyCounts(baseValue: integer): [integer, integer] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const gens = [ 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX' ];
|
const gens = [
|
||||||
|
i18next.t("starterSelectUiHandler:gen1"),
|
||||||
|
i18next.t("starterSelectUiHandler:gen2"),
|
||||||
|
i18next.t("starterSelectUiHandler:gen3"),
|
||||||
|
i18next.t("starterSelectUiHandler:gen4"),
|
||||||
|
i18next.t("starterSelectUiHandler:gen5"),
|
||||||
|
i18next.t("starterSelectUiHandler:gen6"),
|
||||||
|
i18next.t("starterSelectUiHandler:gen7"),
|
||||||
|
i18next.t("starterSelectUiHandler:gen8"),
|
||||||
|
i18next.t("starterSelectUiHandler:gen9")
|
||||||
|
];
|
||||||
|
|
||||||
export default class StarterSelectUiHandler extends MessageUiHandler {
|
export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
private starterSelectContainer: Phaser.GameObjects.Container;
|
private starterSelectContainer: Phaser.GameObjects.Container;
|
||||||
|
@ -1287,15 +1297,17 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
updateGenOptions(): void {
|
updateGenOptions(): void {
|
||||||
let text = '';
|
let text = '';
|
||||||
for (let g = this.genScrollCursor; g <= this.genScrollCursor + 2; g++) {
|
for (let g = this.genScrollCursor; g <= this.genScrollCursor + 2; g++) {
|
||||||
let optionText = gens[g];
|
let optionText = '';
|
||||||
if (g === this.genScrollCursor && this.genScrollCursor)
|
if (g === this.genScrollCursor && this.genScrollCursor)
|
||||||
optionText = '↑';
|
optionText = '↑';
|
||||||
else if (g === this.genScrollCursor + 2 && this.genScrollCursor < gens.length - 3)
|
else if (g === this.genScrollCursor + 2 && this.genScrollCursor < gens.length - 3)
|
||||||
optionText = '↓'
|
optionText = '↓'
|
||||||
text += `${text ? '\n' : ''}${optionText}`;
|
else
|
||||||
|
optionText = i18next.t(`starterSelectUiHandler:gen${g + 1}`);
|
||||||
|
text += `${text ? '\n' : ''}${optionText}`;
|
||||||
}
|
}
|
||||||
this.genOptionsText.setText(text);
|
this.genOptionsText.setText(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
setGenMode(genMode: boolean): boolean {
|
setGenMode(genMode: boolean): boolean {
|
||||||
this.genCursorObj.setVisible(genMode && !this.startCursorObj.visible);
|
this.genCursorObj.setVisible(genMode && !this.startCursorObj.visible);
|
||||||
|
|
Loading…
Reference in New Issue