forked from Inq8/CAmod
-
Notifications
You must be signed in to change notification settings - Fork 3
feat(i18n): add fluent translation support for prologue missions #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
schultzp2020
wants to merge
28
commits into
darkademic:dev
Choose a base branch
from
schultzp2020:translate-campaign
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
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
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.