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 123866 - Please use ngettext for handling plurals in GConf
Please use ngettext for handling plurals in GConf
Status: RESOLVED FIXED
Product: GConf
Classification: Deprecated
Component: gconf
CVS HEAD
Other other
: Normal normal
: ---
Assigned To: GConf Maintainers
GConf Maintainers
Depends on:
Blocks: 116236
 
 
Reported: 2003-10-04 22:54 UTC by Danilo Segan
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Danilo Segan 2003-10-04 22:54:02 UTC
(Following paragraphs copied from bug 116236 verbatim)
As mentioned in
http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals,
the common way of handling plurals is broken for many locales. A way to
solve this is by using ngettext instead, as mentioned in that document.

A simple code example of code using ngettext:

  g_printf (ngettext ("Found %d file.", "Found %d files.", nbr_of_files),
nbr_of_files);

This is the relevant message.

#: backends/xml-cache.c:343
#, c-format
msgid ""
"%u items remain in the cache after cleaning already-synced items older than %"
"u seconds"

This one is a bit tricky, because it contains two uses of %u, so it would
have to be split into two parts, and those ngettext-ed separately, for
instance:

"%u seconds"
"%u items remain in the cache after cleaning already-synced items older
than %s"
Comment 1 Havoc Pennington 2003-10-22 20:09:11 UTC
I just killed off this string, since it was useless anyway.