Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Localization] localize reward gain with hard-coded numBerries(item count) in ME. #4379

Merged
merged 16 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export const BerriesAboundEncounter: MysteryEncounter =
const numBerries = encounter.misc.numBerries;

const doBerryRewards = async () => {
EnochG1 marked this conversation as resolved.
Show resolved Hide resolved
const berryText = numBerries + " " + i18next.t(`${namespace}.berries`);
const berryText = i18next.t(`${namespace}.berries`);

scene.playSound("item_fanfare");
queueEncounterMessage(scene, i18next.t("battle:rewardGain", { modifierName: berryText }));
queueEncounterMessage(scene, i18next.t("battle:rewardGainCount", { modifierName: berryText, rewardCount: numBerries }));

// Generate a random berry and give it to the first Pokemon with room for it
for (let i = 0; i < numBerries; i++) {
Expand Down Expand Up @@ -179,10 +179,10 @@ export const BerriesAboundEncounter: MysteryEncounter =
if (speedDiff < 1) {
// Caught and attacked by boss, gets +1 to all stats at start of fight
const doBerryRewards = async () => {
EnochG1 marked this conversation as resolved.
Show resolved Hide resolved
const berryText = numBerries + " " + i18next.t(`${namespace}.berries`);
const berryText = i18next.t(`${namespace}.berries`);

scene.playSound("item_fanfare");
queueEncounterMessage(scene, i18next.t("battle:rewardGain", { modifierName: berryText }));
queueEncounterMessage(scene, i18next.t("battle:rewardGainCount", { modifierName: berryText, rewardCount: numBerries }));

// Generate a random berry and give it to the first Pokemon with room for it
for (let i = 0; i < numBerries; i++) {
Expand All @@ -205,10 +205,10 @@ export const BerriesAboundEncounter: MysteryEncounter =
const numBerriesGrabbed = Math.max(Math.min(Math.round((speedDiff - 1)/0.08), numBerries), 2);
encounter.setDialogueToken("numBerries", String(numBerriesGrabbed));
const doFasterBerryRewards = async () => {
EnochG1 marked this conversation as resolved.
Show resolved Hide resolved
const berryText = numBerriesGrabbed + " " + i18next.t(`${namespace}.berries`);
const berryText = i18next.t(`${namespace}.berries`);

scene.playSound("item_fanfare");
queueEncounterMessage(scene, i18next.t("battle:rewardGain", { modifierName: berryText }));
queueEncounterMessage(scene, i18next.t("battle:rewardGainCount", { modifierName: berryText, rewardCount: numBerriesGrabbed }));

// Generate a random berry and give it to the first Pokemon with room for it (trying to give to fastest first)
for (let i = 0; i < numBerriesGrabbed; i++) {
Expand Down
1 change: 1 addition & 0 deletions src/locales/de/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"attackMissed": "Die Attacke hat {{pokemonNameWithAffix}} verfehlt!",
"attackHitsCount": "{{count}}-mal getroffen!",
"rewardGain": "Du erhältst {{modifierName}}!",
"rewardGainCount": "Du erhältst {{rewardCount}} {{modifierName}}!",
"expGain": "{{pokemonName}} erhält {{exp}} Erfahrungspunkte!",
"levelUp": "{{pokemonName}} erreicht Lv. {{level}}!",
"learnMove": "{{pokemonName}} erlernt {{moveName}}!",
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"attackMissed": "{{pokemonNameWithAffix}} avoided the attack!",
"attackHitsCount": "Hit {{count}} time(s)!",
"rewardGain": "You received\n{{modifierName}}!",
"rewardGainCount": "You received\n{{rewardCount}} {{modifierName}}!",
EnochG1 marked this conversation as resolved.
Show resolved Hide resolved
"expGain": "{{pokemonName}} gained\n{{exp}} EXP. Points!",
"levelUp": "{{pokemonName}} grew to\nLv. {{level}}!",
"learnMove": "{{pokemonName}} learned\n{{moveName}}!",
Expand Down
1 change: 1 addition & 0 deletions src/locales/es/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"attackMissed": "¡{{pokemonNameWithAffix}}\nha evitado el ataque!",
"attackHitsCount": "N.º de golpes: {{count}}.",
"rewardGain": "¡Has obtenido\n{{modifierName}}!",
"rewardGainCount": "¡Has obtenido\n{{rewardCount}} {{modifierName}}!",
"expGain": "{{pokemonName}} ha ganado\n{{exp}} puntos de experiencia.",
"levelUp": "¡{{pokemonName}} ha subido al \nNv. {{level}}!",
"learnMove": "¡{{pokemonName}} ha aprendido {{moveName}}!",
Expand Down
1 change: 1 addition & 0 deletions src/locales/fr/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"attackMissed": "{{pokemonNameWithAffix}}\névite l’attaque !",
"attackHitsCount": "Touché {{count}} fois !",
"rewardGain": "Vous recevez\n{{modifierName}} !",
"rewardGainCount": "Vous recevez\n{{rewardCount}} {{modifierName}} !",
"expGain": "{{pokemonName}} gagne\n{{exp}} Points d’Exp !",
"levelUp": "{{pokemonName}} monte au\nN. {{level}} !",
"learnMove": "{{pokemonName}} apprend\n{{moveName}} !",
Expand Down
1 change: 1 addition & 0 deletions src/locales/it/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"attackMissed": "{{pokemonNameWithAffix}}\nevita l’attacco!",
"attackHitsCount": "Colpito {{count}} volta/e!",
"rewardGain": "Ricevi\n{{modifierName}}!",
"rewardGainCount": "Ricevi\n{{rewardCount}} {{modifierName}}!",
"expGain": "{{pokemonName}} ha guadagnato\n{{exp}} Punti Esperienza!",
"levelUp": "{{pokemonName}} è salito al\nlivello {{level}}!",
"learnMove": "{{pokemonName}} impara\n{{moveName}}!",
Expand Down
1 change: 1 addition & 0 deletions src/locales/ja/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"attackMissed": "{{pokemonNameWithAffix}}には 当たらなかった!",
"attackHitsCount": "{{count}}かい 当たった!",
"rewardGain": "{{modifierName}}を 手に入れた!",
"rewardGainCount": "{{modifierName}}を {{rewardCount}}個 手に入れた!",
"expGain": "{{pokemonName}}は\n{{exp}}経験値を もらった!",
"levelUp": "{{pokemonName}}は\nレベル{{level}}に 上がった!",
"learnMove": "{{pokemonName}}は 新しく\n{{moveName}}を 覚えた!",
Expand Down
1 change: 1 addition & 0 deletions src/locales/ko/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"attackMissed": "{{pokemonNameWithAffix}}에게는\n맞지 않았다!",
"attackHitsCount": "{{count}}번 맞았다!",
"rewardGain": "{{modifierName}}[[를]] 받았다!",
"rewardGainCount": "{{modifierName}}[[를]]\n{{rewardCount}}개 손에 넣었다!",
"expGain": "{{pokemonName}}[[는]]\n{{exp}} 경험치를 얻었다!",
"levelUp": "{{pokemonName}}[[는]]\n레벨 {{level}}[[로]] 올랐다!",
"learnMove": "{{pokemonName}}[[는]] 새로\n{{moveName}}[[를]] 배웠다!",
Expand Down
1 change: 1 addition & 0 deletions src/locales/pt_BR/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"attackMissed": "{{pokemonNameWithAffix}} desviou do ataque!",
"attackHitsCount": "Acertou {{count}} vezes.",
"rewardGain": "Você recebeu\n{{modifierName}}!",
"rewardGainCount": "Você recebeu\n{{rewardCount}} {{modifierName}}!",
"expGain": "{{pokemonName}} ganhou\n{{exp}} pontos de experiência.",
"levelUp": "{{pokemonName}} subiu para \nNv. {{level}}!",
"learnMove": "{{pokemonName}} aprendeu {{moveName}}!",
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh_CN/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"attackMissed": "没有命中{{pokemonNameWithAffix}}!",
"attackHitsCount": "击中{{count}}次!",
"rewardGain": "你获得了\n{{modifierName}}!",
"rewardGainCount": "你获得了\n{{rewardCount}}个 {{modifierName}}!",
EnochG1 marked this conversation as resolved.
Show resolved Hide resolved
"expGain": "{{pokemonName}}获得了{{exp}} 点经验值!",
"levelUp": "{{pokemonName}}升级到Lv.{{level}}!",
"learnMove": "{{pokemonName}}学会了{{moveName}}!",
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh_TW/battle.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"attackMissed": "沒有命中{{pokemonNameWithAffix}}!",
"attackHitsCount": "擊中{{count}}次!",
"rewardGain": "你獲得了\n{{modifierName}}!",
"rewardGainCount": "你獲得了\n{{rewardCount}}個 {{modifierName}}!",
EnochG1 marked this conversation as resolved.
Show resolved Hide resolved
"expGain": "{{pokemonName}}獲得了{{exp}} 點經驗值!",
"levelUp": "{{pokemonName}}升級到Lv.{{level}}!",
"learnMove": "{{pokemonName}}學會了{{moveName}}!",
Expand Down
Loading