Use appropriate marking for KDE plural forms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Inside kdelibs, there's a message which is replacement for regular gettext "Plural-Forms" header.
Specific message is:
"_: Dear translator, please do not translate this string in any form, but pick the _right_ value out of NoPlural/
Definition of PluralForm - to be set by the translator of
kdelibs.po"
(i.e. https:/
The translation for that should be limited to one of:
NoPlural: 0
TwoForms: n != 1
French: n > 1
OneTwoRest (???):
Russian: n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2
Polish: n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2
Slovenian: n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3
Lithuanian: n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2
Czech: n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2
Slovak: n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2
Arabic: n == 1 ? 0 : n == 2 ? 1 : 2
Balcan:
Macedonian: (n % 10 == 1 && n % 100 != 11) ? 0 : 1
Gaeilge (???): n < 2 ? 0 : n == 2 ? 1 : 2
Maltese: n == 1 ? 0 : (n == 0 || ((n % 100) >= 2 && (n % 100) <= 10) ) ? 1 : ((n % 100) >= 11 && (n % 100) <= 19 ) ? 2 : 3
(left is the KDE value to be used as translation for above message, right is our current definition inside language table; where values are missing, I'll fill them in later)
My idea is to extend language table in Rosetta using left-hand values and use that on PO export.
Blocked by bug #46982.
Changed in rosetta: | |
status: | Unconfirmed → Confirmed |
description: | updated |
Does it mean that they only support that fixed list of plural forms?
I guess the plural form expression is compatible with what we have in gettext, right? (at least the simple ones are quite similar or equal).
Oh, I just saw the Kurdish solution. This plural form implementation is even more broken than I thought. At least, KDE is moving now to standard plural forms....