Merge branch 'master' into feature/exercise-crowdsourcing

This commit is contained in:
Roland Geider
2022-09-07 19:21:34 +02:00
10 changed files with 99 additions and 117 deletions

View File

@@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3.0.6
uses: actions/cache@v3.0.8
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}

View File

@@ -59,10 +59,14 @@ SITE_URL = env.str('SITE_URL', 'http://localhost:8000')
# Path to uploaded files
# Absolute filesystem path to the directory that will hold user-uploaded files.
MEDIA_ROOT = env.str("DJANGO_MEDIA_ROOT", '/home/wger/media')
MEDIA_URL = '/media/'
STATIC_ROOT = env.str("DJANGO_STATIC_ROOT", '/home/wger/static')
# If you change these, adjust nginx alias definitions as well
MEDIA_URL = env.str('MEDIA_URL', '/media/')
STATIC_URL = env.str('STATIC_URL', '/static/')
LOGIN_REDIRECT_URL = env.str('LOGIN_REDIRECT_URL', '/')
# Allow all hosts to access the application. Change if used in production.
ALLOWED_HOSTS = '*'

View File

@@ -22,7 +22,7 @@
"d3": "^7.6.1",
"datatables": "^1.10.18",
"devbridge-autocomplete": "^1.4.11",
"jquery": "^3.6.0",
"jquery": "^3.6.1",
"masonry-layout": "^4.2.2",
"metrics-graphics": "^2.15.6",
"popper.js": "^1.16.1",

View File

@@ -15,7 +15,7 @@ pymongo==4.2.0
pymongo==3.12.1
# Development packages
coverage==6.4.2
django-debug-toolbar==3.5.0
coverage==6.4.4
django-debug-toolbar==3.6.0
tblib==1.7.0
isort==5.10.1

View File

@@ -12,15 +12,15 @@ msgstr ""
"Project-Id-Version: wger Workout Manager\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-14 12:01+0200\n"
"PO-Revision-Date: 2022-02-25 20:58+0000\n"
"Last-Translator: Roland Geider <roland@geider.net>\n"
"PO-Revision-Date: 2022-08-31 10:16+0000\n"
"Last-Translator: KneeClass03 <nisipa@web.de>\n"
"Language-Team: German <https://hosted.weblate.org/projects/wger/web/de/>\n"
"Language: de\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"
"X-Generator: Weblate 4.11.1-dev\n"
"X-Generator: Weblate 4.14.1-dev\n"
#: config/models/gym_config.py:46 gym/templates/gym/list.html:50
msgid "Default gym"
@@ -113,8 +113,8 @@ msgstr ""
"Benutze die Konfiguration um auszuwählen, in welchen Sprachen die \n"
"Übungen und Zutaten für die gerade ausgewählte Sprache dargestellt werden "
"sollen. (z.B. \n"
"können die Übungen in Sprachen A, B und C, die Zutaten nur in A angezeigt "
"werden)."
"sollten die Übungen in Sprachen A, B und C, die Zutaten nur \n"
"in A angezeigt werden)."
#: config/templates/language/view.html:44 gym/templates/contract/list.html:36
msgid "Show"
@@ -404,10 +404,11 @@ msgid ""
"by the US Department of Agriculture. It is extremely complete, with around\n"
"7000 entries, but can be somewhat overwhelming and make the search difficult."
msgstr ""
"Auswählen, um auch Zutaten auf englisch anzuzeigen beim Erstellen eines "
"Ernährungsplanes. Diese Zutaten stammen aus einer Liste des US-"
"amerikanischen Landwirtschaftsministeriums. Diese hat etwa 7000 Einträge und "
"ist extrem vollständig, kann aber die Suche etwas unübersichtlich machen."
"Auswählen, um auch Zutaten auf Englisch anzuzeigen beim Erstellen \n"
"eines Ernährungsplanes. Diese Zutaten stammen aus einer Liste \n"
"des US-amerikanischen Landwirtschaftsministeriums. Diese hat etwa 7000 "
"Einträge und ist extrem vollständig, \n"
"kann aber die Suche etwas unübersichtlich machen."
#: core/models/profile.py:134
msgid "Activate workout reminders"
@@ -1157,10 +1158,12 @@ msgid ""
"anything). You must pass this information in the header in the format shown "
"below."
msgstr ""
"Erstelle ein API-Schlüssel wenn du mit wger über die <a href=\"%(url)s\" rel="
"\"nofollow\">REST API</a> interagieren willst (für öffentliche Ressourcen "
"wie die Übungen oder Zutaten brauchst du nichts mitzusenden). Du musst "
"diesen Schlüssel zusammen im Request-Header mitgeben."
"Erstelle ein API-Schlüssel wenn du mit wger über \n"
"die <a href=\"%(url)s\" rel=\"nofollow\">REST API</a> interagieren willst ("
"für \n"
"öffentliche Ressourcen wie die Übungen oder Zutaten brauchst du nichts "
"mitzusenden). \n"
"Du musst diesen Schlüssel zusammen im Request-Header mitgeben."
#: core/templates/user/api_key.html:15
msgid "For security reasons, you should only access the API via HTTPS."
@@ -1204,9 +1207,10 @@ msgid ""
"logs, etc.)\n"
"and can't be undone. "
msgstr ""
"Diese Aktion löscht das Benutzerkonto „%(username)s“.\n"
"Diese Aktion löscht das Benutzerkonto „%(username)s“. \n"
"Es werden unwiderruflich alle damit zugeordnete Daten gelöscht (Trainings, "
"Protokolle, usw.), die Aktion kann nicht rückgängig gemacht werden. "
"Protokolle, usw.), \n"
"die Aktion kann nicht rückgängig gemacht werden. "
#: core/templates/user/login.html:16
msgid "No account?"
@@ -1487,9 +1491,8 @@ msgid ""
"do. Feel free to edit or delete them!"
msgstr ""
"Wir haben Beispieleinträge erstellt für: Trainings-, Ernährungs- und "
"Zeitpläne sowie Gewichtseinträge für Übungen und Körpergewicht. Somit\n"
"kannst du besser\n"
" sehen was diese Seite machen kann. Du kannst diese\n"
"Zeitpläne sowie Gewichtseinträge für Übungen und Körpergewicht. Somit kannst "
"du besser sehen was diese Seite machen kann. Du kannst diese\n"
"Einträge natürlich bearbeiten oder löschen!"
#: core/views/misc.py:155
@@ -1602,10 +1605,8 @@ msgid "The user {0} submitted a new exercise \"{1}\"."
msgstr "Der Benutzer {0} hat die Übung „{1}“ eingereicht."
#: exercises/models/exercise_alias.py:35
#, fuzzy
#| msgid "Correcting an exercise"
msgid "Alias for an exercise"
msgstr "Eine Übung korrigieren"
msgstr "Alias für eine Übung"
#: exercises/models/image.py:59
msgid "Line"
@@ -1624,8 +1625,6 @@ msgid "Photo"
msgstr "Foto"
#: exercises/models/image.py:63
#, fuzzy
#| msgid "Others"
msgid "Other"
msgstr "Andere"
@@ -1649,12 +1648,12 @@ msgid ""
msgstr ""
"Kreuze die Checkbox an wenn du dieses Bild als das Hauptbild für diese Übung "
"setzten willst\n"
"(wird dann z.B. auf Übersichten angezeigt). Das erste Bild bekommt die "
"Flagge automatisch."
"(wird dann z.B. auf Übersichten angezeigt). Das erste Bild wird automatisch "
"als Hauptbild ausgewählt."
#: exercises/models/image.py:100
msgid "The art style of your image"
msgstr ""
msgstr "Der Stil deines Bildes"
#: exercises/models/image.py:185
msgid "New user submitted image"
@@ -1671,14 +1670,12 @@ msgid "In latin, e.g. \"Pectoralis major\""
msgstr "Auf latein, z.B. „Pectoralis major“"
#: exercises/models/muscle.py:47
#, fuzzy
#| msgid "exercise name"
msgid "Alternative name"
msgstr "Übung"
msgstr "Alternative Bezeichnung"
#: exercises/models/muscle.py:48
msgid "A more basic name for the muscle"
msgstr ""
msgstr "Einfacher Name füür den Muskel"
#: exercises/models/video.py:41
msgid "Maximum file size is 100MB."
@@ -1689,16 +1686,12 @@ msgid "File type is not supported"
msgstr "Dateityp wird nicht unterstützt"
#: exercises/models/video.py:57
#, fuzzy
#| msgid "%(birthdate)s is not a valid birthdate"
msgid "File is not a valid video"
msgstr "%(birthdate)s ist kein gültiges Geburtsdatum"
msgstr "Die Datei ist kein gültiges Video"
#: exercises/models/video.py:88
#, fuzzy
#| msgid "Main picture"
msgid "Main video"
msgstr "Hauptbild"
msgstr "Hauptvideo"
#: exercises/models/video.py:94
msgid "Video"
@@ -1717,16 +1710,12 @@ msgid "Width"
msgstr "Breite"
#: exercises/models/video.py:124
#, fuzzy
#| msgid "Weight"
msgid "Height"
msgstr "Gewicht"
msgstr "Höhe"
#: exercises/models/video.py:131
#, fuzzy
#| msgid "Code"
msgid "Codec"
msgstr "Quellcode"
msgstr "Codec"
#: exercises/models/video.py:139
msgid "Codec, long name"
@@ -1925,10 +1914,8 @@ msgid "Videos"
msgstr "Videos"
#: exercises/templates/exercise/view.html:187 exercises/views/videos.py:94
#, fuzzy
#| msgid "Add new image"
msgid "Add new video"
msgstr "Neues Bild hinzufügen"
msgstr "Neues Video hinzufügen"
#: exercises/templates/exercise/view.html:197
msgid "Images pending review"
@@ -2427,25 +2414,23 @@ msgstr "Armbeuger"
#: i18n.tpl:21
msgid "Hamstrings"
msgstr ""
msgstr "Kniebeuger"
#: i18n.tpl:22
msgid "Lower back"
msgstr ""
msgstr "Unterer Rücken"
#: i18n.tpl:24
#, fuzzy
#| msgid "Minutes"
msgid "Glutes"
msgstr "Minuten"
msgstr "Gesäßmuskeln"
#: i18n.tpl:25
msgid "Lats"
msgstr ""
msgstr "Latissimus"
#: i18n.tpl:27
msgid "Quads"
msgstr ""
msgstr "Quadrizeps"
#: i18n.tpl:29
#, fuzzy

View File

@@ -10,15 +10,15 @@ msgstr ""
"Project-Id-Version: wger Workout Manager\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-14 12:01+0200\n"
"PO-Revision-Date: 2021-05-09 09:11+0000\n"
"Last-Translator: J. Lavoie <j.lavoie@net-c.ca>\n"
"PO-Revision-Date: 2022-08-31 10:16+0000\n"
"Last-Translator: Juuso Haapanen <juuso@haapanen.biz>\n"
"Language-Team: Finnish <https://hosted.weblate.org/projects/wger/web/fi/>\n"
"Language: fi\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"
"X-Generator: Weblate 4.7-dev\n"
"X-Generator: Weblate 4.14.1-dev\n"
#: config/models/gym_config.py:46 gym/templates/gym/list.html:50
msgid "Default gym"
@@ -258,18 +258,18 @@ msgstr "Henkilökohtaiset tiedot"
#: core/forms.py:110
msgid "Workout reminders"
msgstr ""
msgstr "Harjoitusmuistutukset"
#: core/forms.py:117
msgid "Other settings"
msgstr ""
msgstr "Muut asetukset"
#: core/forms.py:125 core/views/user.py:599 core/views/user.py:614
#: core/views/user.py:626 gym/forms.py:72 manager/templates/log/add.html:65
#: manager/templates/set/add.html:69 manager/views/workout.py:221
#: utils/generic_views.py:142
msgid "Save"
msgstr ""
msgstr "Tallenna"
#: core/forms.py:132
msgid "Used for password resets and, optionally, email reminders."
@@ -298,14 +298,14 @@ msgstr "Väärä salasana"
#: core/forms.py:212 core/forms.py:278
msgid "The form is secured with reCAPTCHA"
msgstr ""
msgstr "Lomake on suojattu reCAPTCHA:lla"
#: core/forms.py:226 core/forms.py:245 core/templates/navigation.html:188
#: core/templates/navigation.html:193 core/templates/template.html:149
#: core/templates/user/login.html:20 core/views/user.py:293
#: software/templates/features.html:38
msgid "Register"
msgstr ""
msgstr "Rekisteröidy"
#: core/forms.py:256
msgid "Contact"
@@ -548,31 +548,33 @@ msgstr "Tuntien summa tarvitsee olla 24"
#: nutrition/templates/ingredient/pending.html:15
#: nutrition/templates/ingredient/view.html:185
msgid "Name"
msgstr ""
msgstr "Nimi"
#: core/templates/403.html:4
msgid "Forbidden!"
msgstr "Kielletty!"
#: core/templates/403.html:7
#, fuzzy
msgid "Something happened that is not allowed."
msgstr ""
msgstr "Jotakin kiellettyä tapahtui"
#: core/templates/404.html:4
msgid "Page not found"
msgstr ""
msgstr "Sivua ei löydy"
#: core/templates/404.html:7
#, fuzzy
msgid "The page you requested does not exist."
msgstr ""
msgstr "Hakemaasi sivua ei ole olemassa."
#: core/templates/500.html:4 core/templates/template_no_context.html:36
msgid "An error occurred"
msgstr ""
msgstr "Tapahtui virhe"
#: core/templates/500.html:7
msgid "Something happened that caused an error."
msgstr ""
msgstr "Tapahtui jotakin, joka aiheutti virheen."
#: core/templates/base.html:12 core/templates/base_wide.html:10
#, python-format
@@ -590,11 +592,12 @@ msgstr ""
#: core/templates/base.html:42 core/templates/base_wide.html:40
msgid "Share"
msgstr ""
msgstr "Jaa"
#: core/templates/delete.html:15
#, fuzzy
msgid "Are you sure you want to delete this? This action cannot be undone."
msgstr ""
msgstr "Oletko varma, että haluat poistaa tämän? Toimintoa ei voi perua."
#: core/templates/index.html:4
msgid "Dashboard"

View File

@@ -22,15 +22,15 @@ msgstr ""
"Project-Id-Version: wger Workout Manager\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-14 12:01+0200\n"
"PO-Revision-Date: 2021-11-07 16:51+0000\n"
"Last-Translator: J. Lavoie <j.lavoie@net-c.ca>\n"
"PO-Revision-Date: 2022-08-24 21:17+0000\n"
"Last-Translator: MrSniikyz <babygeek83bis@gmail.com>\n"
"Language-Team: French <https://hosted.weblate.org/projects/wger/web/fr/>\n"
"Language: fr\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"
"X-Generator: Weblate 4.9-dev\n"
"X-Generator: Weblate 4.14-dev\n"
#: config/models/gym_config.py:46 gym/templates/gym/list.html:50
msgid "Default gym"
@@ -1616,18 +1616,16 @@ msgid "The user {0} submitted a new exercise \"{1}\"."
msgstr "L'utilisateur {0} a proposé un nouvel exercice « {1} »."
#: exercises/models/exercise_alias.py:35
#, fuzzy
#| msgid "Correcting an exercise"
msgid "Alias for an exercise"
msgstr "Corriger un exercice"
msgstr "Alias pour un exercice"
#: exercises/models/image.py:59
msgid "Line"
msgstr ""
msgstr "Ligne"
#: exercises/models/image.py:60
msgid "3D"
msgstr ""
msgstr "3D"
#: exercises/models/image.py:61
msgid "Low-poly"
@@ -1635,11 +1633,9 @@ msgstr ""
#: exercises/models/image.py:62
msgid "Photo"
msgstr ""
msgstr "Photo"
#: exercises/models/image.py:63
#, fuzzy
#| msgid "Others"
msgid "Other"
msgstr "Autres"
@@ -1667,7 +1663,7 @@ msgstr ""
#: exercises/models/image.py:100
msgid "The art style of your image"
msgstr ""
msgstr "Le style d'art de votre image"
#: exercises/models/image.py:185
msgid "New user submitted image"
@@ -1684,42 +1680,36 @@ msgid "In latin, e.g. \"Pectoralis major\""
msgstr "En latin, par ex. « Pectoralis major »"
#: exercises/models/muscle.py:47
#, fuzzy
#| msgid "exercise name"
msgid "Alternative name"
msgstr "nom de l'exercice"
msgstr "Nom alternatif"
#: exercises/models/muscle.py:48
msgid "A more basic name for the muscle"
msgstr ""
msgstr "Un nom plus basique pour le muscle"
#: exercises/models/video.py:41
msgid "Maximum file size is 100MB."
msgstr ""
msgstr "La taille maximum du fichier est 100MB."
#: exercises/models/video.py:44 exercises/models/video.py:48
msgid "File type is not supported"
msgstr ""
msgstr "Le type de fichier n'est pas supporté"
#: exercises/models/video.py:57
#, fuzzy
#| msgid "%(birthdate)s is not a valid birthdate"
msgid "File is not a valid video"
msgstr "%(birthdate)s n’est pas une date de naissance valide"
msgstr "Le fichier n'est pas une vidéo valide"
#: exercises/models/video.py:88
#, fuzzy
#| msgid "Main picture"
msgid "Main video"
msgstr "Image principale"
msgstr "Vidéo principale"
#: exercises/models/video.py:94
msgid "Video"
msgstr ""
msgstr "Vidéo"
#: exercises/models/video.py:101
msgid "Size"
msgstr ""
msgstr "Taille"
#: exercises/models/video.py:108 manager/models/schedule_step.py:56
msgid "Duration"
@@ -1727,7 +1717,7 @@ msgstr "Durée"
#: exercises/models/video.py:117
msgid "Width"
msgstr ""
msgstr "Largeur"
#: exercises/models/video.py:124
#, fuzzy
@@ -2480,11 +2470,11 @@ msgstr "kilomètres"
#: i18n.tpl:31
msgid "Miles"
msgstr "miles"
msgstr "Miles"
#: i18n.tpl:32
msgid "Minutes"
msgstr "minutes"
msgstr "Minutes"
#: i18n.tpl:33 manager/forms.py:169 manager/models/log.py:71
#: manager/templates/set/add.html:53
@@ -2493,7 +2483,7 @@ msgstr "Répétitions"
#: i18n.tpl:34
msgid "Seconds"
msgstr "secondes"
msgstr "Secondes"
#: i18n.tpl:35
msgid "Until Failure"

View File

@@ -14,7 +14,7 @@ msgstr ""
"Project-Id-Version: wger Workout Manager\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-14 12:01+0200\n"
"PO-Revision-Date: 2022-07-08 10:17+0000\n"
"PO-Revision-Date: 2022-08-24 21:17+0000\n"
"Last-Translator: Dawid Panyło <wampir5000@o2.pl>\n"
"Language-Team: Polish <https://hosted.weblate.org/projects/wger/web/pl/>\n"
"Language: pl\n"
@@ -24,7 +24,7 @@ msgstr ""
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n"
"%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n"
"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
"X-Generator: Weblate 4.13.1-dev\n"
"X-Generator: Weblate 4.14-dev\n"
#: config/models/gym_config.py:46 gym/templates/gym/list.html:50
msgid "Default gym"
@@ -2405,7 +2405,7 @@ msgstr "Mięsień pleców"
#: i18n.tpl:24
msgid "Glutes"
msgstr "Minuty"
msgstr "Pośladki"
#: i18n.tpl:25
msgid "Lats"
@@ -2784,7 +2784,7 @@ msgid ""
"deactivate it, if it is a loop."
msgstr ""
"Aktualnie aktywny harmonogram pozostanie aktywny (i będzie\n"
"wyświetlany np. na kokpicie) dopóki nie dojdzie do ostatniego treningu, lub "
"wyświetlany np. na pulpicie) dopóki nie dojdzie do ostatniego treningu, lub "
"dopóki\n"
"nie zostanie zdezaktywowany - jeżeli jest zapętlony."

View File

@@ -15,8 +15,8 @@ msgstr ""
"Project-Id-Version: wger Workout Manager\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-14 12:01+0200\n"
"PO-Revision-Date: 2022-06-13 13:14+0000\n"
"Last-Translator: yzqzss <yzqzss@othing.xyz>\n"
"PO-Revision-Date: 2022-08-16 04:15+0000\n"
"Last-Translator: cld4h <hao@24601.xyz>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
"wger/web/zh_Hans/>\n"
"Language: zh_CN\n"
@@ -24,7 +24,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 4.13-dev\n"
"X-Generator: Weblate 4.14-dev\n"
#: config/models/gym_config.py:46 gym/templates/gym/list.html:50
msgid "Default gym"
@@ -787,7 +787,7 @@ msgstr "没有找到任何内容"
#: core/templates/template_features.html:117
#: core/templates/template_no_context.html:88
msgid "Imprint"
msgstr ""
msgstr "版本说明"
#: core/templates/misc/fragments/shariff_modal.html:6
msgid "Share this page"
@@ -1327,7 +1327,7 @@ msgstr "详细"
#: manager/helpers.py:89 manager/templates/schedule/view.html:101
#: nutrition/views/plan.py:289 nutrition/views/plan.py:297
msgid "Nr."
msgstr ""
msgstr "序号"
#: core/templates/user/overview.html:281 gym/models/contract.py:284
#: gym/models/gym.py:50 gym/templates/contract/view.html:75

View File

@@ -683,10 +683,10 @@ iconv-lite@0.6:
resolved "https://registry.yarnpkg.com/internmap/-/internmap-2.0.1.tgz#33d0fa016185397549fb1a14ea3dbe5a2949d1cd"
integrity sha512-Ujwccrj9FkGqjbY3iVoxD1VV+KdZZeENx0rphrtzmRXbFvkFO88L80BL/zeSIguX/7T+y8k04xqtgWgS5vxwxw==
jquery@>=1.7, jquery@^3.4.1, jquery@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.0.tgz#c72a09f15c1bdce142f49dbf1170bdf8adac2470"
integrity sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==
jquery@>=1.7, jquery@^3.4.1, jquery@^3.6.1:
version "3.6.1"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.1.tgz#fab0408f8b45fc19f956205773b62b292c147a16"
integrity sha512-opJeO4nCucVnsjiXOE+/PcCgYw9Gwpvs/a6B1LL/lQhwWwpbVEVYDZ1FokFr8PRc7ghYlrFPuyHuiiDNTQxmcw==
masonry-layout@^4.2.2:
version "4.2.2"