Skip to content

Commit

Permalink
Fixed #30439 - Translations issues on Django upgrade due to unexpected
Browse files Browse the repository at this point in the history
changes in plural forms

- Modify the catalog merging policy to "no-merge" if plural forms differ
in translations
- Add new LOCALE_ROOT setting
- Add new --comply-plural-forms option to makemessages
- Add new --collect-base-catalogs option to makemessages
- Fix inconsistencies with plural forms to comply the new merging policy
  • Loading branch information
math-a3k committed Jan 7, 2020
1 parent 0f843fd commit 8b5397f
Show file tree
Hide file tree
Showing 167 changed files with 1,780 additions and 220 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -766,6 +766,7 @@ answer newbie questions, and generally made Django that much better:
Rob Hudson <https://rob.cogit8.org/>
Rob Nguyen <tienrobertnguyenn@gmail.com>
Robin Munn <http://www.geekforgod.com/>
Rodrigo Gadea <matematica.a3k@gmail.com>
Rodrigo Pinheiro Marques de Araújo <fenrrir@gmail.com>
Romain Garrigues <romain.garrigues.cs@gmail.com>
Ronny Haryanto <https://ronny.haryan.to/>
Expand Down
1 change: 1 addition & 0 deletions django/contrib/admin/locale/en/LC_MESSAGES/djangojs.po
Expand Up @@ -12,6 +12,7 @@ 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"

#: contrib/admin/static/admin/js/SelectFilter2.js:47
#, javascript-format
Expand Down
Binary file modified django/contrib/admin/locale/kn/LC_MESSAGES/django.mo
Binary file not shown.
5 changes: 4 additions & 1 deletion django/contrib/admin/locale/kn/LC_MESSAGES/django.po
Expand Up @@ -15,7 +15,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: kn\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#, python-format
msgid "Successfully deleted %(count)d %(items)s."
Expand Down Expand Up @@ -221,11 +221,13 @@ msgstr "ದತ್ತಸಂಚಯದ ದೋಷ"
msgid "%(count)s %(name)s was changed successfully."
msgid_plural "%(count)s %(name)s were changed successfully."
msgstr[0] ""
msgstr[1] ""

#, python-format
msgid "%(total_count)s selected"
msgid_plural "All %(total_count)s selected"
msgstr[0] ""
msgstr[1] ""

#, python-format
msgid "0 of %(cnt)s selected"
Expand Down Expand Up @@ -511,6 +513,7 @@ msgstr ""
msgid "%(counter)s result"
msgid_plural "%(counter)s results"
msgstr[0] ""
msgstr[1] ""

#, python-format
msgid "%(full_result_count)s total"
Expand Down
Binary file modified django/contrib/admin/locale/kn/LC_MESSAGES/djangojs.mo
Binary file not shown.
5 changes: 4 additions & 1 deletion django/contrib/admin/locale/kn/LC_MESSAGES/djangojs.po
Expand Up @@ -16,7 +16,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: kn\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#, javascript-format
msgid "Available %s"
Expand Down Expand Up @@ -68,6 +68,7 @@ msgstr ""
msgid "%(sel)s of %(cnt)s selected"
msgid_plural "%(sel)s of %(cnt)s selected"
msgstr[0] ""
msgstr[1] ""

msgid ""
"You have unsaved changes on individual editable fields. If you run an "
Expand All @@ -92,11 +93,13 @@ msgstr ""
msgid "Note: You are %s hour ahead of server time."
msgid_plural "Note: You are %s hours ahead of server time."
msgstr[0] ""
msgstr[1] ""

#, javascript-format
msgid "Note: You are %s hour behind server time."
msgid_plural "Note: You are %s hours behind server time."
msgstr[0] ""
msgstr[1] ""

msgid "Now"
msgstr "ಈಗ"
Expand Down

0 comments on commit 8b5397f

Please sign in to comment.