After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591133 - Poor pluralisation
Poor pluralisation
Status: RESOLVED WONTFIX
Product: evolution
Classification: Applications
Component: Calendar
2.28.x (obsolete)
Other All
: Normal trivial
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2009-08-08 09:24 UTC by Iestyn Pryce
Modified: 2010-04-06 17:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Iestyn Pryce 2009-08-08 09:24:07 UTC
In calendar/gui/dialogs/alarm-dialog.glade the string:

minute(s)
hour(s)
day(s)

marked for translation, is not very good for i18n as different languages have different plural forms. Would it be possible for you to offer ngettext support for this string so we can use 'msgid_plural' in the po files.
Comment 1 André Klapper 2009-08-08 12:07:44 UTC
How should this be possible when there is a dropdown menu in front of it?
Comment 2 Iestyn Pryce 2009-08-08 13:11:09 UTC
Ah, I see the problem; you'd have to have the combo box change the plural form as you scrolled through the previous spin button. I am not much of a coder so I don't know the possibilities for doing this with the current libraries etc.

With the current framework I assume it would be best to translate the text as i.e for Welsh:

munud(au)
awr/oriau
dydd(iau)

?
Comment 3 Matthew Barnes 2009-08-08 13:14:20 UTC
ngettext() won't work because the user chooses the number in a spin button.
Perhaps better to just use the plural form in the combo box?
Comment 4 Akhil Laddha 2009-11-20 04:59:39 UTC
Iestyn, ping, any thoughts on comment#3 ?
Comment 5 Iestyn Pryce 2009-11-20 12:56:30 UTC
Akhil, as ngettext() doesn't work in this context I've resolved to use the singular form for Welsh in the combo box as it fits in better with the flow of the language than using the plural form for everything. Though I'm sure other languages will find other workarounds which are more suitable for their language.
Comment 6 Tobias Mueller 2010-01-31 15:23:24 UTC
Reopening as the requested information been provided.
Comment 7 Milan Crha 2010-04-06 17:21:51 UTC
I agree with comment #5, thus closing this.