[New-bugs-announce] [issue18319] gettext() cannot find translations with plural forms
Jakub Wilk
report at bugs.python.org
Fri Jun 28 00:53:23 CEST 2013
New submission from Jakub Wilk:
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'
----------
components: Library (Lib)
files: test.mo
messages: 191967
nosy: jwilk
priority: normal
severity: normal
status: open
title: gettext() cannot find translations with plural forms
Added file: http://bugs.python.org/file30717/test.mo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18319>
_______________________________________
More information about the New-bugs-announce
mailing list