This PR:
- Moves handling of Qt TS files into the
locale
directory. - Switches from inferior globbing to the explicit file list generated by the
bitcoin-maintainer-tools/update-translations.py
script.
Closes #32653.
ts_files.cmake
file
#33115
This PR:
locale
directory.bitcoin-maintainer-tools/update-translations.py
script.Closes #32653.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33115.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | fanquake |
Stale ACK | BrandonOdiwuor |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Can we do a translation update here, to show that this change, and bitcoin-core/bitcoin-maintainer-tools#185, are working properly.
Sure. A commit has been added. Please see the commit message for details.
https://github.com/bitcoin/bitcoin/pull/33115/checks?check_run_id=47202038035:
0[09:14:13.759] gmake[2]: *** No rule to make target 'src/qt/locale/bitcoin_uz.qm', needed by 'src/qt/bitcoinqt_autogen/EJRQKI7XPS/qrc_bitcoin_locale.cpp'. Stop.
1[09:14:13.759] gmake[2]: *** Waiting for unfinished jobs....
This change offers a few advantages, such as:
- a more readable and cleaner `ts_files.cmake` (see the next commit);
- a scoped `ts_files` variable;
- improved code locality;
- no need to adjust the location of the resulting `*.qm` files.
See the `update-translations.py` script in the
`bitcoin-maintainer-tools` repository.
Code Review ACK f2bfe852236f45b9ea81d6b3f06c6a0097be3ddd
Environment: macOS 15.5, Qt 6.9.0
Build & GUI Test: Built successfully; GUI tested with generated ts_files.cmake via updated update_translations.py. No errors. Translation Test: Kiswahili (sw) loaded correctly in GUI. Screenshot:
Also tested the updated update_transaltions.py
against master branch and confirmed Greek (el)
and Vietnamese (vi)
as the only difference in ts_files.cmake
list as intended
147- <translation type="unfinished">Pokaż hasło </translation>
148+ <translation type="unfinished">Pokaż hasło</translation>
149 </message>
150 <message>
151 <source>Encrypt wallet</source>
152 <translation type="unfinished">Zaszyfruj portfel </translation>
There are still some spacing issues here. See also the report https://github.com/maflcko/b-c-gui-translations-review/blob/ab6dc43a4c543c072d916a268a0bc34562ce3f81/README.md
Are we going to pull in the updates, or leave this as-is?
I’ve also created a preliminary review for all languages: https://github.com/maflcko/b-c-gui-translations-review/tree/main/reviews
There is some obvious erroneous translations, like https://github.com/maflcko/b-c-gui-translations-review/blob/05100fec918fc44787d43004ea3b02749f5a16ee/reviews/te.md#L160-L166, but I am not familiar with those languages, so I can’t evaluate if the LLM generated translation is correct.
transifex updated
I’ve pulled the most recent translations.
Are we going to pull in the updates, or leave this as-is?
I’ve also created a preliminary review for all languages: https://github.com/maflcko/b-c-gui-translations-review/tree/main/reviews
There is some obvious erroneous translations, like https://github.com/maflcko/b-c-gui-translations-review/blob/05100fec918fc44787d43004ea3b02749f5a16ee/reviews/te.md#L160-L166, but I am not familiar with those languages, so I can’t evaluate if the LLM generated translation is correct.
Thanks @maflcko! I’ll link your suggestions to the Translation Opening Announcement as part of the upcoming v30 release process to notify all translators.
As for this PR, the last commit only serves only to demonstrate that the modified build system handles translation files properly. So I don’t think that any translation-specific issue should block it.
As for this PR, the last commit only serves only to demonstrate that the modified build system handles translation files properly. So I don’t think that any translation-specific issue should block it.
Agree. Discussion can be closed.
The translations for the following languages, which appear to be the
result of a mistake or an act of vandalism, have been discarded:
- Greek (el)
- Vietnamese (vi)
src/qt/bitcoin_szl.ts
look like they contain Rust source code?
The changes in
src/qt/bitcoin_szl.ts
look like they contain Rust source code?
Yes, see also https://github.com/maflcko/b-c-gui-translations-review/blob/fbeee68d9e07215e3ab0dc2e17ddf41ed9af7ce5/reviews/szl.md