diff options
author | W. J. van der Laan <laanwj@protonmail.com> | 2021-04-20 15:54:16 +0200 |
---|---|---|
committer | W. J. van der Laan <laanwj@protonmail.com> | 2021-04-20 16:10:24 +0200 |
commit | 90e0faaa442b6ced94aee2fa9d9d21c4063d76be (patch) | |
tree | 876a40f5958c2a2f7b063d40974f6a0acdcfa42b /contrib/guix/libexec/build.sh | |
parent | 018045347110d76cfc1f89a79fb49a867e3b8449 (diff) | |
parent | 35d52397e72f3ab96a7797148666b501d50b445d (diff) | |
download | bitcoin-90e0faaa442b6ced94aee2fa9d9d21c4063d76be.tar.xz |
Merge #21694: build: Use XLIFF file to provide more context to Transifex translators
35d52397e72f3ab96a7797148666b501d50b445d Add bitcoin_en.xlf intermediate translation file to the repo (Hennadii Stepanov)
99686b65195fe990144be1a6326061e9c6ae506c qt [experimental]: Add a translation comment and a disambiguation string (Hennadii Stepanov)
f959b75e8c5964dec59a1dce937ee2244cce33df build: Add Qt lconvert tool to depends (Hennadii Stepanov)
2045e4cdd26920665300f21be5b08fe66bde4a41 build: Use XLIFF file to provide more context to Transifex translators (Hennadii Stepanov)
Pull request description:
Currently, only a class name is provided to the Transifex translators as a context. Neither `disambiguation` parameter of the `tr()` function nor [translator comments](https://doc.qt.io/qt-5/i18n-source-translation.html#translator-comments), being included as XML elements to `*.ts` translation files, are not parsed by the Transifex due to its [limited support](https://docs.transifex.com/formats/qt-ts) of such files.
This PR makes possible to provide all of the context details via an intermediate [XLIFF](https://docs.transifex.com/formats/xliff) translation file.
With this PR `make -C src translate` produces the `src/qt/locale/bitcoin_en.xlf` file which must be provided to the Transifex as a translation source instead of `src/qt/locale/bitcoin_en.ts`.
Closes #21465.
An example translatable string with additional `<context>` and `<note>` XML elements: https://github.com/bitcoin/bitcoin/blob/35d52397e72f3ab96a7797148666b501d50b445d/src/qt/locale/bitcoin_en.xlf#L126-L132
ACKs for top commit:
laanwj:
ACK 35d52397e72f3ab96a7797148666b501d50b445d
Tree-SHA512: cc19e3c09501d240153550d75d7697b5f824cb553f4223beaff66be4d3e6f98d7b5bb14f2d1e1d5ad014eaaa498a7f672e7ff0054ced53ace8c1e6f7e49f6d8a
Diffstat (limited to 'contrib/guix/libexec/build.sh')
0 files changed, 0 insertions, 0 deletions