Fixed #30439 -- Added support for different plural forms for a language.

Thanks to Michal Čihař for review.
This commit is contained in:
Claude Paroz 2020-03-10 15:56:32 +01:00 committed by GitHub
parent 591e2270dc
commit e3e48b0012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 106 additions and 15 deletions

View file

@ -4,9 +4,10 @@ Django 2.2.12 release notes
*Expected April 1, 2020*
Django 2.2.12 fixes several bugs in 2.2.11.
Django 2.2.12 fixes a bug in 2.2.11.
Bugfixes
========
* ...
* Added the ability to handle ``.po`` files containing different plural
equations for the same language (:ticket:`30439`).

View file

@ -9,4 +9,5 @@ Django 3.0.5 fixes several bugs in 3.0.4.
Bugfixes
========
* ...
* Added the ability to handle ``.po`` files containing different plural
equations for the same language (:ticket:`30439`).

View file

@ -277,14 +277,9 @@ In a case like this, consider something like the following::
a format specification for argument 'name', as in 'msgstr[0]', doesn't exist in 'msgid'
.. note:: Plural form and po files
.. versionchanged: 2.2.12
Django does not support custom plural equations in po files. As all
translation catalogs are merged, only the plural form for the main Django po
file (in ``django/conf/locale/<lang_code>/LC_MESSAGES/django.po``) is
considered. Plural forms in all other po files are ignored. Therefore, you
should not use different plural equations in your project or application po
files.
Added support for different plural equations in ``.po`` files.
.. _contextual-markers: