Skip to content

refactor: split MessageKeys and localize remaining strings - #100

Merged
derrickmehaffy merged 1 commit into
releases/0.12.0from
feat/split-messagekeys-localize
Mar 13, 2026
Merged

refactor: split MessageKeys and localize remaining strings#100
derrickmehaffy merged 1 commit into
releases/0.12.0from
feat/split-messagekeys-localize

Conversation

@derrickmehaffy

Copy link
Copy Markdown
Contributor

Summary

  • Split monolithic MessageKeys.java (2,789 lines, ~1,298 constants) into 6 focused domain files: CommonKeys, CommandKeys, HelpKeys, AdminKeys, GuiKeys, AdminGuiKeys
  • Consolidated ~25 duplicate message keys into shared CommonKeys.Common constants
  • Localized ~70 remaining hardcoded strings in territory display banners, update notifications, death broadcasts, and admin handlers
  • Added ~467 new translation entries per locale across all 10 supported languages (en-US, de-DE, es-ES, fr-FR, it-IT, nl-NL, pl-PL, pt-BR, ru-RU, tl-PH)

Test plan

  • Build compiles cleanly (./gradlew :HyperFactions:shadowJar)
  • All commands display localized messages (test with non-English locale via Player Settings)
  • Protection denial messages display in player's locale
  • Territory entry/exit banners display localized text
  • Admin handler outputs (update, zone, decay, debug) display localized text
  • GUI pages render correctly with new key imports
  • No regressions in English (default) locale

…hardcoded strings

Split the monolithic MessageKeys.java (2,789 lines, ~1,298 constants)
into 6 focused domain files: CommonKeys, CommandKeys, HelpKeys,
AdminKeys, GuiKeys, and AdminGuiKeys. Consolidated ~25 duplicate keys
into shared CommonKeys.Common constants.

Localized ~70 remaining hardcoded strings in territory display banners,
update notifications, death broadcasts, and admin handlers. Added ~467
new translation entries per locale across all 10 supported languages.
@derrickmehaffy derrickmehaffy added the enhancement New feature or request label Mar 13, 2026
@derrickmehaffy
derrickmehaffy merged commit d9f59c1 into releases/0.12.0 Mar 13, 2026
2 checks passed
@derrickmehaffy
derrickmehaffy deleted the feat/split-messagekeys-localize branch March 13, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant