-
Notifications
You must be signed in to change notification settings - Fork 87
chore(Makefile): create targets to update and build translations #18821
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
Conversation
Jenkins BuildsClick to see older builds (34)
|
3c4c70b
to
3842f30
Compare
9afa7ef
to
e69179f
Compare
- create dedicated Makefile targets: `update-translations` and `compile-translations` that extract/update/merge and compile the TS files respectively - these targets can then later be invoked externally by CI automation - provide a small manual Python script that transforms the empty `qml_base_en.ts` into a pre-filled `qml_base_lokalise_en.ts` for the purpose of AI enabled translations on Lokalise - add a sample Czech translation to test the changes (to be finished later separately) - update the i18n README Fixes #18820
e69179f
to
fc89e9f
Compare
"ar": Description(name: "Arabic", native: "العربية", flag: "", state: State.Alpha), | ||
"bn": Description(name: "Bengali", native: "বাংলা", flag: "X", state: State.Alpha), | ||
"bn": Description(name: "Bengali", native: "বাংলা", flag: "X", state: State.Alpha), | ||
"cs": Description(name: "Czech", native: "čeština", flag: "🇨🇿", state: State.Alpha), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally this should be done on the fly, and not hardcoded here. Will be tackled in a separate issue #18330
update-translations: | log-update-translations | ||
cmake -S $(TS_SOURCE_DIR) -B $(TS_BUILD_DIR) -Wno-dev $(HANDLE_OUTPUT) | ||
cmake --build $(TS_BUILD_DIR) --target update_application_translations $(HANDLE_OUTPUT) | ||
# + cd scripts/translationScripts && ./fixup-base-ts-for-lokalise.py $(HANDLE_OUTPUT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a manual step (for now) as it requires Python; no change here. We probably don't want or need this to be run everywhere (mac, Windows), can be done only on CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with this version of qm_base_loalise_en.ts since I tested it with Lolakise, and it works well with it, hence, approving this PR from my end.
@osmaczko @jrainville kind reminder for a review; don't get scared by this of the PR, the code changes are fairly minimal; tested by Volo on Lokalise, and me in the app |
What does the PR do
update-translations
andcompile-translations
that extract/update/merge and compile the TS files respectivelyqml_base_en.ts
into a pre-filledqml_base_lokalise_en.ts
for the purpose of AI enabled translations on LokaliseFixes #18820
Affected areas
Makefile
Architecture compliance
My PR is consistent with this document: QML Architecture Guidelines
Screencapture of the functionality
Impact on end user
UI is translated :)
How to test
Risk