GNOME Bugzilla – Bug 116986
Please use ngettext for plural forms in mailcheck in gnome-applets
Last modified: 2004-12-22 21:47:04 UTC
I'd suggest to use "plural forms" feature of gettext so some strings would be translateable to much more languages. You do that using ngettext() calls (check the GNU gettext info manual with "info gettext"). The particular examples in gnome-applets mailcheck module are: #: mailcheck/mailcheck.c:925 #, c-format msgid "%d unread/ %d messages" msgstr "" #: mailcheck/mailcheck.c:927 #, c-format msgid "%d messages" msgstr ""
Created attachment 18135 [details] [review] Use ngettext() in mailcheck.c
Here's a simple patch that uses ngettext() instead of _(). Because there's a need to use two separate strings for "unread" and "messages", the first is split into two strings, and later g_strconcat-ed. This isn't tested, so please be cautious.
More details on why plurals cause problems and why ngettext is needed can be found on http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals.
*** Bug 118019 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 106698 ***