Please use ngettext for handling plurals in gnome-games
Submitted by Christian Rose
Link to original bug (#106697)
Description
#: aisleriot/SCHEME_GAMES.h:11 msgid " "
#: aisleriot/SCHEME_GAMES.h:12 msgid " of "
#: aisleriot/SCHEME_GAMES.h:13 msgid "'s"
#: freecell/src/score.c:80 #, c-format msgid "current: %d wins"
#: freecell/src/score.c:82 #, c-format msgid "current: %d losses"
#: gtali/cyahtzee.c:548 gtali/gyahtzee.c:117 #, c-format msgid "%s wins the game with %d points"
As mentioned in http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals, this 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);
Resolution: RESOLVED FIXED