Permalink
Browse files

[1.7.x] Fixed #23520 -- Explained that custom plural forms should be …

…avoided

Thanks aruseni for the report.
Backport of 556eb67 from master.
  • Loading branch information...
1 parent b2a80f9 commit 5cad259c12bed21ad80b68be1ec15ec3c48b6a3e @claudep claudep committed Mar 20, 2015
Showing with 9 additions and 0 deletions.
  1. +9 −0 docs/topics/i18n/translation.txt
@@ -265,6 +265,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

0 comments on commit 5cad259

Please sign in to comment.