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 116235 - Please use ngettext for handling plurals in gnopernicus
Please use ngettext for handling plurals in gnopernicus
Status: RESOLVED FIXED
Product: gnopernicus
Classification: Deprecated
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: firm
firm
Depends on:
Blocks: 116236
 
 
Reported: 2003-06-29 00:45 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Christian Rose 2003-06-29 00:45:02 UTC
On srcore/srctrl.c:2472 and srcore/srctrl.c:2576:

	tmp4 = src_xml_make_part ("TEXT", src_speech_get_voice ("system"),
GPOINTER_TO_INT (crt2->data) == 1 ? _("item") : _("items"));

As mentioned in
http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals,
this 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);
Comment 1 Christian Rose 2003-07-08 08:55:57 UTC
This perhaps also affects all singular/plural messages with character
names in srcore/srspc.c. Would need redesign to get the use of
singular/plural forms right with ngettext.
Comment 2 remus draica 2003-07-18 09:22:15 UTC
I made all changes in srctrl.c file. I looked for other situations
like this, but with no results.
Comment 3 Calum Benson 2003-11-12 17:58:09 UTC
Apologies for spam; adding a11y keyword so these bugs are picked up by our
historical bug tracking script.  Find/delete these emails by searching for
"calum fixing a11y script".