Skip to content

Commit

Permalink
Fix up translations based on recent code changes
Browse files Browse the repository at this point in the history
Two code changes happened recently that weren't handled in most
translations:

- the lowercase-ification of content types
- the adding of a context to the "slug" and "name" taggit admin thingy

This commit just goes in and assumes that this doesn't affect other
languages' translations. In reality it's totally possible that some
stuff should be lowercased or otherwised changed, but I'm making a
judgement call that the same translations for the text as before will
work well.

This also introduces empty translations for missing ones, which should
help future translators see what is missing.
  • Loading branch information
rtpg authored and Asif Saif Uddin committed Nov 14, 2021
1 parent 8ada5b7 commit 13fdd25
Show file tree
Hide file tree
Showing 43 changed files with 806 additions and 403 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Changelog

* Fix issue where ``TagField`` would incorrectly report that a field has changed on empty values.
* Update Russian translation.
* Add Persian translation
* Fix issue for many languages where content types were not being properly translated.
* Provide translators additional context regarding strings in TagBase model.


Expand Down
Binary file modified taggit/locale/ar/LC_MESSAGES/django.mo
Binary file not shown.
51 changes: 34 additions & 17 deletions taggit/locale/ar/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,66 +7,83 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-04-19 23:27+0100\n"
"POT-Creation-Date: 2021-11-14 11:27+0900\n"
"PO-Revision-Date: 2021-04-19 23:30+0100\n"
"Last-Translator: Soufyane Hedidi <hesoka05@gmail.com>\n"
"Language-Team: \n"
"Language: ar_DZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3\n"
"Last-Translator: Soufyane Hedidi <hesoka05@gmail.com>\n"
"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n"
"Language: ar_DZ\n"
"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n"

#: apps.py:7
#: taggit/apps.py:7
msgid "Taggit"
msgstr "أوْسِمه"

#: forms.py:31
#: taggit/forms.py:31
msgid "Please provide a comma-separated list of tags."
msgstr "يرجى توفير قائمة وسوم مفصولة بفاصلة."

#: managers.py:426
#: taggit/managers.py:432
msgid "Tags"
msgstr "الوسوم"

#: managers.py:427
#: taggit/managers.py:433
msgid "A comma-separated list of tags."
msgstr "قائمة وسوم مفصولة بفاصلة."

#: models.py:17
#: taggit/models.py:19
msgctxt "A tag name"
msgid "name"
msgstr "الإسم"

#: models.py:18
#: taggit/models.py:22
msgctxt "A tag slug"
msgid "slug"
msgstr "سبيكة الوسم"

#: models.py:77
#: taggit/models.py:82
msgid "tag"
msgstr "الوسم"

#: models.py:78
#: taggit/models.py:83
msgid "tags"
msgstr "الوسوم"

#: models.py:84
#: taggit/models.py:89
#, python-format
msgid "%(object)s tagged with %(tag)s"
msgstr "%(object)s الموسوم بـ %(tag)s"

#: models.py:129
#: taggit/models.py:134
msgid "content type"
msgstr "نوع المحتوى"

#: models.py:160 models.py:167
#: taggit/models.py:165 taggit/models.py:172
msgid "object ID"
msgstr "معرِّف الكائن"

#: models.py:175
#: taggit/models.py:180
msgid "tagged item"
msgstr "العنصر الموسوم"

#: models.py:176
#: taggit/models.py:181
msgid "tagged items"
msgstr "العناصر الموسومة"

#: taggit/serializers.py:40
#, python-brace-format
msgid "Expected a list of items but got type \"{input_type}\"."
msgstr ""

#: taggit/serializers.py:43
msgid ""
"Invalid json list. A tag list submitted in string form must be valid json."
msgstr ""

#: taggit/serializers.py:46
msgid "All list items must be of string type."
msgstr ""
Binary file modified taggit/locale/cs/LC_MESSAGES/django.mo
Binary file not shown.
60 changes: 40 additions & 20 deletions taggit/locale/cs/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-03-22 03:32-0700\n"
"POT-Creation-Date: 2021-11-14 11:28+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -18,51 +18,71 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#: apps.py:7
#: taggit/apps.py:7
msgid "Taggit"
msgstr ""

#: forms.py:23
#: taggit/forms.py:31
msgid "Please provide a comma-separated list of tags."
msgstr "Vložte čárkami oddělený seznam tagů"

#: managers.py:396 models.py:77
#: taggit/managers.py:432
msgid "Tags"
msgstr "Tagy"

#: managers.py:397
#: taggit/managers.py:433
msgid "A comma-separated list of tags."
msgstr "Čárkami oddělený seznam tagů"

#: models.py:16
msgid "Name"
#: taggit/models.py:19
msgctxt "A tag name"
msgid "name"
msgstr "Jméno"

#: models.py:17
msgid "Slug"
#: taggit/models.py:22
msgctxt "A tag slug"
msgid "slug"
msgstr "Slug"

#: models.py:76
msgid "Tag"
#: taggit/models.py:82
msgid "tag"
msgstr "Tag"

#: models.py:83
#: taggit/models.py:83
msgid "tags"
msgstr ""

#: taggit/models.py:89
#, python-format
msgid "%(object)s tagged with %(tag)s"
msgstr "%(object)s označen tagem %(tag)s"

#: models.py:128
msgid "Content type"
#: taggit/models.py:134
msgid "content type"
msgstr "Typ obsahu"

#: models.py:158 models.py:165
msgid "Object id"
#: taggit/models.py:165 taggit/models.py:172
msgid "object ID"
msgstr "ID objektu"

#: models.py:173
msgid "Tagged Item"
#: taggit/models.py:180
msgid "tagged item"
msgstr "Tagem označená položka"

#: models.py:174
msgid "Tagged Items"
#: taggit/models.py:181
msgid "tagged items"
msgstr "Tagy označené položky"

#: taggit/serializers.py:40
#, python-brace-format
msgid "Expected a list of items but got type \"{input_type}\"."
msgstr ""

#: taggit/serializers.py:43
msgid ""
"Invalid json list. A tag list submitted in string form must be valid json."
msgstr ""

#: taggit/serializers.py:46
msgid "All list items must be of string type."
msgstr ""
Binary file modified taggit/locale/da/LC_MESSAGES/django.mo
Binary file not shown.
48 changes: 32 additions & 16 deletions taggit/locale/da/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,66 +7,82 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-25 14:25+0100\n"
"POT-Creation-Date: 2021-11-14 11:29+0900\n"
"PO-Revision-Date: 2020-10-25 14:29+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: da\n"
"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"
"Last-Translator: \n"
"Language-Team: \n"
"X-Generator: Poedit 2.4.1\n"

#: apps.py:7
#: taggit/apps.py:7
msgid "Taggit"
msgstr "Taggit"

#: forms.py:31
#: taggit/forms.py:31
msgid "Please provide a comma-separated list of tags."
msgstr "Venligts angiv mærker adskilt af et komma."

#: managers.py:422
#: taggit/managers.py:432
msgid "Tags"
msgstr "Mærker"

#: managers.py:423
#: taggit/managers.py:433
msgid "A comma-separated list of tags."
msgstr "Adskil mærker med et komma."

#: models.py:17
#: taggit/models.py:19
msgctxt "A tag name"
msgid "name"
msgstr "navn"

#: models.py:18
#: taggit/models.py:22
msgctxt "A tag slug"
msgid "slug"
msgstr "slug"

#: models.py:77
#: taggit/models.py:82
msgid "tag"
msgstr "mærke"

#: models.py:78
#: taggit/models.py:83
msgid "tags"
msgstr "mærker"

#: models.py:84
#: taggit/models.py:89
#, python-format
msgid "%(object)s tagged with %(tag)s"
msgstr "%(object)s mærket med %(tag)s"

#: models.py:129
#: taggit/models.py:134
msgid "content type"
msgstr "indholdstype"

#: models.py:160 models.py:167
#: taggit/models.py:165 taggit/models.py:172
msgid "object ID"
msgstr "objekt ID"

#: models.py:175
#: taggit/models.py:180
msgid "tagged item"
msgstr "mærket element"

#: models.py:176
#: taggit/models.py:181
msgid "tagged items"
msgstr "mærkede elementer"

#: taggit/serializers.py:40
#, python-brace-format
msgid "Expected a list of items but got type \"{input_type}\"."
msgstr ""

#: taggit/serializers.py:43
msgid ""
"Invalid json list. A tag list submitted in string form must be valid json."
msgstr ""

#: taggit/serializers.py:46
msgid "All list items must be of string type."
msgstr ""
Binary file modified taggit/locale/de/LC_MESSAGES/django.mo
Binary file not shown.

0 comments on commit 13fdd25

Please sign in to comment.