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 135077 - Please use ngettext for handling plurals in gnome-netstatus
Please use ngettext for handling plurals in gnome-netstatus
Status: RESOLVED FIXED
Product: gnome-netstatus
Classification: Deprecated
Component: general
0.9
Other All
: Normal normal
: ---
Assigned To: Mark McLoughlin
Mark McLoughlin
Depends on:
Blocks: 116236
 
 
Reported: 2004-02-21 22:32 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Rose 2004-02-21 22:32:02 UTC
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 message is problematic in gnome-netstatus:

#: src/netstatus-dialog.c:125
#, c-format
msgid "%lu packets"


GNOME 2.6 is string frozen right now though, so you need approval both from
the release team and translators at gnome-i18n@ to fix this right now.
Comment 1 Christian Rose 2004-04-07 10:40:12 UTC
Seeing how gnome-netstatus has been branched for gnome-2-6 now, could this
please be fixed in HEAD, as HEAD is no longer affected by any freeze?
Comment 2 Mark McLoughlin 2004-04-07 11:45:56 UTC
Thanks Christian. Done now - note I committed it to gnome-2-6 by accident...
I'll revert that ...
Comment 3 Christian Rose 2004-04-08 10:21:52 UTC
Thanks Mark!