Mercurial > babel > old > mirror
diff babel/messages/catalog.py @ 105:abd3a594dab4
Implement wrapping of header comments in PO(T) output. Related to #14.
author | cmlenz |
---|---|
date | Wed, 13 Jun 2007 21:46:41 +0000 |
parents | b6b5992daa6c |
children | 2a00e352c986 |
line wrap: on
line diff
--- a/babel/messages/catalog.py +++ b/babel/messages/catalog.py @@ -227,6 +227,13 @@ return num num_plurals = property(num_plurals, doc="""\ The number of plurals used by the locale. + + >>> Catalog(locale='en').num_plurals + 2 + >>> Catalog(locale='cs_CZ').num_plurals + 3 + + :type: `int` """) def plural_forms(self): @@ -240,7 +247,7 @@ plural_forms = property(plural_forms, doc="""\ Return the plural forms declaration for the locale. - >>> Catalog(locale='en_US').plural_forms + >>> Catalog(locale='en').plural_forms 'nplurals=2; plural=(n != 1)' >>> Catalog(locale='pt_BR').plural_forms 'nplurals=2; plural=(n > 1)'