From bfbd71ddde8d51413981a626708370f35c9048d2 Mon Sep 17 00:00:00 2001 From: Lugiad Date: Fri, 31 Oct 2025 22:48:30 +0100 Subject: [PATCH] [UI/UX] [Localization] Texts position adjustments for Turkish (#6731) * Adjustments for Turkish * Remove now-unnecessary comment Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com> --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com> --- src/ui/handlers/egg-gacha-ui-handler.ts | 11 +++++------ src/ui/handlers/game-stats-ui-handler.ts | 2 +- src/ui/handlers/starter-select-ui-handler.ts | 1 + 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ui/handlers/egg-gacha-ui-handler.ts b/src/ui/handlers/egg-gacha-ui-handler.ts index c90d4a12139..fcb4cb09538 100644 --- a/src/ui/handlers/egg-gacha-ui-handler.ts +++ b/src/ui/handlers/egg-gacha-ui-handler.ts @@ -81,7 +81,7 @@ export class EggGachaUiHandler extends MessageUiHandler { let pokemonIconX = -20; let pokemonIconY = 6; - if (["de", "es-ES", "es-419", "fr", "ko", "pt-BR", "ja", "ru"].includes(currentLanguage)) { + if (["de", "es-ES", "es-419", "fr", "ko", "pt-BR", "ja", "ru", "tr"].includes(currentLanguage)) { gachaTextStyle = TextStyle.SMALLER_WINDOW_ALT; gachaX = 2; gachaY = 2; @@ -89,7 +89,7 @@ export class EggGachaUiHandler extends MessageUiHandler { let legendaryLabelX = gachaX; let legendaryLabelY = gachaY; - if (["de", "es-ES", "es-419"].includes(currentLanguage)) { + if (["de", "es-ES", "es-419", "tr"].includes(currentLanguage)) { pokemonIconX = -25; pokemonIconY = 10; legendaryLabelX = -6; @@ -108,8 +108,7 @@ export class EggGachaUiHandler extends MessageUiHandler { let xOffset = 0; const pokemonIcon = globalScene.add.sprite(pokemonIconX, pokemonIconY, "pokemon_icons_0"); - // Intentionally left as "array includes" instead of an equality check to allow for future languages to reuse - if (["pt-BR"].includes(currentLanguage)) { + if (["pt-BR", "tr"].includes(currentLanguage)) { xOffset = 2; pokemonIcon.setX(pokemonIconX - 2); } @@ -120,14 +119,14 @@ export class EggGachaUiHandler extends MessageUiHandler { } break; case GachaType.MOVE: - if (["de", "es-ES", "fr", "pt-BR", "ru"].includes(currentLanguage)) { + if (["de", "es-ES", "fr", "pt-BR", "ru", "tr"].includes(currentLanguage)) { gachaUpLabel.setAlign("center").setY(0); } gachaUpLabel.setText(i18next.t("egg:moveUpGacha")).setX(0).setOrigin(0.5, 0); break; case GachaType.SHINY: - if (["de", "fr", "ko", "ru"].includes(currentLanguage)) { + if (["de", "fr", "ko", "ru", "tr"].includes(currentLanguage)) { gachaUpLabel.setAlign("center").setY(0); } diff --git a/src/ui/handlers/game-stats-ui-handler.ts b/src/ui/handlers/game-stats-ui-handler.ts index 53b23781584..30243008626 100644 --- a/src/ui/handlers/game-stats-ui-handler.ts +++ b/src/ui/handlers/game-stats-ui-handler.ts @@ -251,7 +251,7 @@ export class GameStatsUiHandler extends UiHandler { const resolvedLang = i18next.resolvedLanguage ?? "en"; // NOTE TO TRANSLATION TEAM: Add more languages that want to display // in a single-column inside of the `[]` (e.g. `["ru", "fr"]`) - return ["fr", "es-ES", "es-419", "it", "ja", "pt-BR", "ru"].includes(resolvedLang); + return ["fr", "es-ES", "es-419", "it", "ja", "pt-BR", "ru", "tr"].includes(resolvedLang); } /** The number of columns used by this menu in the resolved language */ private get columnCount(): 1 | 2 { diff --git a/src/ui/handlers/starter-select-ui-handler.ts b/src/ui/handlers/starter-select-ui-handler.ts index 2623016eb6b..c527b40dbff 100644 --- a/src/ui/handlers/starter-select-ui-handler.ts +++ b/src/ui/handlers/starter-select-ui-handler.ts @@ -155,6 +155,7 @@ const languageSettings: { [key: string]: LanguageSetting } = { tr: { starterInfoTextSize: "56px", instructionTextSize: "38px", + starterInfoXPos: 34, }, ro: { starterInfoTextSize: "56px",