Skip to content

Move keyword ability text to localization keys#9843

Open
MostCromulent wants to merge 5 commits intoCard-Forge:masterfrom
MostCromulent:keywordlocale
Open

Move keyword ability text to localization keys#9843
MostCromulent wants to merge 5 commits intoCard-Forge:masterfrom
MostCromulent:keywordlocale

Conversation

@MostCromulent
Copy link
Copy Markdown
Contributor

@MostCromulent MostCromulent commented Feb 20, 2026

Summary

Per discussion with @Jetz72 on #9806: Moves keyword ability display names and reminder text from hardcoded Java strings in Keyword.java to en-US.properties localization keys. Follows the same pattern already used by KeywordAction in that PR.

  • 199 display name entries (lblKwAbility*) and 199 reminder text entries (lblKwAbility*Reminder)
  • No wording changes — exact same text, just externalized
  • getDisplayName() and getReminderText() both go through Localizer
  • The English displayName field is retained because smartValueOf() uses it to parse keyword names from card scripts — it's not used for display

🤖 Generated with Claude Code

MostCromulent and others added 4 commits February 21, 2026 09:17
Extract all 199 hardcoded reminder text strings from the Keyword enum
into en-US.properties under lblKwAbility*Reminder keys. Keyword enum
constructor no longer takes a reminder text parameter; getReminderText()
reads from Localizer. KeywordInstance updated to use getter instead of
direct field access.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Resolve conflicts in Keyword.java and en-US.properties,
adapting master's changes to localized format:
- ADAPT removed (master)
- MONSTROSITY removed (master)
- AFFINITY: KeywordWithType → Affinity.class (master)
- LANDWALK: KeywordWithType → Landwalk.class (master)
- CRAFT reminder text updated (master)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolve conflict in Keyword.java: add INCREMENT keyword using
branch's 3-arg constructor pattern with reminder text in locale
properties instead of master's inline 4-arg format.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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