Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15, 6.7.0
-
None
-
Attachment 'qtdiag-output.txt'
-
1d48bf34d (dev), 6d47929df (dev), 17a5c83eb (6.8), 9c8592bc3 (6.7), 40d40864c (tqtc/lts-6.5), f55f8fdb1 (tqtc/lts-5.15)
Description
Problem
Opened a .ts file which had its target language set to Luganda ('Ganda').
Expected to be able to translate strings including their plural options.
Instead the following happens:
a. It complains that it does not know the plural rules for the language (attached picture 'does-not-know-plurals-rules.png'.)
b. It does not allow translation for plurals (attached picture, 'unpatched-behaviour.png'.)
Cause
Missing entry for 'Ganda' in <somepath>/qt5/qttools/src/linguist/shared/numerus.cpp
(Also noted that <somepath>/qt5/qtbase/util/locale_database/testlocales/localemodel.cpp is missing an entry for the same language)
Fix
Apply patch to <somepath>/qt5/qttools/src/linguist/shared/numerus.cpp. Attachment 'numerus-ganda-patch.txt'.
It adds the language into the 'English style' section.
(Patch also supplied for <somepath>/qt5/qtbase/util/locale_database/testlocales/localemodel.cpp. Attachment 'localemodel-ganda-patch.txt'.)
Attachments
For Gerrit Dashboard: QTBUG-124200 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
553748,4 | Automate updating of list of locales for testlocales | dev | qt/qtbase | Status: MERGED | +2 | 0 |
577731,3 | Linguist: Add plurals rule for the Ganda language | dev | qt/qttools | Status: MERGED | +2 | 0 |
577999,2 | Linguist: Add plurals rule for the Ganda language | 6.8 | qt/qttools | Status: MERGED | +2 | 0 |
578149,2 | Linguist: Add plurals rule for the Ganda language | 6.7 | qt/qttools | Status: MERGED | +2 | 0 |
578193,2 | Linguist: Add plurals rule for the Ganda language | tqtc/lts-6.5 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |
578261,2 | Linguist: Add plurals rule for the Ganda language | tqtc/lts-5.15 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |