This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jwilk
Recipients jwilk
Date 2013-06-27.22:53:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372373603.42.0.596981858746.issue18319@psf.upfronthosting.co.za>
In-reply-to
Content
gettext() cannot find translations for messages that have plural forms. I would expect that gettext(s) is equivalent to ngettext(s, s, 1) for such messages, as it is implemented in GNU gettext.

>>> import gettext
>>> with open('test.mo', 'rb') as mo: trans = gettext.GNUTranslations(mo)
... 
>>> trans.ngettext("egg", "eggs", 1)
'Ei'
>>> trans.gettext("egg")
'egg'
History
Date User Action Args
2013-06-27 22:53:23jwilksetrecipients: + jwilk
2013-06-27 22:53:23jwilksetmessageid: <1372373603.42.0.596981858746.issue18319@psf.upfronthosting.co.za>
2013-06-27 22:53:23jwilklinkissue18319 messages
2013-06-27 22:53:23jwilkcreate