After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 637497 - plural forms needed
plural forms needed
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: General
Git
Other Linux
: Normal normal
: 0.14
Assigned To: Jean-François Fortin Tam
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2010-12-17 20:51 UTC by Peter Mráz
Modified: 2011-04-05 16:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.58 KB, patch)
2010-12-30 19:27 UTC, Jean-François Fortin Tam
none Details | Review

Description Peter Mráz 2010-12-17 20:51:37 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
Comment 1 Jean-François Fortin Tam 2010-12-22 20:14:48 UTC
How do you handle plural forms like that in python? Can you provide a patch by any chance?
Comment 2 André Klapper 2010-12-30 00:10:35 UTC
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!
Comment 3 Jean-François Fortin Tam 2010-12-30 16:05:27 UTC
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 :)
Comment 4 André Klapper 2010-12-30 16:41:25 UTC
Argh, plurals. Sorry, should be this link:
http://live.gnome.org/TranslationProject/DevGuidelines/Plurals
Comment 5 Jean-François Fortin Tam 2010-12-30 19:27:39 UTC
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
Comment 6 Jean-François Fortin Tam 2011-04-05 16:07:17 UTC
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