feat(i18n): add fluent translation support for prologue missions#12
Open
schultzp2020 wants to merge 28 commits intodarkademic:devfrom
Open
feat(i18n): add fluent translation support for prologue missions#12schultzp2020 wants to merge 28 commits intodarkademic:devfrom
schultzp2020 wants to merge 28 commits intodarkademic:devfrom
Conversation
54f92ab to
231035c
Compare
- Deliverance Co-op low power announcement fix.
…vision. - Fixed Marauder not firing from Battle Fortress.
Signed-off-by: Paul Schultz <pschultz@pobox.com>
Signed-off-by: Paul Schultz <pschultz@pobox.com>
b47a3b1 to
0e681be
Compare
Signed-off-by: Paul Schultz <pschultz@pobox.com>
0e681be to
df16cf9
Compare
f76e1da to
c7882b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ftlfile rather than a centralized translation file, making it easier for contributors to work on individual missions.The shared translation infrastructure includes
fluent/lua.ftlfor common objective and notification strings,fluent/coop.ftlfor the 51 coop surrender messages, andscripts/utils.luawith helper functions likeAddPrimaryObjective()andAddSecondaryObjective()that automatically handle translation. Thecampaign.luaandcoop.luascripts have been updated to useUserInterface.GetFluentMessage()for all user-visible strings.