GNOME Bugzilla – Bug 125175
Please use ngettext in gnome-control-center
Last modified: 2004-12-22 21:47:04 UTC
From bug 116236: 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); We should make all of GNOME use this when needed. Relevant strings: #: capplets/font/main.c:495 #, c-format msgid "" "The font selected is %d points large, and may make it difficult to " "effectively use the computer. It is recommended that you select a size " "smaller than %d." #: capplets/font/main.c:500 #, c-format msgid "" "The font selected is %d points large, and may make it difficult to " "effectively use the computer. It is recommended that you select a smaller " "sized font." Both of these should be pluralized on "%d points". Bug 124064 (providing ngettext check for control-center) is related to this issue.
Created attachment 22778 [details] [review] Proposed patch. I've found one more string.
The framework seems to be in place and we've jsut released which will give us time to catch any build issues. Please commit all of these.
Committed. Closing. regs, Chris