GNOME Bugzilla – Bug 123867
Please use ngettext for handling plurals in Galeon
Last modified: 2004-12-22 21:47:04 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?"
Created attachment 20473 [details] [review] Patch to use ngettext in Galeon
For a more general discussion about this inside GNOME, see bug 116236.
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"
Fixed in CVS.