Skip to content

Commit

Permalink
Ignore some backend strings for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
bjester committed May 10, 2023
1 parent 256783b commit d58ca08
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 209 deletions.
10 changes: 4 additions & 6 deletions contentcuration/contentcuration/constants/channel_history.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
from django.utils.translation import ugettext_lazy as _

CREATION = "creation"
PUBLICATION = "publication"
DELETION = "deletion"
RECOVERY = "recovery"

choices = (
(CREATION, _("Creation")),
(PUBLICATION, _("Publication")),
(DELETION, _("Deletion")),
(RECOVERY, _("Deletion recovery")),
(CREATION, "Creation"),
(PUBLICATION, "Publication"),
(DELETION, "Deletion"),
(RECOVERY, "Deletion recovery"),
)
8 changes: 3 additions & 5 deletions contentcuration/contentcuration/constants/user_history.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from django.utils.translation import ugettext_lazy as _

DELETION = "soft-deletion"
RECOVERY = "soft-recovery"
RELATED_DATA_HARD_DELETION = "related-data-hard-deletion"

choices = (
(DELETION, _("User soft deletion")),
(RECOVERY, _("User soft deletion recovery")),
(RELATED_DATA_HARD_DELETION, _("User related data hard deletion")),
(DELETION, "User soft deletion"),
(RECOVERY, "User soft deletion recovery"),
(RELATED_DATA_HARD_DELETION, "User related data hard deletion"),
)
51 changes: 16 additions & 35 deletions contentcuration/locale/ar/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kolibri-studio\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-08 23:08+0000\n"
"POT-Creation-Date: 2023-05-10 14:17+0000\n"
"PO-Revision-Date: 2022-10-17 20:08\n"
"Last-Translator: \n"
"Language-Team: Arabic\n"
Expand All @@ -23,40 +23,6 @@ msgstr ""
msgid "Arabic"
msgstr "العربيّة"

#: contentcuration/constants/channel_history.py:9
#, fuzzy
#| msgid "Created"
msgid "Creation"
msgstr "تمّ الإنشاء"

#: contentcuration/constants/channel_history.py:10
#, fuzzy
#| msgid "Public Domain"
msgid "Publication"
msgstr "الملكية العامة"

#: contentcuration/constants/channel_history.py:11
#, fuzzy
#| msgid "Description"
msgid "Deletion"
msgstr "التّوصيف"

#: contentcuration/constants/channel_history.py:12
msgid "Deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:8
msgid "User soft deletion"
msgstr ""

#: contentcuration/constants/user_history.py:9
msgid "User soft deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:10
msgid "User related data hard deletion"
msgstr ""

#: contentcuration/middleware/db_readonly.py:24
msgid "The site is currently in read-only mode. Please try again later."
msgstr "الموقع حالياً في وضع القراءة فقط. الرجاء المحاولة مجدداً في وقت لاحق."
Expand Down Expand Up @@ -964,6 +930,21 @@ msgstr "نقطة نهاية Api {} غير متوفرة"
msgid "No channel matching {} found"
msgstr "لم يتم العثور على قناة مطابقة {}"

#, fuzzy
#~| msgid "Created"
#~ msgid "Creation"
#~ msgstr "تمّ الإنشاء"

#, fuzzy
#~| msgid "Public Domain"
#~ msgid "Publication"
#~ msgstr "الملكية العامة"

#, fuzzy
#~| msgid "Description"
#~ msgid "Deletion"
#~ msgstr "التّوصيف"

#~ msgid "Date/Time Created"
#~ msgstr "تاريخ/وقت الإنشاء"

Expand Down
30 changes: 1 addition & 29 deletions contentcuration/locale/en/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: 2023-05-08 23:08+0000\n"
"POT-Creation-Date: 2023-05-10 14:17+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -23,34 +23,6 @@ msgstr ""
msgid "Arabic"
msgstr ""

#: contentcuration/constants/channel_history.py:9
msgid "Creation"
msgstr ""

#: contentcuration/constants/channel_history.py:10
msgid "Publication"
msgstr ""

#: contentcuration/constants/channel_history.py:11
msgid "Deletion"
msgstr ""

#: contentcuration/constants/channel_history.py:12
msgid "Deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:8
msgid "User soft deletion"
msgstr ""

#: contentcuration/constants/user_history.py:9
msgid "User soft deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:10
msgid "User related data hard deletion"
msgstr ""

#: contentcuration/middleware/db_readonly.py:24
msgid "The site is currently in read-only mode. Please try again later."
msgstr ""
Expand Down
51 changes: 16 additions & 35 deletions contentcuration/locale/es_ES/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kolibri-studio\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-08 23:08+0000\n"
"POT-Creation-Date: 2023-05-10 14:17+0000\n"
"PO-Revision-Date: 2022-10-17 20:08\n"
"Last-Translator: \n"
"Language-Team: Spanish\n"
Expand All @@ -22,40 +22,6 @@ msgstr ""
msgid "Arabic"
msgstr "Árabe"

#: contentcuration/constants/channel_history.py:9
#, fuzzy
#| msgid "Created"
msgid "Creation"
msgstr "Creado"

#: contentcuration/constants/channel_history.py:10
#, fuzzy
#| msgid "Public Domain"
msgid "Publication"
msgstr "Dominio Público"

#: contentcuration/constants/channel_history.py:11
#, fuzzy
#| msgid "Description"
msgid "Deletion"
msgstr "Descripción"

#: contentcuration/constants/channel_history.py:12
msgid "Deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:8
msgid "User soft deletion"
msgstr ""

#: contentcuration/constants/user_history.py:9
msgid "User soft deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:10
msgid "User related data hard deletion"
msgstr ""

#: contentcuration/middleware/db_readonly.py:24
msgid "The site is currently in read-only mode. Please try again later."
msgstr ""
Expand Down Expand Up @@ -1007,6 +973,21 @@ msgstr "API endpoint {} no disponible"
msgid "No channel matching {} found"
msgstr "Ningún canal con {} encontrado"

#, fuzzy
#~| msgid "Created"
#~ msgid "Creation"
#~ msgstr "Creado"

#, fuzzy
#~| msgid "Public Domain"
#~ msgid "Publication"
#~ msgstr "Dominio Público"

#, fuzzy
#~| msgid "Description"
#~ msgid "Deletion"
#~ msgstr "Descripción"

#~ msgid "Date/Time Created"
#~ msgstr "Fecha/Hora creación"

Expand Down
51 changes: 16 additions & 35 deletions contentcuration/locale/fr_FR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kolibri-studio\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-08 23:08+0000\n"
"POT-Creation-Date: 2023-05-10 14:17+0000\n"
"PO-Revision-Date: 2022-10-17 20:08\n"
"Last-Translator: \n"
"Language-Team: French\n"
Expand All @@ -22,40 +22,6 @@ msgstr ""
msgid "Arabic"
msgstr "Arabe"

#: contentcuration/constants/channel_history.py:9
#, fuzzy
#| msgid "Created"
msgid "Creation"
msgstr "Créée"

#: contentcuration/constants/channel_history.py:10
#, fuzzy
#| msgid "Public Domain"
msgid "Publication"
msgstr "Domaine public"

#: contentcuration/constants/channel_history.py:11
#, fuzzy
#| msgid "Description"
msgid "Deletion"
msgstr "Description"

#: contentcuration/constants/channel_history.py:12
msgid "Deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:8
msgid "User soft deletion"
msgstr ""

#: contentcuration/constants/user_history.py:9
msgid "User soft deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:10
msgid "User related data hard deletion"
msgstr ""

#: contentcuration/middleware/db_readonly.py:24
msgid "The site is currently in read-only mode. Please try again later."
msgstr ""
Expand Down Expand Up @@ -1015,6 +981,21 @@ msgstr "Le point de terminaison {} de l'API n'est pas disponible"
msgid "No channel matching {} found"
msgstr "Aucune chaîne correspondant à {} trouvée"

#, fuzzy
#~| msgid "Created"
#~ msgid "Creation"
#~ msgstr "Créée"

#, fuzzy
#~| msgid "Public Domain"
#~ msgid "Publication"
#~ msgstr "Domaine public"

#, fuzzy
#~| msgid "Description"
#~ msgid "Deletion"
#~ msgstr "Description"

#~ msgid "Date/Time Created"
#~ msgstr "Date/heure de création"

Expand Down
30 changes: 1 addition & 29 deletions contentcuration/locale/hi_IN/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kolibri-studio\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-08 23:08+0000\n"
"POT-Creation-Date: 2023-05-10 14:17+0000\n"
"PO-Revision-Date: 2022-10-17 20:08\n"
"Last-Translator: \n"
"Language-Team: Hindi\n"
Expand All @@ -22,34 +22,6 @@ msgstr ""
msgid "Arabic"
msgstr ""

#: contentcuration/constants/channel_history.py:9
msgid "Creation"
msgstr ""

#: contentcuration/constants/channel_history.py:10
msgid "Publication"
msgstr ""

#: contentcuration/constants/channel_history.py:11
msgid "Deletion"
msgstr ""

#: contentcuration/constants/channel_history.py:12
msgid "Deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:8
msgid "User soft deletion"
msgstr ""

#: contentcuration/constants/user_history.py:9
msgid "User soft deletion recovery"
msgstr ""

#: contentcuration/constants/user_history.py:10
msgid "User related data hard deletion"
msgstr ""

#: contentcuration/middleware/db_readonly.py:24
msgid "The site is currently in read-only mode. Please try again later."
msgstr ""
Expand Down
Loading

0 comments on commit d58ca08

Please sign in to comment.