mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-07-16 14:12:47 +00:00
Update CTLD.lua
### Summary - Added an optional CTLD group locale resolver for group-targeted menus and messages. - Routed CTLD group menu/message localization through group-aware lookup while preserving `self.locale` as the default fallback. - Added an optional cargo display formatter with group context for missions that need custom cargo labels. - Added `MENU_CRATE_SINGLE` localization so single-crate menu labels use the localization table, matching multi-crate labels. ### Compatibility Default behavior is unchanged unless a mission calls `SetGroupLocaleResolver` or `SetCargoDisplayFormatter`. ### Motivation This allows missions with per-player or per-group language settings to localize CTLD menus and group messages without changing the global CTLD locale, This can be used to persist localization choice using the player name.
This commit is contained in: