1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

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
7 changed files with 106 additions and 15 deletions

View File

@@ -14,7 +14,10 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n==0 ? 1 : 2);\n"
# Plural form is purposefully different from the normal French plural to test
# multiple plural forms for one language.
#: template.html:3
# Note: Intentional: variable name is translated.
@@ -24,4 +27,10 @@ msgstr "Mon nom est %(personne)s."
#: template.html:3
# Note: Intentional: the variable name is badly formatted (missing 's' at the end)
msgid "My other name is %(person)s."
msgstr "Mon autre nom est %(person)."
msgstr "Mon autre nom est %(person)."
msgid "%d singular"
msgid_plural "%d plural"
msgstr[0] "%d singulier"
msgstr[1] "%d pluriel1"
msgstr[2] "%d pluriel2"