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 123867 - Please use ngettext for handling plurals in Galeon
Please use ngettext for handling plurals in Galeon
Status: RESOLVED FIXED
Product: galeon
Classification: Deprecated
Component: i18n
1.3.9
Other other
: Normal normal
: 2.0
Assigned To: galeon-maint
Yanko Kaneti
Depends on:
Blocks:
 
 
Reported: 2003-10-04 22:57 UTC by Danilo Segan
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to use ngettext in Galeon (1.23 KB, patch)
2003-10-05 09:57 UTC, Danilo Segan
none Details | Review

Description Danilo Segan 2003-10-04 22:57:44 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.

#: mozilla/CookiePromptService.cpp:75
#, c-format
msgid ""
"The site %s wants to set another cookie. You already have %d cookies from "
"this site."

#: src/galeon-window.c:2395
#, c-format
msgid ""
"You have requested to show %d bookmarked sites in different windows or tabs. "
"Are you sure?"
Comment 1 Danilo Segan 2003-10-05 09:57:31 UTC
Created attachment 20473 [details] [review]
Patch to use ngettext in Galeon
Comment 2 Christian Rose 2003-10-05 11:41:13 UTC
For a more general discussion about this inside GNOME, see bug 116236.
Comment 3 Christian Rose 2003-10-05 11:52:36 UTC
Hmm, there's possibly a missing "a" in this sentence:

+ ngettext("You have requested to show %d bookmarked site in different "
+          "window or tab. Are you sure?",

Should probably be "... in a different window or tab"
Comment 4 Crispin Flowerday (not receiving bugmail) 2003-10-10 20:57:21 UTC
Fixed in CVS.