Skip to content

Localization Phase 1: ButtonHelperModifyUnits movement on tactical.* keys (1-4c) - #6305

Open
wholton wants to merge 3 commits into
l10n/phase1-tacticalfrom
l10n/phase1-modify-units
Open

wholton wants to merge 3 commits into
l10n/phase1-tacticalfrom
l10n/phase1-modify-units

Conversation

@wholton

@wholton wholton commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Row 1-4c of the localization plan (docs/LOCALIZATION_PLAN.md §5.0): the movement side of ButtonHelperModifyUnits, plus the open 0A-9 Xan Quantum Fabrication item. Stacked on #6303 (1-4b) → #6302 → #6301; this PR targets the 1-4b branch, so the diff shows 1-4c only.

Text no longer read as logic

place_ buttons decided "placed for Construction" by checking whether the prompt text contained "construction". The Strategy Card and rider prompts already send place_construction_ ids; the Xan Quantum Fabrication prompt was the last one relying on its text. It now wraps its buttons with ConstructionPlacementIds.forConstructionPrompt, so every producer sends the id. The text check stays only as the named legacy fallback for buttons posted before this change (allowlist entry moved to the legacy section).

What moved (tactical.*)

  • Removing and capturing units: the per-system buttons and the removed / captured notices.
  • Infiltrate (L1Z1X): the replaced-units notice (ICU plurals) and the build offer, which reuses the 1-4a build button.
  • Retreats: Retreat to system, the ground retreat labels (ICU plurals for mechs, PDS and space docks), Done Retreating troops, the retreat notices and the Fog of War combat thread mirror, Feint.
  • After landing: the "Landed troops" prompt, combat or coexistence prompts and buttons, the Keleres mech payment line (one ICU plural keeps the old wording byte for byte), returning fighters, Morphwing conversion.
  • New common.deleteTheseButtons.button.

Split

The class mixes flows. Its unit placement handlers (place_, placeOneNDone_) are production and go to 1-4d; the hit assignment texts are combat and go to 1-5. Ratchet: ti4.helpers.ButtonHelperModifyUnits 88 (from 147).

Limits guard

The remove, capture and infantry retreat labels carry two or three names, so DiscordLimitsI18nTest checks them with 12-character samples, like the Land labels from 1-4a.

Visible change

None. English output is byte-identical (oracle tests below).

Tests

  • ModifyUnitsMessagesTest: oracles copying every old string expression, Fog of War off and on, including the infiltrate and retreat plurals and the Keleres mech counts.
  • Full mvn verify with the Postgres tests: 3914 tests, 0 failures.

🤖 Generated with Claude Code

wholton and others added 2 commits December 6, 2026 02:02
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>
Removing and capturing units, Infiltrate, retreats and the after-landing
prompts now render from tactical.properties. The Xan Quantum Fabrication
prompt sends place_construction_ ids, so the 'construction' text check is
only a legacy fallback. English output is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base automatically changed from l10n/phase1-tactical-helper to l10n/phase1-tactical December 6, 2026 08:53
# Conflicts:
#	docs/LOCALIZATION_PLAN.md
#	src/main/java/ti4/helpers/TacticalActionMessages.java
#	src/main/resources/i18n/messages/common.properties
#	src/main/resources/i18n/messages/tactical.properties
#	src/test/resources/i18n-ratchet.txt
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