Not showing localized plural strings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fast-user-switch-applet (Ubuntu) |
Fix Released
|
Low
|
Ted Gould | ||
Jaunty |
Fix Released
|
Low
|
Ted Gould |
Bug Description
Binary package hint: fast-user-
If I choose from the fusa menu in the upper right corner one of the actions, the dialog that appears in the middle of the screen always shows the singular form, while I should see most of the time the plural form. I'm attaching a screenshot of the Italian translation: the number is 51 and it should say "secondi" not "secondo".
The translation of the strings is correct, they are strings 117 to 123 in Launchpad template.
I tested it with the English locale (en_US) and it is working as expected.
I don't know if it's a consequences of this, but also the title of the dialog and the button are not shown in their localized form.
The package version is 2.24.0-0ubuntu9
Ubuntu version is Jaunty.
Changed in fast-user-switch-applet (Ubuntu): | |
assignee: | nobody → ted-gould |
importance: | Undecided → Low |
milestone: | none → ubuntu-9.04-beta |
status: | New → Confirmed |
milestone: | ubuntu-9.04-beta → ubuntu-9.04 |
Looking at the code, looks like the ngettext function for handling plural forms is not working as expected. Probably it is related to the fact that the translations are not handled directly inside the ngettext function, but postponed with the macro N_() and referenced inside the ngettext function.
A consequences of this is also the fact the the POT file resulting from Launchpad does not have plural forms in it. You can also see this here:
https:/ /translations. edge.launchpad. net/ubuntu/ jaunty/ +source/ fast-user- switch- applet/ +pots/fast- user-switch- applet/ it/122/ +translate
There is no plural form in that string, singular and plural are handled separately in two different strings (they should be handled in one string). This is also a problem for languages with more than 2 plural forms.