summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-03-20 19:59:10 +0100
committerClaude Paroz <claude@2xlibre.net>2015-03-20 20:46:02 +0100
commit5da3153d56ade6db7997c059db24e1d17be25036 (patch)
tree0b30f5388c590df6ff2d34ff655db51ffbc89090 /docs
parent5cd551409e3f445a8c7cf59b8cf038d709607dec (diff)
[1.8.x] Fixed #23520 -- Explained that custom plural forms should be avoided
Thanks aruseni for the report. Backport of 556eb67701 from master.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/i18n/translation.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index e53b925968..7fcb781216 100644
--- a/docs/topics/i18n/translation.txt
+++ b/docs/topics/i18n/translation.txt
@@ -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