Repository navigation
Conversation
Moves the produce buttons, the running production summary, the place_ and placeOneNDone_ notices, the Construction and Mahact agent prompts, the payment prompt and the Done handler's command token notices onto tactical.production.* and tactical.done.* keys. DoneButtonKind labels come from common.done*.button keys through language-aware overloads; the English label stays for the legacy label lookup. The three DONE_EXHAUSTING_PLANETS_* constants get factory methods and are deprecated. Homebrew texts stay literal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Row 1-4d of the localization plan (
docs/LOCALIZATION_PLAN.md§5.0): production and theDone*buttons. Stacked on #6305 (1-4c) → #6303 → #6302 → #6301; this PR targets the 1-4c branch, so the diff shows 1-4d only.What moved (
tactical.production.*,tactical.done.*,common.done*)Helper.getPlaceUnitButtons): ships with their reinforcements count, fighters, infantry and mechs on planets and in space, space dock and PDS placement, Self-Assembly Routines, Reset Build, Yin Spinner, the War Machine reminder.Helper.buildProducedUnitsMessage): the per-place header, the cost line and totals (ICU plurals for units and resources), the PRODUCTION and Bellum Gloriosum limits and warnings.ButtonHelperModifyUnitsplace_andplaceOneNDone_): one ICUselectper sentence for placed or produced; the Construction token, the Mahact agent prompt and its three buttons; Orbital Drop, Planetary Defense Nexus, Bellum Gloriosum and Rally the Horde follow-ups (the last two now share one helper each).DeleteButtonsButtonHandler): the payment prompt with its official cost reducers (Hegemonic Trade Policy, AI Development Algorithm, Sarween Tools, Sled Factories, Hacan hero), the command token allocation notices (an ICUselectfor the net gain line), the expected-gain warning, the Fog of War homework reminder, the Mercer offer and the end-turn prompt (reusestactical.end.endTurn).DoneButtonKind: each kind has acommon.done*.buttonkey, andred/bareRed/bareBluetake a language. The English label stays forlegacyKindFromLabel, so buttons already posted still resolve. NewButtons.doneExhaustingPlanets(lang),doneExhaustingPlanetsSpitItOut(lang)anddoneExhaustingPlanetsFinishComponentAction(lang); the threeDONE_EXHAUSTING_PLANETS_*constants are@Deprecateduntil their other 46 callers move.Homebrew texts stay literal (monuments, Rally to the Cause, Cloaked Fleets, Imperial Shipyard, Merged Replicators, Theodisi discounts, Moyin's Chosen, Tyris, Roh'Dhna...). Not in this PR: the spend summary (
Helper.buildSpentThingsMessage) and the stored action summary.Ratchet
New class lines
ti4.helpers.Helper 34andDeleteButtonsButtonHandler 6;ButtonHelperModifyUnits88 → 80.Visible changes (small, on purpose)
placeOneNDone_notices already did. The Mirveda PDS placed in space used to be announced as a space dock; it now says PDS.placeOneNDone_notices: "@player Placed 1 …" → "@player placed 1 …", and "produced a " → "produced 1 ".Everything else is byte-identical.
Tests
ProductionMessagesTest: Done buttons keep their ids and English labels (and still resolve by label), produce-button labels, the production summary, placed and produced notices, and command token notices, each against the old string expression, Fog of War off and on. Intentional wording changes are marked in the test.mvn verifywith the Postgres tests: 3919 tests, 0 failures.🤖 Generated with Claude Code