Skip to content

Adventure Mode: Internationalization groundwork + Spanish Shandalar localization - #11621

Open
churrufli wants to merge 9 commits into
Card-Forge:masterfrom
churrufli:adventure-translations
Open

Adventure Mode: Internationalization groundwork + Spanish Shandalar localization#11621
churrufli wants to merge 9 commits into
Card-Forge:masterfrom
churrufli:adventure-translations

Conversation

@churrufli

@churrufli churrufli commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

edited 21/08/2026

Summary

Lays the groundwork for translating Adventure Mode and delivers a complete Spanish (es-ES) translation of Shandalar, the default/flagship world:

  • Moves 58 hardcoded English strings in Adventure Mode Java files (NewGameScene, AdventureQuestController, SettingsScene, EventScene, DuelScene, AdventureEventData, EffectData, AdventureQuestData) to the existing Localizer/.properties system.

  • Adds a full Spanish translation of Shandalar's narrative content (quests-es-ES.json, shops-es-ES.json), using a per-language file mechanism that already exists in Config.getFile() but was unused anywhere in the repo: quests.json is transparently replaced by quests-es-ES.json when the UI language is es-ES, with automatic fallback to the English file otherwise. This is the first real use of that per-language file mechanism anywhere in the repo — it existed in Config.getFile() but nothing exercised it before this PR. Any other world or language can follow the same pattern going forward without further engineering work. No Java changes needed for this part, no changes to the English source files.

  • Adds a translation mechanism for NPC/enemy dialog embedded directly in .tmx map files (previously out of scope for this PR, see below — now included). English .tmx files are never touched, duplicated, or require any extra work from maintainers. Translations live in a separate per-locale catalog (dialog-es-ES.json) next to the maps, keyed by map file + object id + position in the dialog tree. Any string missing from the catalog falls back to the English text already in the .tmx, so a partial translation can never break anything,.

  • All 62 .tmx files containing dialog (975 strings) across Shandalar's common maps are translated to es-ES, giving Shandalar full narrative coverage in Spanish.

Scope

Only Shandalar (the default/flagship world) is covered.

@churrufli churrufli changed the title Adventure Mode: Spanish localization UI strings + Shandalar quests/shops Adventure Mode: Internationalization groundwork + Spanish Shandalar localization Aug 15, 2026
@churrufli churrufli added the Adventure For the Adventure Module label Aug 15, 2026
@churrufli
churrufli requested a review from Jetz72 August 23, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Adventure For the Adventure Module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant