Add a couple starter select localization entries

The passive ability's "Locked" and "Disabled" strings can now be localized.
This commit is contained in:
Madmadness65 2024-05-13 12:50:56 -05:00
parent 9a49691a9e
commit 34a4f86982
8 changed files with 22 additions and 8 deletions

View File

@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": "N: Wesen Ändern",
"cycleVariant": "V: Seltenheit ändern",
"enablePassive": "Passiv-Skill aktivieren",
"disablePassive": "Passiv-Skill deaktivieren"
"disablePassive": "Passiv-Skill deaktivieren",
"locked": "Locked",
"disabled": "Disabled"
}

View File

@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": 'N: Cycle Nature',
"cycleVariant": 'V: Cycle Variant',
"enablePassive": "Enable Passive",
"disablePassive": "Disable Passive"
"disablePassive": "Disable Passive",
"locked": "Locked",
"disabled": "Disabled"
}

View File

@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": 'N: Cambiar Naturaleza',
"cycleVariant": 'V: Cambiar Variante',
"enablePassive": "Activar Pasiva",
"disablePassive": "Desactivar Pasiva"
"disablePassive": "Desactivar Pasiva",
"locked": "Locked",
"disabled": "Disabled"
}

View File

@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": "N: » Natures",
"cycleVariant": "V: » Variants",
"enablePassive": "Activer Passif",
"disablePassive": "Désactiver Passif"
"disablePassive": "Désactiver Passif",
"locked": "Locked",
"disabled": "Disabled"
}

View File

@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": 'N: Alterna Natura',
"cycleVariant": 'V: Alterna Variante',
"enablePassive": "Attiva Passiva",
"disablePassive": "Disattiva Passiva"
"disablePassive": "Disattiva Passiva",
"locked": "Locked",
"disabled": "Disabled"
}

View File

@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": 'N: Mudar Nature',
"cycleVariant": 'V: Mudar Variante',
"enablePassive": "Ativar Passiva",
"disablePassive": "Desativar Passiva"
"disablePassive": "Desativar Passiva",
"locked": "Locked",
"disabled": "Disabled"
}

View File

@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"cycleNature": 'N: 切换性格',
"cycleVariant": 'V: 切换变种',
"enablePassive": "启用被动",
"disablePassive": "禁用被动"
"disablePassive": "禁用被动",
"locked": "Locked",
"disabled": "Disabled"
}

View File

@ -1580,7 +1580,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
this.pokemonAbilityText.setShadowColor(this.getTextColor(!isHidden ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GOLD, true));
const passiveAttr = this.scene.gameData.starterData[species.speciesId].passiveAttr;
this.pokemonPassiveText.setText(passiveAttr & PassiveAttr.UNLOCKED ? passiveAttr & PassiveAttr.ENABLED ? allAbilities[starterPassiveAbilities[this.lastSpecies.speciesId]].name : 'Disabled' : 'Locked');
this.pokemonPassiveText.setText(passiveAttr & PassiveAttr.UNLOCKED ? passiveAttr & PassiveAttr.ENABLED ? allAbilities[starterPassiveAbilities[this.lastSpecies.speciesId]].name : i18next.t("starterSelectUiHandler:disabled") : i18next.t("starterSelectUiHandler:locked"));
this.pokemonPassiveText.setColor(this.getTextColor(passiveAttr === (PassiveAttr.UNLOCKED | PassiveAttr.ENABLED) ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GRAY));
this.pokemonPassiveText.setShadowColor(this.getTextColor(passiveAttr === (PassiveAttr.UNLOCKED | PassiveAttr.ENABLED) ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GRAY, true));