Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7.2, 6.8.0 Beta2
-
9b4d45d40 (dev), 31229209a (6.8), 78c505359 (6.7)
Description
TS files with translatable strings containing plurals should include the correct number of <numerusform> entries for the target language plural forms.
The qt_add_translations() command is generating .ts files containing only one <numerusform> entry.
Same behavior also observed when generating a plurals-only .ts file via the qt_add_lupdate(PLURAL_TS_FILE file.ts) and qt_add_translations(PLURAL_TS_FILE file.ts) commands.
Possible related bug QTBUG-127789, since setting the language attribute in the generated .ts file and rebuilding the project with lupdate_translations leads to the file being updated to include the correct number of <numerusform> entries for the target language.
To reproduce issue, build attached project with update_translations.
Attachments
For Gerrit Dashboard: QTBUG-127792 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
582602,3 | CMake: store 'language' and 'sourcelanguage' in generated .ts files | dev | qt/qttools | Status: MERGED | +2 | 0 |
583343,2 | CMake: store 'language' and 'sourcelanguage' in generated .ts files | 6.8 | qt/qttools | Status: MERGED | +2 | 0 |
583401,2 | CMake: store 'language' and 'sourcelanguage' in generated .ts files | 6.7 | qt/qttools | Status: MERGED | +2 | 0 |