Skip to content

Localization Phase 1: tactical action on tactical.* keys (1-4a) - #6302

Open
wholton wants to merge 4 commits into
masterfrom
l10n/phase1-tactical
Open

wholton wants to merge 4 commits into
masterfrom
l10n/phase1-tactical

Conversation

@wholton

@wholton wholton commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Row 1-4a of the localization plan (docs/LOCALIZATION_PLAN.md §5.0): moves the official texts of ti4.service.tactical and TacticalActionButtonHandlers onto tactical.* keys. Stacked on #6301 (1-3b); this PR targets its branch, so the diff shows 1-4a only. Merge #6301 first.

Row 1-4 is split in four: 1-4a (this one), 1-4b ButtonHelperTacticalAction, 1-4c ButtonHelperModifyUnits (with the Xan Quantum Fabrication check), 1-4d production and the Done* buttons.

What moved

  • Movement: reset and put-back notices, Done moving / Activate a different system / Reset all unit movement / Move on Map, the ring prompt for a different system, The Void, the finish-movement prompt, Conclude Tactical Action, the gravity rift and build buttons.
  • Landing: Land and Un-land labels, Done Landing Troops, the landed / undid notices and the landing failure messages.
  • Movement summary: header, per-system lines, distance (ICU plural), moved-unit lines, units from elsewhere, and the move-value notes (Gravity Drive, Tempesta, Imperator, gravity rifts).
  • Official ability buttons: Aetherstream, Dominus Orb, Creuss mech, Avernus, Charon, Muaat and Sardakk heroes, BOMBARDMENT, Crimson mech deploy.
  • New TacticalMessages holds the factories and the language choice (Lang.forCorrectChannel(player); ephemerals use the presser's language).

Visible change

None. English output is byte-identical (oracle tests below). Unit type names inside the landing labels stay English until game data is localized.

Limits guard

The Land and Un-land labels carry five short names (count, ally colour, unit state, unit type, planet). With the guard's 40-character samples they can never fit 80, so DiscordLimitsI18nTest now checks these two keys with 12-character samples. A long planet name is still cut by Buttons.of at runtime, as it always was.

Left literal

Homebrew buttons (Ignis Aurora, Blue Reverie, Discordant Stars, Absol relics, Borrowed Authority, Erwan's Gambit). Ratchet floors: ti4.service.tactical 5, .movement 19, .planet 1, .postmovement 20, TacticalActionButtonHandlers 0.

Tests

  • TacticalMessagesTest: oracles copying every old string expression, across ally colours, unit states, counts and distances.
  • FinishLandingEchoTest renders the finish-movement Msg in English; OneShipMoveBonusNoteTest passes unchanged.
  • Full mvn verify with the Postgres tests: 3903 tests, 0 failures.

🤖 Generated with Claude Code

wholton and others added 2 commits December 5, 2026 17:13
Moves the official texts of ButtonHelperSCs onto scs.* keys: following
and not following, the strategy token spend, pre-declining, the
Leadership, Diplomacy, Politics, Technology, Imperial and Trade
follow-ups, and the Construction and Warfare production prompts.

The strategy token spend now returns a FollowTokenSpend outcome, so
scFollow and the Trade wash stop reading its English text. The base
game Warfare production prompt now uses the same lines as the Thunder's
Edge one (it read "system.. You also have" before). I18nRatchetTest
accepts a class line; ti4.helpers.ButtonHelperSCs 69 covers the homebrew
sets left literal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Movement buttons and prompts, landing buttons and notices, the movement
summary and the official ability buttons in ti4.service.tactical and
TacticalActionButtonHandlers now render from tactical.properties. English
output is unchanged; homebrew labels stay literal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wholton and others added 2 commits December 6, 2026 03:53
…1-4b) (#6303)

Move ButtonHelperTacticalAction texts onto tactical.* keys (1-4b)

Starting a tactical action, activation notices, Space Cannon Offence in
Fog of War, Voidwatch, the after-movement and end-of-action offers, the
build prompt and the unit buttons for a system now render from
tactical.properties. English output is unchanged; homebrew stays literal.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/LOCALIZATION_PLAN.md
#	src/test/resources/i18n-ratchet.txt
@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown

🔬 Test Results

✅ JSON Validation

No JSON files changed.


✅ Formatting Checks Passed

All files pass Spotless formatting.


✅ JUnit Tests Passed

All tests passed successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant