Currently, only a class name is provided to the Transifex translators as a context. Neither disambiguation
parameter of the tr()
function nor translator comments, being included as XML elements to *.ts
translation files, are not parsed by the Transifex due to its limited support of such files.
This PR makes possible to provide all of the context details via an intermediate 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