1
0
mirror of https://github.com/django/django.git synced 2024-12-26 11:06:07 +00:00

[1.8.x] Fixed #23520 -- Explained that custom plural forms should be avoided

Thanks aruseni for the report.
Backport of 556eb67701 from master.
This commit is contained in:
Claude Paroz 2015-03-20 19:59:10 +01:00
parent 5cd551409e
commit 5da3153d56

View File

@ -263,6 +263,15 @@ 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
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.
.. _contextual-markers:
Contextual markers