GNOME Bugzilla – Bug 637497
plural forms needed
Last modified: 2011-04-05 16:07:17 UTC
#: ../pitivi/settings.py:537 #, python-format msgid "%(channels)d channels at %(frequency)d Hz (%(depth)d bits)" if chanels cen be 2 and can be also 5 in slovak have different translation - plural forms needed
How do you handle plural forms like that in python? Can you provide a patch by any chance?
Jean-François: I hope it's covered in http://live.gnome.org/TranslationProject/DevGuidelines/Use%20comments ? If not, please contact gnome-i18n@ mailing list!
Well not really, that page you just linked to talks about adding comments around translatable strings, but what I'm looking for is being able to have plural forms like the reported requested... Besides, the example is in C, pitivi is in python :)
Argh, plurals. Sorry, should be this link: http://live.gnome.org/TranslationProject/DevGuidelines/Plurals
Created attachment 177274 [details] [review] patch Here's an attempt at fixing it. Don't know if I did it right, but the program still runs ;) Also available in my "misc-fixes" branch as commit b46d7801cb0e06dad76d563b09b973736e5550b8
commit eee36cc81521adc79f8b3089a09464a1d8200772 Author: Jean-François Fortin Tam <nekohayo@gmail.com> Date: Thu Dec 30 14:25:18 2010 -0500 settings.py: use ngettext for plurals in getAudioDescription Fixes bug #637497