New submission from Serhiy Storchaka: GNU gettext library accepts only integer value for selecting plural form. Python gettext accepts arbitrary numbers. But gettext formulas are not purposed to support non-integer values and can return incorrect result. For example (in Ukrainian):
"1 площа", but "1.5 площі", not "1.5 площ". "2 гектари", but "2.75 гектара", not "2.75 гектарів". "5 тонн", but "5.7 тонни", not "5.7 тонн". Separate plural form should be used for fractional numbers. Even if fractional part happens to be zero, it is acceptable (e.g. "Time elapsed: 1.000 seconds" in English). Proposed patch deprecates fractional numbers for selecting plural form in gettext. ---------- components: Library (Lib) messages: 280804 nosy: Tim.Graham, loewis, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: gettext: deprecate selecting plural form by fractional numbers type: enhancement versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28692> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com