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 arena-tag messages & texts #3011

Merged
merged 192 commits into from
Jul 29, 2024

Conversation

EnochG1
Copy link
Contributor

@EnochG1 EnochG1 commented Jul 13, 2024

What are the changes?

Add the option to localize text of arena tags.

Why am I doing these changes?

All text should be localizable.

What did change?

  • Change hard-coded text for localize > /src/data/arena-tag.ts
  • Added locale files, config, localization keys in each language folders. > config.ts not added yet at draft. (build fails)
  • Translated them to Korean.

Screenshots/Videos

Note 1 : I provide just essential test result (to check parameters)
Please comment if you want to check specific case with other languages.

Note 2 : The list below is developed in the original code, but cannot be tested because these do not occur.
arenaOnRemove
reflectOnAdd
lightScreenOnAdd
auroraVeilOnAdd
conditionalProtectOnAdd
tailwindOnAdd
tailwindOnRemove

Click to expand/collapse
MessageKey En Ko
arenaOnRemovePlayer image image
arenaOnRemoveEnemy image image
mistOnAdd image image
mistApply image image
reflectOnAddPlayer image image
reflectOnAddEnemy image image
lightScreenOnAddPlayer image image
lightScreenOnAddEnemy image image
auroraVeilOnAddPlayer image image
auroraVeilOnAddEnemy image image
conditionalProtectOnAddPlayer image image
conditionalProtectOnAddEnemy image image
conditionalProtectApply image image
matBlockOnAdd image image
wishTagOnAdd image image
mudSportOnAdd image image
mudSportOnRemove image image
waterSportOnAdd image image
waterSportOnRemove image image
spikesOnAdd image image
spikesActivateTrap image image
toxicSpikesOnAdd image image
toxicSpikesActivateTrapPoison image image
[StatusEffect] toxicSpikes image image
stealthRockOnAdd image image
stealthRockActivateTrap image image
stickyWebOnAdd image image
stickyWebActivateTrap image image
trickRoomOnAdd image image
trickRoomOnRemove image image
gravityOnAdd image image
gravityOnRemove image image
tailwindOnAddPlayer image image
tailwindOnAddEnemy image image
tailwindOnRemovePlayer image image
tailwindOnRemoveEnemy image image
happyHourOnAdd image image
happyHourOnRemove image image

How to test the changes?

Manually. (Using overrides.ts.)

Note : message key and possible moves matching list

Click to expand/collapse
MessageKey Moves
arenaOnRemove Moves.MIST Moves.REFLECT Moves.LIGHT_SCREEN Moves.AURORA_VEIL Moves.QUICK_GUARD Moves.WIDE_GUARD Moves.MAT_BLOCK Moves.CRAFTY_SHIELD Moves.SPIKES Moves.TOXIC_SPIKES Moves.STEALTH_ROCK Moves.STICKY_WEB...
mistOnAdd Moves.MIST
mistApply Moves.MIST
reflectOnAdd Moves.REFLECT
lightScreenOnAdd Moves.LIGHT_SCREEN
auroraVeilOnAdd Moves.AURORA_VEIL
conditionalProtectOnAdd Moves.QUICK_GUARD Moves.WIDE_GUARD Moves.MAT_BLOCK Moves.CRAFTY_SHIELD
conditionalProtectApply Moves.QUICK_GUARD Moves.WIDE_GUARD Moves.MAT_BLOCK Moves.CRAFTY_SHIELD
matBlockOnAdd Moves.MAT_BLOCK
wishTagOnAdd Moves.WISH
mudSportOnAdd Moves.MUD_SPORT
mudSportOnRemove Moves.MUD_SPORT
waterSportOnAdd Moves.WATER_SPORT
waterSportOnRemove Moves.WATER_SPORT
spikesOnAdd Moves.SPIKES
spikesActivateTrap Moves.SPIKES
toxicSpikesOnAdd Moves.TOXIC_SPIKES
toxicSpikesActivateTrapPoison Moves.TOXIC_SPIKES
[StatusEffect] toxicSpikes Moves.TOXIC_SPIKES
stealthRockOnAdd Moves.STEALTH_ROCK
stealthRockActivateTrap Moves.STEALTH_ROCK
stickyWebOnAdd Moves.STICKY_WEB
stickyWebActivateTrap Moves.STICKY_WEB
trickRoomOnAdd Moves.TRICK_ROOM
trickRoomOnRemove Moves.TRICK_ROOM
gravityOnAdd Moves.GRAVITY
gravityOnRemove Moves.GRAVITY
tailwindOnAdd Moves.TAILWIND
tailwindOnRemove Moves.TAILWIND
happyHourOnAdd Moves.HAPPY_HOUR
happyHourOnRemove Moves.HAPPY_HOUR

Checklist

  • There is no overlap with another PR?
  • The PR is self-contained and cannot be split into smaller PRs?
  • Have I provided a clear explanation of the changes?
  • Have I tested the changes (manually)?
    • Are all unit tests still passing? (npm run test)
  • Are the changes visual?
    • Have I provided screenshots/videos of the changes?

f-fsantos and others added 30 commits June 19, 2024 17:31
feat: Add link to Discord in menu UI

feat: Add Discord and Google login functionality

Add container around discord and google icons

refactor: Update environment variable names for Discord and Google client IDs

feat: Add "Or use" translation for login options in multiple languages

feat: Update menu UI translations for multiple languages

Code review fixes

refactor: Update Discord and Google client IDs in environment variables
this also reduces output noise in tests
* Localization(pt): translated bgm-name.ts

* fix
…gging

[Feature][ENV] make i18n debugging an optional env setting
* Update TMs for more Indigo Disk changes

* Fix typo, more Stored Power
* Refactor challenges and add fresh start

* Add achievement for fresh start challenge
* Fix random damage roll to be 85-100% instead of 85-99%

* Update battle.test.ts to reflect the fix
* [Help] [Move/Bug] Patches Psychic Terrain applicability edge cases

Was cancelling moves even if targeted mons weren't on the terrain.

* [Bug `]Pokemon.isGrounded` does not exist

Replaced with `Pokemon.isGrounded()`, which does.

* [Bug] Psychic Terrain priority move cancel ignoring ungrounded

* [Bug] Semi-invulnerable should not be grounded
* Prevent sizing error

* Make reboot not necessary for show BGM

* Makes the BGM Bar active by default

  + It had originally been decided that this would not be active by default because it was to be displayed outside the pause menu, but since its behavior has changed between this decision and its integration, the default deactivation is no longer necessary
…s#2254 (pagefaultgames#2906)

* Translate forgotten sentences on phases

* Translate to de forgotten sentences on phases

* Translate to es forgotten sentences on phases

* Translate to fr forgotten sentences on phases

* Translate to it forgotten sentences on phases

* Translate to ko forgotten sentences on phases

* Translate to pt br forgotten sentences on phases

* Translate to zh cn forgotten sentences on phases

* Translate to zh tw forgotten sentences on phases

* remove duplicate message

* remove duplicate message

* Update src/locales/pt_BR/battle.ts

Co-authored-by: José Ricardo Fleury Oliveira <[email protected]>

* Update src/locales/de/battle.ts

Co-authored-by: Jannik Tappert <[email protected]>

* Update src/locales/de/battle.ts

Co-authored-by: Jannik Tappert <[email protected]>

* Update battle.ts [Localization(it)]

* Update src/locales/zh_CN/battle.ts

Co-authored-by: Yonmaru40 <[email protected]>

---------

Co-authored-by: Alexis <[email protected]>
Co-authored-by: 송지원 <[email protected]>
Co-authored-by: José Ricardo Fleury Oliveira <[email protected]>
Co-authored-by: Jannik Tappert <[email protected]>
Co-authored-by: Niccolò <[email protected]>
Co-authored-by: Yonmaru40 <[email protected]>
…ltgames#2907)

* Translate pokemon summary

* Translate pokemon summary to fr

* Translate pokemon summary to de

* Translate pokemon summary to es

* Translate pokemon summary to it

* Translate pokemon summary to ko

* Translate pokemon summary to pt br

* Translate pokemon summary to zh cn

* Translate pokemon summary to zh tw

* Fix import

* Update partially for en and ko

* Update interface name for en

* Merge trainerLabel&Text and calculate typeLabel width

* Update src/locales/es/pokemon-summary.ts

Co-authored-by: GoldTra <[email protected]>

* Apply translations key to all languages with interface TranslationEtries

* Update ko/translationKey of status

* Update ko/translationKey of pokemonInfo

* Update de/translationKeys of memostring and metFragment

* Update de/translationKeys of memostring and metFragment 2

* Update src/locales/ko/pokemon-summary.ts

Co-authored-by: Enoch <[email protected]>

* Update src/locales/ko/pokemon-summary.ts

Co-authored-by: returntoice <[email protected]>

* Update src/locales/pt_BR/pokemon-summary.ts

Co-authored-by: José Ricardo Fleury Oliveira <[email protected]>

* Update src/locales/ko/pokemon-summary.ts

* Update src/locales/pt_BR/pokemon-summary.ts

Co-authored-by: José Ricardo Fleury Oliveira <[email protected]>

* Update pokemon-summary.ts [Localization(it)]

* remove unused code

* Update src/locales/zh_CN/pokemon-summary.ts

Co-authored-by: Yonmaru40 <[email protected]>

* Update src/locales/zh_CN/pokemon-summary.ts

Co-authored-by: Yonmaru40 <[email protected]>

* Update src/locales/zh_CN/pokemon-summary.ts

Co-authored-by: Yonmaru40 <[email protected]>

* Update src/locales/es/pokemon-summary.ts

Co-authored-by: Arxxer <[email protected]>

* Update src/locales/es/pokemon-summary.ts

Co-authored-by: Arxxer <[email protected]>

---------

Co-authored-by: Alexis <[email protected]>
Co-authored-by: Mr.WaterT <[email protected]>
Co-authored-by: Alexis Faizeau <[email protected]>
Co-authored-by: GoldTra <[email protected]>
Co-authored-by: returntoice <[email protected]>
Co-authored-by: José Ricardo Fleury Oliveira <[email protected]>
Co-authored-by: 송지원 <[email protected]>
Co-authored-by: Niccolò <[email protected]>
Co-authored-by: Yonmaru40 <[email protected]>
Co-authored-by: Arxxer <[email protected]>
송지원 and others added 9 commits July 25, 2024 16:04
# Conflicts:
#	src/data/arena-tag.ts
… HA (pagefaultgames#3138)

* Prevent evolution causing a swap from the second ability to the HA

* Add tests

* Update `starter-select-ui-handler.ts`
* More work

* More work

* Should be finished

* Fixed an error in checking target

* Moved white herb effect to StatChangePhase, 50% chance of consumption

* Added graphics for White Herb

* Balance and documentation

* Add localization entry for White Herb apply msg

* Add new keys to other localization files

* German translations

Co-authored-by: Jannik Tappert <[email protected]>

* Update item sprite atlas

* Redo item atlas

* Remove whitespace in move.ts

* Moved decrement outside conditional

* Fix item atlas

---------

Co-authored-by: Jannik Tappert <[email protected]>
@EnochG1 EnochG1 mentioned this pull request Jul 25, 2024
9 tasks
송지원 and others added 9 commits July 26, 2024 07:40
* Fixed modifiers not displaying on summary screen

* Addressed Typedoc issues

* Documentation added

---------

Co-authored-by: Frutescens <info@laptop>
…e/epic shiny variant and preventing illegal variants from legendary gacha (pagefaultgames#2940)

* Changed PokemonSpecies hasVariants function to also include for pokemon with differend forms

* Added check to prevent illegal shiny variants from happening if the egg rolls the gacha legendary and has no variants

* Simplified variant check. Fixed spelling on unit test

* Bugfix for legacy eggs

* Removed formIndex variable

* Changed unit test

* Added new line to unit test function

Co-authored-by: flx-sta <[email protected]>

---------

Co-authored-by: flx-sta <[email protected]>
…all functionality but keeps the isBeta utils function for future stuff (pagefaultgames#3153)
@EnochG1 EnochG1 marked this pull request as ready for review July 28, 2024 11:44
Copy link
Contributor

@40chyan 40chyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing these 2

Copy link
Contributor

@Adri1 Adri1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 2 missing lines in French

Copy link
Contributor

@returntoice returntoice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem on the Korean translations

# Conflicts:
#	src/data/arena-tag.ts
#	src/data/challenge.ts
#	src/locales/de/config.ts
#	src/locales/en/config.ts
#	src/locales/es/config.ts
#	src/locales/fr/config.ts
#	src/locales/it/config.ts
#	src/locales/ko/config.ts
#	src/locales/pt_BR/config.ts
#	src/locales/zh_CN/config.ts
#	src/locales/zh_TW/config.ts
#	src/system/game-data.ts
#	src/ui/menu-ui-handler.ts
@Tempo-anon Tempo-anon merged commit 95242e4 into pagefaultgames:beta Jul 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Localization Provides or updates translation efforts
Projects
None yet
Development

Successfully merging this pull request may close these issues.