Skip to content

Conversation

@schultzp2020
Copy link

This PR adds Fluent translation support to the campaign missions, enabling future multi-language support. The implementation follows the OpenHV per-mission approach where each mission has its own en.ftl file rather than a centralized translation file, making it easier for contributors to work on individual missions.

The shared translation infrastructure includes fluent/lua.ftl for common objective and notification strings, fluent/coop.ftl for the 51 coop surrender messages, and scripts/utils.lua with helper functions like AddPrimaryObjective() and AddSecondaryObjective() that automatically handle translation. The campaign.lua and coop.lua scripts have been updated to use UserInterface.GetFluentMessage() for all user-visible strings.

@schultzp2020 schultzp2020 force-pushed the translate-campaign branch 3 times, most recently from 54f92ab to 231035c Compare January 5, 2026 20:11
@schultzp2020 schultzp2020 force-pushed the translate-campaign branch 2 times, most recently from b47a3b1 to 0e681be Compare January 5, 2026 22:26
Signed-off-by: Paul Schultz <pschultz@pobox.com>
@darkademic darkademic force-pushed the dev branch 3 times, most recently from f76e1da to c7882b3 Compare January 10, 2026 11:38
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.

2 participants