mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 16:56:11 +00:00
Few new lines up to be localized from in battle.ts locales (#1144)
* Update phases.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update phases.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update battle.ts * Update phases.ts
This commit is contained in:
parent
f7a7b23dd1
commit
79af115278
@ -4,6 +4,7 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"bossAppeared": "{{bossName}} erscheint.",
|
"bossAppeared": "{{bossName}} erscheint.",
|
||||||
"trainerAppeared": "{{trainerName}}\nmöchte kämpfen!",
|
"trainerAppeared": "{{trainerName}}\nmöchte kämpfen!",
|
||||||
"trainerAppearedDouble": "{{trainerName}}\nmöchten kämpfen!",
|
"trainerAppearedDouble": "{{trainerName}}\nmöchten kämpfen!",
|
||||||
|
"trainerSendOut": "{{trainerName}} setzt\n{{pokemonName}} ein!",
|
||||||
"singleWildAppeared": "Ein wildes {{pokemonName}} erscheint!",
|
"singleWildAppeared": "Ein wildes {{pokemonName}} erscheint!",
|
||||||
"multiWildAppeared": "Ein wildes {{pokemonName1}}\nund {{pokemonName2}} erscheinen!",
|
"multiWildAppeared": "Ein wildes {{pokemonName1}}\nund {{pokemonName2}} erscheinen!",
|
||||||
"playerComeBack": "Komm zurück, {{pokemonName}}!",
|
"playerComeBack": "Komm zurück, {{pokemonName}}!",
|
||||||
@ -12,7 +13,9 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"trainerGo": "{{trainerName}} sendet {{pokemonName}} raus!",
|
"trainerGo": "{{trainerName}} sendet {{pokemonName}} raus!",
|
||||||
"switchQuestion": "Möchtest du\n{{pokemonName}} auswechseln?",
|
"switchQuestion": "Möchtest du\n{{pokemonName}} auswechseln?",
|
||||||
"trainerDefeated": "{{trainerName}}\nwurde besiegt!",
|
"trainerDefeated": "{{trainerName}}\nwurde besiegt!",
|
||||||
|
"moneyWon": "Du gewinnst\n{{moneyAmount}} ₽!",
|
||||||
"pokemonCaught": "{{pokemonName}} wurde gefangen!",
|
"pokemonCaught": "{{pokemonName}} wurde gefangen!",
|
||||||
|
"partyFull": "Dein Team ist voll.\nMöchtest du ein Pokémon durch {{pokemonName}} ersetzen?",
|
||||||
"pokemon": "Pokémon",
|
"pokemon": "Pokémon",
|
||||||
"sendOutPokemon": "Los, {{pokemonName}}!",
|
"sendOutPokemon": "Los, {{pokemonName}}!",
|
||||||
"hitResultCriticalHit": "Ein Volltreffer!",
|
"hitResultCriticalHit": "Ein Volltreffer!",
|
||||||
|
@ -4,6 +4,7 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"bossAppeared": "{{bossName}} appeared.",
|
"bossAppeared": "{{bossName}} appeared.",
|
||||||
"trainerAppeared": "{{trainerName}}\nwould like to battle!",
|
"trainerAppeared": "{{trainerName}}\nwould like to battle!",
|
||||||
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
||||||
|
"trainerSendOut": "{{trainerName}} sent out\n{{pokemonName}}!",
|
||||||
"singleWildAppeared": "A wild {{pokemonName}} appeared!",
|
"singleWildAppeared": "A wild {{pokemonName}} appeared!",
|
||||||
"multiWildAppeared": "A wild {{pokemonName1}}\nand {{pokemonName2}} appeared!",
|
"multiWildAppeared": "A wild {{pokemonName1}}\nand {{pokemonName2}} appeared!",
|
||||||
"playerComeBack": "Come back, {{pokemonName}}!",
|
"playerComeBack": "Come back, {{pokemonName}}!",
|
||||||
@ -12,7 +13,9 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"trainerGo": "{{trainerName}} sent out {{pokemonName}}!",
|
"trainerGo": "{{trainerName}} sent out {{pokemonName}}!",
|
||||||
"switchQuestion": "Will you switch\n{{pokemonName}}?",
|
"switchQuestion": "Will you switch\n{{pokemonName}}?",
|
||||||
"trainerDefeated": "You defeated\n{{trainerName}}!",
|
"trainerDefeated": "You defeated\n{{trainerName}}!",
|
||||||
|
"moneyWon": "You got\n₽{{moneyAmount}} for winning!",
|
||||||
"pokemonCaught": "{{pokemonName}} was caught!",
|
"pokemonCaught": "{{pokemonName}} was caught!",
|
||||||
|
"partyFull": "Your party is full.\nRelease a Pokémon to make room for {{pokemonName}}?",
|
||||||
"pokemon": "Pokémon",
|
"pokemon": "Pokémon",
|
||||||
"sendOutPokemon": "Go! {{pokemonName}}!",
|
"sendOutPokemon": "Go! {{pokemonName}}!",
|
||||||
"hitResultCriticalHit": "A critical hit!",
|
"hitResultCriticalHit": "A critical hit!",
|
||||||
|
@ -4,6 +4,7 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"bossAppeared": "¡{{bossName}} te corta el paso!",
|
"bossAppeared": "¡{{bossName}} te corta el paso!",
|
||||||
"trainerAppeared": "¡{{trainerName}}\nte desafía!",
|
"trainerAppeared": "¡{{trainerName}}\nte desafía!",
|
||||||
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
||||||
|
"trainerSendOut": "{{trainerName}} sent out\n{{pokemonName}}!",
|
||||||
"singleWildAppeared": "¡Un {{pokemonName}} salvaje te corta el paso!",
|
"singleWildAppeared": "¡Un {{pokemonName}} salvaje te corta el paso!",
|
||||||
"multiWildAppeared": "¡Un {{pokemonName1}} y un {{pokemonName2}} salvajes\nte cortan el paso!",
|
"multiWildAppeared": "¡Un {{pokemonName1}} y un {{pokemonName2}} salvajes\nte cortan el paso!",
|
||||||
"playerComeBack": "¡{{pokemonName}}, ven aquí!",
|
"playerComeBack": "¡{{pokemonName}}, ven aquí!",
|
||||||
@ -12,7 +13,9 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"trainerGo": "¡{{trainerName}} saca a {{pokemonName}}!",
|
"trainerGo": "¡{{trainerName}} saca a {{pokemonName}}!",
|
||||||
"switchQuestion": "¿Quieres cambiar a\n{{pokemonName}}?",
|
"switchQuestion": "¿Quieres cambiar a\n{{pokemonName}}?",
|
||||||
"trainerDefeated": "¡Has derrotado a\n{{trainerName}}!",
|
"trainerDefeated": "¡Has derrotado a\n{{trainerName}}!",
|
||||||
|
"moneyWon": "You got\n₽{{moneyAmount}} for winning!",
|
||||||
"pokemonCaught": "¡{{pokemonName}} atrapado!",
|
"pokemonCaught": "¡{{pokemonName}} atrapado!",
|
||||||
|
"partyFull": "Your party is full.\nRelease a Pokémon to make room for {{pokemonName}}?",
|
||||||
"pokemon": "Pokémon",
|
"pokemon": "Pokémon",
|
||||||
"sendOutPokemon": "¡Adelante, {{pokemonName}}!",
|
"sendOutPokemon": "¡Adelante, {{pokemonName}}!",
|
||||||
"hitResultCriticalHit": "!Un golpe crítico!",
|
"hitResultCriticalHit": "!Un golpe crítico!",
|
||||||
|
@ -4,6 +4,7 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"bossAppeared": "Un {{bossName}} apparait.",
|
"bossAppeared": "Un {{bossName}} apparait.",
|
||||||
"trainerAppeared": "Un combat est lancé\npar {{trainerName}} !",
|
"trainerAppeared": "Un combat est lancé\npar {{trainerName}} !",
|
||||||
"trainerAppearedDouble": "Un combat est lancé\npar {{trainerName}} !",
|
"trainerAppearedDouble": "Un combat est lancé\npar {{trainerName}} !",
|
||||||
|
"trainerSendOut": "{{pokemonName}} est envoyé par\n{{trainerName}} !",
|
||||||
"singleWildAppeared": "Un {{pokemonName}} sauvage apparait !",
|
"singleWildAppeared": "Un {{pokemonName}} sauvage apparait !",
|
||||||
"multiWildAppeared": "Un {{pokemonName1}} et un {{pokemonName2}}\nsauvages apparaissent !",
|
"multiWildAppeared": "Un {{pokemonName1}} et un {{pokemonName2}}\nsauvages apparaissent !",
|
||||||
"playerComeBack": "{{pokemonName}} !\nReviens !",
|
"playerComeBack": "{{pokemonName}} !\nReviens !",
|
||||||
@ -12,7 +13,9 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"trainerGo": "{{pokemonName}} est envoyé par\n{{trainerName}} !",
|
"trainerGo": "{{pokemonName}} est envoyé par\n{{trainerName}} !",
|
||||||
"switchQuestion": "Voulez-vous changer\nvotre {{pokemonName}} ?",
|
"switchQuestion": "Voulez-vous changer\nvotre {{pokemonName}} ?",
|
||||||
"trainerDefeated": "Vous avez battu\n{{trainerName}} !",
|
"trainerDefeated": "Vous avez battu\n{{trainerName}} !",
|
||||||
|
"moneyWon": "Vous remportez\n{{moneyAmount}} ₽ !",
|
||||||
"pokemonCaught": "Vous avez attrapé {{pokemonName}} !",
|
"pokemonCaught": "Vous avez attrapé {{pokemonName}} !",
|
||||||
|
"partyFull": "Votre équipe est pleine.\nRelâcher un Pokémon pour {{pokemonName}} ?",
|
||||||
"pokemon": "Pokémon",
|
"pokemon": "Pokémon",
|
||||||
"sendOutPokemon": "{{pokemonName}} ! Go !",
|
"sendOutPokemon": "{{pokemonName}} ! Go !",
|
||||||
"hitResultCriticalHit": "Coup critique !",
|
"hitResultCriticalHit": "Coup critique !",
|
||||||
|
@ -4,6 +4,7 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"bossAppeared": "{{bossName}} è apparso.",
|
"bossAppeared": "{{bossName}} è apparso.",
|
||||||
"trainerAppeared": "{{trainerName}}\nvuole combattere!",
|
"trainerAppeared": "{{trainerName}}\nvuole combattere!",
|
||||||
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
"trainerAppearedDouble": "{{trainerName}}\nwould like to battle!",
|
||||||
|
"trainerSendOut": "{{trainerName}} manda in campo\n{{pokemonName}}!",
|
||||||
"singleWildAppeared": "Appare {{pokemonName}} selvatico!",
|
"singleWildAppeared": "Appare {{pokemonName}} selvatico!",
|
||||||
"multiWildAppeared": "Appaiono {{pokemonName1}}\ne {{pokemonName2}} salvatici!",
|
"multiWildAppeared": "Appaiono {{pokemonName1}}\ne {{pokemonName2}} salvatici!",
|
||||||
"playerComeBack": "Rientra, {{pokemonName}}!",
|
"playerComeBack": "Rientra, {{pokemonName}}!",
|
||||||
@ -12,7 +13,9 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"trainerGo": "{{trainerName}} manda in campo {{pokemonName}}!",
|
"trainerGo": "{{trainerName}} manda in campo {{pokemonName}}!",
|
||||||
"switchQuestion": "Vuoi cambiare\n{{pokemonName}}?",
|
"switchQuestion": "Vuoi cambiare\n{{pokemonName}}?",
|
||||||
"trainerDefeated": "Hai sconfitto\n{{trainerName}}!",
|
"trainerDefeated": "Hai sconfitto\n{{trainerName}}!",
|
||||||
|
"moneyWon": "Hai vinto {{moneyAmount}}₽",
|
||||||
"pokemonCaught": "Preso! {{pokemonName}} è stato catturato!",
|
"pokemonCaught": "Preso! {{pokemonName}} è stato catturato!",
|
||||||
|
"partyFull": "La tua squadra è al completo.\nVuoi liberare un Pokémon per far spazio a {{pokemonName}}?",
|
||||||
"pokemon": "Pokémon",
|
"pokemon": "Pokémon",
|
||||||
"sendOutPokemon": "Vai! {{pokemonName}}!",
|
"sendOutPokemon": "Vai! {{pokemonName}}!",
|
||||||
"hitResultCriticalHit": "Brutto colpo!",
|
"hitResultCriticalHit": "Brutto colpo!",
|
||||||
|
@ -5,6 +5,7 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"trainerAppeared": "{{trainerName}}\nquer batalhar!",
|
"trainerAppeared": "{{trainerName}}\nquer batalhar!",
|
||||||
"trainerAppearedDouble": "{{trainerName}}\nquerem batalhar!",
|
"trainerAppearedDouble": "{{trainerName}}\nquerem batalhar!",
|
||||||
"singleWildAppeared": "Um {{pokemonName}} selvagem apareceu!",
|
"singleWildAppeared": "Um {{pokemonName}} selvagem apareceu!",
|
||||||
|
"trainerSendOut": "{{trainerName}} sent out\n{{pokemonName}}!",
|
||||||
"multiWildAppeared": "Um {{pokemonName1}} e um {{pokemonName2}} selvagens\napareceram!",
|
"multiWildAppeared": "Um {{pokemonName1}} e um {{pokemonName2}} selvagens\napareceram!",
|
||||||
"playerComeBack": "{{pokemonName}}, retorne!",
|
"playerComeBack": "{{pokemonName}}, retorne!",
|
||||||
"trainerComeBack": "{{trainerName}} retirou {{pokemonName}} da batalha!",
|
"trainerComeBack": "{{trainerName}} retirou {{pokemonName}} da batalha!",
|
||||||
@ -12,7 +13,9 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"trainerGo": "{{trainerName}} escolheu {{pokemonName}}!",
|
"trainerGo": "{{trainerName}} escolheu {{pokemonName}}!",
|
||||||
"switchQuestion": "Quer trocar\nde {{pokemonName}}?",
|
"switchQuestion": "Quer trocar\nde {{pokemonName}}?",
|
||||||
"trainerDefeated": "Você derrotou\n{{trainerName}}!",
|
"trainerDefeated": "Você derrotou\n{{trainerName}}!",
|
||||||
|
"moneyWon": "You got\n₽{{moneyAmount}} for winning!",
|
||||||
"pokemonCaught": "{{pokemonName}} foi capturado!",
|
"pokemonCaught": "{{pokemonName}} foi capturado!",
|
||||||
|
"partyFull": "Your party is full.\nRelease a Pokémon to make room for {{pokemonName}}?",
|
||||||
"pokemon": "Pokémon",
|
"pokemon": "Pokémon",
|
||||||
"sendOutPokemon": "{{pokemonName}}, eu escolho você!!",
|
"sendOutPokemon": "{{pokemonName}}, eu escolho você!!",
|
||||||
"hitResultCriticalHit": "Um golpe crítico!",
|
"hitResultCriticalHit": "Um golpe crítico!",
|
||||||
|
@ -4,6 +4,7 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"bossAppeared": "{{bossName}} 出现了。",
|
"bossAppeared": "{{bossName}} 出现了。",
|
||||||
"trainerAppeared": "{{trainerName}}\n想要和你对战!",
|
"trainerAppeared": "{{trainerName}}\n想要和你对战!",
|
||||||
"trainerAppearedDouble": "{{trainerName}}\n想要和你对战!",
|
"trainerAppearedDouble": "{{trainerName}}\n想要和你对战!",
|
||||||
|
"trainerSendOut": "{{trainerName}} sent out\n{{pokemonName}}!",
|
||||||
"singleWildAppeared": "一只野生 {{pokemonName}} 出现了!",
|
"singleWildAppeared": "一只野生 {{pokemonName}} 出现了!",
|
||||||
"multiWildAppeared": "野生的 {{pokemonName1}}\n和 {{pokemonName2}} 出现了!",
|
"multiWildAppeared": "野生的 {{pokemonName1}}\n和 {{pokemonName2}} 出现了!",
|
||||||
"playerComeBack": "回来吧, {{pokemonName}}!",
|
"playerComeBack": "回来吧, {{pokemonName}}!",
|
||||||
@ -12,7 +13,9 @@ export const battle: SimpleTranslationEntries = {
|
|||||||
"trainerGo": "{{trainerName}} 派出了 {{pokemonName}}!",
|
"trainerGo": "{{trainerName}} 派出了 {{pokemonName}}!",
|
||||||
"switchQuestion": "要更换\n{{pokemonName}}吗?",
|
"switchQuestion": "要更换\n{{pokemonName}}吗?",
|
||||||
"trainerDefeated": "你击败了\n{{trainerName}}!",
|
"trainerDefeated": "你击败了\n{{trainerName}}!",
|
||||||
|
"moneyWon": "You got\n₽{{moneyAmount}} for winning!",
|
||||||
"pokemonCaught": "{{pokemonName}} 被抓住了!",
|
"pokemonCaught": "{{pokemonName}} 被抓住了!",
|
||||||
|
"partyFull": "Your party is full.\nRelease a Pokémon to make room for {{pokemonName}}?",
|
||||||
"pokemon": "宝可梦",
|
"pokemon": "宝可梦",
|
||||||
"sendOutPokemon": "上吧! {{pokemonName}}!",
|
"sendOutPokemon": "上吧! {{pokemonName}}!",
|
||||||
"hitResultCriticalHit": "击中了要害!",
|
"hitResultCriticalHit": "击中了要害!",
|
||||||
|
@ -1311,8 +1311,12 @@ export class SummonPhase extends PartyMemberPokemonPhase {
|
|||||||
});
|
});
|
||||||
this.scene.time.delayedCall(750, () => this.summon());
|
this.scene.time.delayedCall(750, () => this.summon());
|
||||||
} else {
|
} else {
|
||||||
|
const trainerName = this.scene.currentBattle.trainer.getName(!(this.fieldIndex % 2) ? TrainerSlot.TRAINER : TrainerSlot.TRAINER_PARTNER);
|
||||||
|
const pokemonName = this.getPokemon().name;
|
||||||
|
const message = i18next.t("battle:trainerSendOut", { trainerName, pokemonName });
|
||||||
|
|
||||||
this.scene.pbTrayEnemy.hide();
|
this.scene.pbTrayEnemy.hide();
|
||||||
this.scene.ui.showText(`${this.scene.currentBattle.trainer.getName(!(this.fieldIndex % 2) ? TrainerSlot.TRAINER : TrainerSlot.TRAINER_PARTNER)} sent out\n${this.getPokemon().name}!`, null, () => this.summon());
|
this.scene.ui.showText(message, null, () => this.summon());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3739,7 +3743,11 @@ export class MoneyRewardPhase extends BattlePhase {
|
|||||||
|
|
||||||
this.scene.addMoney(moneyAmount.value);
|
this.scene.addMoney(moneyAmount.value);
|
||||||
|
|
||||||
this.scene.ui.showText(`You got ₽${moneyAmount.value.toLocaleString("en-US")}\nfor winning!`, null, () => this.end(), null, true);
|
const userLocale = navigator.language || "en-US";
|
||||||
|
const formattedMoneyAmount = moneyAmount.value.toLocaleString(userLocale);
|
||||||
|
const message = i18next.t("battle:moneyWon", { moneyAmount: formattedMoneyAmount });
|
||||||
|
|
||||||
|
this.scene.ui.showText(message, null, () => this.end(), null, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4651,7 +4659,7 @@ export class AttemptCapturePhase extends PokemonPhase {
|
|||||||
Promise.all([ pokemon.hideInfo(), this.scene.gameData.setPokemonCaught(pokemon) ]).then(() => {
|
Promise.all([ pokemon.hideInfo(), this.scene.gameData.setPokemonCaught(pokemon) ]).then(() => {
|
||||||
if (this.scene.getParty().length === 6) {
|
if (this.scene.getParty().length === 6) {
|
||||||
const promptRelease = () => {
|
const promptRelease = () => {
|
||||||
this.scene.ui.showText(`Your party is full.\nRelease a Pokémon to make room for ${pokemon.name}?`, null, () => {
|
this.scene.ui.showText(i18next.t("battle:partyFull", { pokemonName: pokemon.name }), null, () => {
|
||||||
this.scene.pokemonInfoContainer.makeRoomForConfirmUi();
|
this.scene.pokemonInfoContainer.makeRoomForConfirmUi();
|
||||||
this.scene.ui.setMode(Mode.CONFIRM, () => {
|
this.scene.ui.setMode(Mode.CONFIRM, () => {
|
||||||
this.scene.ui.setMode(Mode.PARTY, PartyUiMode.RELEASE, this.fieldIndex, (slotIndex: integer, _option: PartyOption) => {
|
this.scene.ui.setMode(Mode.PARTY, PartyUiMode.RELEASE, this.fieldIndex, (slotIndex: integer, _option: PartyOption) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user