mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
[3.0.x] Fixed #30439 -- Added support for different plural forms for a language.
Thanks to Michal Čihař for review.
Backport of e3e48b0012
from master
This commit is contained in:
parent
525274f79b
commit
d9f1792c76
7 changed files with 106 additions and 15 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue