Skip to content

Commit

Permalink
Merge pull request #63 from DataManagementLab/ci-translations
Browse files Browse the repository at this point in the history
Add translation check to CI workflow
  • Loading branch information
bhaettasch authored Jul 15, 2021
2 parents dd15242 + 8a988c6 commit 6bfd597
Show file tree
Hide file tree
Showing 8 changed files with 541 additions and 502 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,20 @@ jobs:
run: |
sudo apt-get install texlive-full
sudo apt-get install poppler-utils
- name: Install other system Dependencies
run: |
sudo apt-get install gettext
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
- name: Run Check
run: |
python manage.py check
- name: Run Tests
run: |
python manage.py test
- name: Check translations
run: |
python manage.py makemessages -l de_DE --ignore venv
python utils/check_translations.py
214 changes: 110 additions & 104 deletions base/locale/de_DE/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: 2021-01-10 22:53+0100\n"
"POT-Creation-Date: 2021-07-15 11:01+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 @@ -17,215 +17,221 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: .\models\content.py:13 .\models\content.py:66 .\models\content.py:87
msgid "Category"
msgstr "Kategorie"

#: .\models\content.py:14
msgid "Categories"
msgstr "Kategorien"

#: .\models\content.py:17 .\models\content.py:30 .\models\content.py:86
#: .\models\content.py:116
#: base/models/content.py:35 base/models/content.py:81
#: base/models/content.py:143 base/models/content.py:228
#: base/models/content.py:305
msgid "Title"
msgstr "Titel"

#: .\models\content.py:18 .\models\content.py:57
#: base/models/content.py:36 base/models/content.py:152
msgid "Title Image"
msgstr "Titelbild"

#: .\models\content.py:26 .\models\content.py:67
msgid "Period"
msgstr "Zeitraum"
#: base/models/content.py:52 base/models/content.py:170
#: base/models/content.py:231
msgid "Category"
msgstr "Kategorie"

#: .\models\content.py:27
msgid "Periods"
msgstr "Zeiträume"
#: base/models/content.py:53
msgid "Categories"
msgstr "Kategorien"

#: .\models\content.py:31
#: base/models/content.py:82
msgid "start"
msgstr "Start"

#: .\models\content.py:32
#: base/models/content.py:83
msgid "end"
msgstr "Ende"

#: .\models\content.py:48 .\models\content.py:243 .\models\coursebook.py:14
msgid "Course"
msgstr "Kurs"
#: base/models/content.py:97 base/models/content.py:174
msgid "Period"
msgstr "Zeitraum"

#: .\models\content.py:49
msgid "Courses"
msgstr "Kurse"
#: base/models/content.py:98
msgid "Periods"
msgstr "Zeiträume"

#: .\models\content.py:53 .\models\content.py:141
#: base/models/content.py:146 base/models/content.py:375
msgid "Description"
msgstr "Beschreibung"

#: .\models\content.py:55 .\models\content.py:155 .\models\social.py:49
#: base/models/content.py:148 base/models/content.py:395
#: base/models/social.py:100
msgid "Creation Date"
msgstr "Erstellt am"

#: .\models\content.py:58 .\models\content.py:84
#: base/models/content.py:155 base/models/content.py:246
msgid "Topics"
msgstr "Themen"

#: .\models\content.py:61
#: base/models/content.py:162
msgid "Owners"
msgstr "Besitzer*in"

#: .\models\content.py:62
#: base/models/content.py:163
msgid "Edit Restriction"
msgstr "Eingeschränkes Bearbeiten"

#: .\models\content.py:63
#: base/models/content.py:164
msgid "This course is restricted and can only be edited by the owners"
msgstr ""
"Dieser Kurs ist schreibgeschützt und kann nur von den Besitzer*innen bearbeitet "
"werden"
"Dieser Kurs ist schreibgeschützt und kann nur von den Besitzer*innen "
"bearbeitet werden"

#: .\models\content.py:83 .\models\content.py:138 .\models\content.py:245
msgid "Topic"
msgstr "Thema"
#: base/models/content.py:192 base/models/content.py:554
#: base/models/coursebook.py:29
msgid "Course"
msgstr "Kurs"

#: .\models\content.py:113
msgid "Tag"
msgstr "Tag"
#: base/models/content.py:193
msgid "Courses"
msgstr "Kurse"

#: .\models\content.py:114 .\models\content.py:146
msgid "Tags"
msgstr "Tags"
#: base/models/content.py:245 base/models/content.py:368
#: base/models/content.py:559
msgid "Topic"
msgstr "Thema"

#: .\models\content.py:117
#: base/models/content.py:307
msgid "Symbol"
msgstr "Symbol"

#: .\models\content.py:117
#: base/models/content.py:308
msgid "Symbol to show with this tag (optional)"
msgstr "Symbol, das zusammen mit diesem Tag angezeigt wird (optional)"

#: .\models\content.py:135 .\models\coursebook.py:15
msgid "Content"
msgstr "Inhalt"
#: base/models/content.py:321
msgid "Tag"
msgstr "Tag"

#: .\models\content.py:136
msgid "Contents"
msgstr "Inhalte"
#: base/models/content.py:322 base/models/content.py:384
msgid "Tags"
msgstr "Tags"

#: .\models\content.py:139 .\models\social.py:45
#: base/models/content.py:371 base/models/social.py:94
msgid "Author"
msgstr "Autor*in"

#: .\models\content.py:143
#: base/models/content.py:378
msgid "Type"
msgstr "Typ"

#: .\models\content.py:145
#: base/models/content.py:380
msgid "Language"
msgstr "Sprache"

#: .\models\content.py:148
#: base/models/content.py:388
msgid "Set to Read-Only"
msgstr "Auf Schreibgeschützt stellen"

#: .\models\content.py:148
#: base/models/content.py:389
msgid "This content shouldn't be edited"
msgstr "Dieser Inhalt sollte nicht verändert werden"

#: .\models\content.py:150
#: base/models/content.py:391
msgid "Show in public courses"
msgstr "In öffentlichen Kursen zugänglich machen"

#: .\models\content.py:151
#: base/models/content.py:392
msgid ""
"This content will be displayed in courses that don't require registration"
msgstr ""
"Dieser Inhalt wird in Kursen angezeigt werden, die keine Registrierung erfordern"
"Dieser Inhalt wird in Kursen angezeigt werden, die keine Registrierung "
"erfordern"

#: .\models\content.py:153
msgid "Attachment"
msgstr "Anhang"

#: .\models\content.py:156
#: base/models/content.py:398
msgid "Rendered preview"
msgstr "Vorschau"

#: .\models\content.py:240
#: base/models/content.py:415 base/models/coursebook.py:32
msgid "Content"
msgstr "Inhalt"

#: base/models/content.py:416
msgid "Contents"
msgstr "Inhalte"

#: base/models/content.py:426
#, python-format
msgid "%(title)s for %(topic)s by %(author)s"
msgstr "%(title)s für %(topic)s von %(author)s"

#: base/models/content.py:556
msgid "Index"
msgstr "Index"

#: base/models/content.py:572
msgid "Course Structure Entry"
msgstr "Eintrag im Kursverzeichnis"

#: .\models\content.py:241
#: base/models/content.py:573
msgid "Course Structure Entries"
msgstr "Einträge im Kursverzeichnis"

#: .\models\content.py:244
msgid "Index"
msgstr "Index"
#: base/models/coursebook.py:25
msgid "User"
msgstr "Benutzer*in"

#: .\models\coursebook.py:10
#: base/models/coursebook.py:45
msgid "Favorite"
msgstr "Favorit"

#: .\models\coursebook.py:11
#: base/models/coursebook.py:46
msgid "Favorites"
msgstr "Favoriten"

#: .\models\coursebook.py:13
msgid "User"
msgstr "Benutzer*in"
#: base/models/profile.py:39
msgid "Profile"
msgstr "Profil"

#: base/models/profile.py:40
msgid "Profiles"
msgstr "Profile"

#: .\models\profile.py:11
#: base/models/profile.py:43
msgid "Biography"
msgstr "Biografie"

#: .\models\profile.py:12
#: base/models/profile.py:44
msgid "Profile picture"
msgstr "Profilbild"

#: .\models\profile.py:13
#: base/models/profile.py:45
msgid "Stared courses:"
msgstr "Favorisierte Kurse"

#: .\models\profile.py:37
msgid "Profile"
msgstr "Profil"
#: base/models/social.py:36
msgid "Rated content"
msgstr "Bewerteter Inhalt"

#: .\models\profile.py:38
msgid "Profiles"
msgstr "Profile"
#: base/models/social.py:39
msgid "Rating user"
msgstr "Bewertende Benutzer*in"

#: .\models\social.py:13 .\models\social.py:26
#: base/models/social.py:42 base/models/social.py:56
msgid "Rating"
msgstr "Bewertung"

#: .\models\social.py:14
#: base/models/social.py:57
msgid "Ratings"
msgstr "Bewertungen"

#: .\models\social.py:24
msgid "Rated content"
msgstr "Bewerteter Inhalt"
#: base/models/social.py:90
msgid "Comment for"
msgstr "Kommentar für"

#: .\models\social.py:25
msgid "Raiting user"
msgstr "Bewertende Benutzer*in"
#: base/models/social.py:98
msgid "Comment Text"
msgstr "Kommentartext"

#: .\models\social.py:41
#: base/models/social.py:117
msgid "Comment"
msgstr "Kommentar"

#: .\models\social.py:42
#: base/models/social.py:118
msgid "Comments"
msgstr "Kommentare"

#: .\models\social.py:44
msgid "Comment for"
msgstr "Kommentar für"

#: .\models\social.py:47
msgid "Comment Text"
msgstr "Kommentartext"

#: .\models\content.py:434
msgid "%(title)s for %(topic)s by %(author)s"
msgstr "%(title)s für %(topic)s von %(author)s"
#~ msgid "Attachment"
#~ msgstr "Anhang"
6 changes: 3 additions & 3 deletions collab_coursebook/locale/de_DE/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: 2021-01-10 22:55+0100\n"
"POT-Creation-Date: 2021-07-15 11:01+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 @@ -17,10 +17,10 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: .\settings.py:132
#: collab_coursebook/settings.py:136
msgid "German"
msgstr "Deutsch"

#: .\settings.py:133
#: collab_coursebook/settings.py:137
msgid "English"
msgstr "Englisch"
10 changes: 0 additions & 10 deletions collab_coursebook/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,6 @@
('en', _('English')),
]

# For Django to find the translation file
# https://docs.djangoproject.com/zh-hans/3.0/topics/i18n/translation/

LOCALE_PATHS = [
'/base/locale',
'/collab_coursebook/locale',
'/content/locale',
'/frontend/locale'
]

TIME_ZONE = 'UTC'

USE_I18N = True
Expand Down
Loading

0 comments on commit 6bfd597

Please sign in to comment.