GNOME Bugzilla – Bug 123852
Please use ngettext in rhythmbox
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. #: lib/widgets/rb-song-info.c:1101 #, c-format msgid " (%d channels)" #: library/rb-library.c:1643 #, c-format msgid "<b>%.1f</b> days (%ld songs)" #: library/rb-library.c:1646 #, c-format msgid "<b>%ld</b> hours and <b>%ld</b> minutes (%ld songs)" #: sources/rb-audiocd-source.c:1231 #, c-format msgid "%d songs, %d:%02d:%02d total time" #: sources/rb-iradio-source.c:486 #, c-format msgid "<b>%d</b> total stations in <b>%d</b> distinct genres"
Along with this, we should remove the bold too, and add total file size.
Done.
One message is still left unmodified: #: sources/rb-audiocd-source.c:1231 #, c-format msgid "%d songs, %d:%02d:%02d total time" This should be "pluralized" on "%d songs". Thanks
Ah, sorry, that file isn't used at the moment (and isn't likely to be anytime soon). I've added it to POTFILES.skip.