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 <rep...@bugs.python.org> <http://bugs.python.org/issue18319> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com