Skip to content

Update CTLD.lua#2586

Open
leka1986 wants to merge 5 commits intomaster-ngfrom
leka1986-patch-1
Open

Update CTLD.lua#2586
leka1986 wants to merge 5 commits intomaster-ngfrom
leka1986-patch-1

Conversation

@leka1986
Copy link
Copy Markdown
Collaborator

@leka1986 leka1986 commented May 3, 2026

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.

leka1986 added 2 commits May 3, 2026 16:19
### 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.
Added CH,  PT-BR, TR.
@leka1986 leka1986 marked this pull request as ready for review May 3, 2026 14:21
leka1986 added 3 commits May 3, 2026 19:27
Added traditional Chinese and Taiwan Chinese
remove whitespace
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