Plural strings need named arguments to be properly translatable in all languages
Bug #630955 reported by
David Planella
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Translations |
Fix Released
|
Medium
|
Mohamed Amine Ilidrissi | ||
software-center (Ubuntu) |
Fix Released
|
Medium
|
Mohamed Amine Ilidrissi |
Bug Description
Binary package hint: software-center
The following translatable strings in the code are correctly marked for plural translation:
Install %s Item
_Hide %i technical item_
_Show %i technical item_
However, they use unnamed arguments (%s, %i), which do not allow some languages such as Arabic and Hebrew to correctly translate the strings. Named arguments should be used instead (e.g. %(item)s, %(tech_item)i ).
The use of unnamed arguments in python plural strings is also a potential crasher, since gettext does not support error checking of those (see http://
Related branches
lp:~ilidrissi.amine/software-center/fixing-random-bugs
- software-store-developers: Pending requested
-
Diff: 151 lines (+39/-7)6 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
softwarecenter/apt/apthistory.py (+13/-0)
softwarecenter/view/appdetailsview_gtk.py (+12/-2)
softwarecenter/view/availablepane.py (+3/-3)
softwarecenter/view/historypane.py (+1/-1)
Changed in ubuntu-translations: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in software-center (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Mohamed Amine IL Idrissi (ilidrissi.amine) |
Changed in ubuntu-translations: | |
status: | Triaged → In Progress |
assignee: | nobody → Mohamed Amine IL Idrissi (ilidrissi.amine) |
Changed in software-center (Ubuntu): | |
importance: | Undecided → Medium |
Changed in ubuntu-translations: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Hi Mohamed! Thanks for working on this. It would seem that a few revisions of your branch got lost somewhere along the way (I assume due to string freeze), so I've updated them to current trunk and pushed it into a branch which should make it into trunk shortly. Thanks again for your help!