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 123850 - Please use ngettext in seahorse
Please use ngettext in seahorse
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
0.7.x
Other other
: Normal normal
: ---
Assigned To: Seahorse Maintainer
Seahorse Maintainer
Depends on:
Blocks:
 
 
Reported: 2003-10-04 21:19 UTC by Danilo Segan
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Danilo Segan 2003-10-04 21:19:54 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);



These are the relevant messages.

#: libseahorse/seahorse-context.c:427
#, c-format
msgid "Loaded %d key pairs"

#: libseahorse/seahorse-context.c:448
#, c-format
msgid "Loaded %d keys"

#: libseahorse/seahorse-recipients.c:77
#, c-format
msgid "Selected %d not fully valid keys and %d fully valid keys"

#: src/main.c:136
#, c-format
msgid "Imported %d keys"


Each of these is trivial, except for "Selected %d not fully..." because
there are two occurrences of %d.
Comment 1 Stef Walter 2004-10-08 22:47:41 UTC
Fixed in CVS.