Translations
* adds/updates translations
This commit is contained in:
parent
85759a636a
commit
7631adc88f
@ -8,6 +8,7 @@ Created on: 16.11.20
|
|||||||
from django.http import HttpRequest
|
from django.http import HttpRequest
|
||||||
|
|
||||||
from konova.sub_settings.context_settings import BASE_TITLE, HELP_LINK, BASE_FRONTEND_TITLE
|
from konova.sub_settings.context_settings import BASE_TITLE, HELP_LINK, BASE_FRONTEND_TITLE
|
||||||
|
from konova.sub_settings.django_settings import LANGUAGE_CODE
|
||||||
|
|
||||||
|
|
||||||
class BaseContext:
|
class BaseContext:
|
||||||
@ -17,7 +18,7 @@ class BaseContext:
|
|||||||
context = {
|
context = {
|
||||||
"base_title": BASE_TITLE,
|
"base_title": BASE_TITLE,
|
||||||
"base_frontend_title": BASE_FRONTEND_TITLE,
|
"base_frontend_title": BASE_FRONTEND_TITLE,
|
||||||
"language": "en",
|
"language": LANGUAGE_CODE,
|
||||||
"user": None,
|
"user": None,
|
||||||
"current_role": None,
|
"current_role": None,
|
||||||
"help_link": HELP_LINK,
|
"help_link": HELP_LINK,
|
||||||
|
@ -10,7 +10,7 @@ For the full list of settings and their values, see
|
|||||||
https://docs.djangoproject.com/en/3.1/ref/settings/
|
https://docs.djangoproject.com/en/3.1/ref/settings/
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = os.path.dirname(
|
BASE_DIR = os.path.dirname(
|
||||||
@ -78,12 +78,12 @@ if DEBUG:
|
|||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'django.middleware.security.SecurityMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
|
"django.middleware.locale.LocaleMiddleware",
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
"django.middleware.locale.LocaleMiddleware",
|
|
||||||
]
|
]
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
MIDDLEWARE += [
|
MIDDLEWARE += [
|
||||||
@ -149,6 +149,10 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||||||
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
||||||
|
|
||||||
LANGUAGE_CODE = 'de'
|
LANGUAGE_CODE = 'de'
|
||||||
|
LANGUAGES = [
|
||||||
|
('de', _('German')),
|
||||||
|
('en', _('English')),
|
||||||
|
]
|
||||||
|
|
||||||
USE_THOUSAND_SEPARATOR = True
|
USE_THOUSAND_SEPARATOR = True
|
||||||
|
|
||||||
|
Binary file not shown.
@ -2429,71 +2429,71 @@ msgstr ""
|
|||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
||||||
msgid "Monday"
|
msgid "Monday"
|
||||||
msgstr ""
|
msgstr "Montag"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
||||||
msgid "Tuesday"
|
msgid "Tuesday"
|
||||||
msgstr ""
|
msgstr "Dienstag"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
||||||
msgid "Wednesday"
|
msgid "Wednesday"
|
||||||
msgstr ""
|
msgstr "Mittwoch"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
||||||
msgid "Thursday"
|
msgid "Thursday"
|
||||||
msgstr ""
|
msgstr "Donnerstag"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:6
|
||||||
msgid "Friday"
|
msgid "Friday"
|
||||||
msgstr ""
|
msgstr "Freitag"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:7
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:7
|
||||||
msgid "Saturday"
|
msgid "Saturday"
|
||||||
msgstr ""
|
msgstr "Samstag"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:7
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:7
|
||||||
msgid "Sunday"
|
msgid "Sunday"
|
||||||
msgstr ""
|
msgstr "Sonntag"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
||||||
msgid "Mon"
|
msgid "Mon"
|
||||||
msgstr ""
|
msgstr "Mo"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
||||||
msgid "Tue"
|
msgid "Tue"
|
||||||
msgstr ""
|
msgstr "Di"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
||||||
msgid "Wed"
|
msgid "Wed"
|
||||||
msgstr ""
|
msgstr "Mi"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
||||||
msgid "Thu"
|
msgid "Thu"
|
||||||
msgstr ""
|
msgstr "Do"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:10
|
||||||
msgid "Fri"
|
msgid "Fri"
|
||||||
msgstr ""
|
msgstr "Fr"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:11
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:11
|
||||||
msgid "Sat"
|
msgid "Sat"
|
||||||
msgstr ""
|
msgstr "Sa"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:11
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:11
|
||||||
msgid "Sun"
|
msgid "Sun"
|
||||||
msgstr ""
|
msgstr "So"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
||||||
msgid "January"
|
msgid "January"
|
||||||
msgstr ""
|
msgstr "Januar"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
||||||
msgid "February"
|
msgid "February"
|
||||||
msgstr ""
|
msgstr "Februar"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
||||||
msgid "March"
|
msgid "March"
|
||||||
msgstr ""
|
msgstr "März"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
||||||
msgid "April"
|
msgid "April"
|
||||||
@ -2501,15 +2501,15 @@ msgstr ""
|
|||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
||||||
msgid "May"
|
msgid "May"
|
||||||
msgstr ""
|
msgstr "Mai"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:14
|
||||||
msgid "June"
|
msgid "June"
|
||||||
msgstr ""
|
msgstr "Juni"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:15
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:15
|
||||||
msgid "July"
|
msgid "July"
|
||||||
msgstr ""
|
msgstr "Juli"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:15
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:15
|
||||||
msgid "August"
|
msgid "August"
|
||||||
@ -2521,7 +2521,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:15
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:15
|
||||||
msgid "October"
|
msgid "October"
|
||||||
msgstr ""
|
msgstr "Oktober"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:15
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:15
|
||||||
msgid "November"
|
msgid "November"
|
||||||
@ -2529,7 +2529,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:16
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:16
|
||||||
msgid "December"
|
msgid "December"
|
||||||
msgstr ""
|
msgstr "Dezember"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
||||||
msgid "jan"
|
msgid "jan"
|
||||||
@ -2541,7 +2541,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
||||||
msgid "mar"
|
msgid "mar"
|
||||||
msgstr ""
|
msgstr "mär"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
||||||
msgid "apr"
|
msgid "apr"
|
||||||
@ -2549,7 +2549,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
||||||
msgid "may"
|
msgid "may"
|
||||||
msgstr ""
|
msgstr "mai"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:19
|
||||||
msgid "jun"
|
msgid "jun"
|
||||||
@ -2569,7 +2569,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:20
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:20
|
||||||
msgid "oct"
|
msgid "oct"
|
||||||
msgstr ""
|
msgstr "okt"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:20
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:20
|
||||||
msgid "nov"
|
msgid "nov"
|
||||||
@ -2577,7 +2577,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:20
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:20
|
||||||
msgid "dec"
|
msgid "dec"
|
||||||
msgstr ""
|
msgstr "dez"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:23
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:23
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
@ -2592,7 +2592,7 @@ msgstr ""
|
|||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:25
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:25
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
msgid "March"
|
msgid "March"
|
||||||
msgstr ""
|
msgstr "Mär"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:26
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:26
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
@ -2602,17 +2602,17 @@ msgstr ""
|
|||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:27
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:27
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
msgid "May"
|
msgid "May"
|
||||||
msgstr ""
|
msgstr "Mai"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:28
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:28
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
msgid "June"
|
msgid "June"
|
||||||
msgstr ""
|
msgstr "Juni"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:29
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:29
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
msgid "July"
|
msgid "July"
|
||||||
msgstr ""
|
msgstr "Juli"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:30
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:30
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
@ -2627,7 +2627,7 @@ msgstr ""
|
|||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:32
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:32
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
msgid "Oct."
|
msgid "Oct."
|
||||||
msgstr ""
|
msgstr "Okt."
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:33
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:33
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
@ -2637,22 +2637,22 @@ msgstr ""
|
|||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:34
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:34
|
||||||
msgctxt "abbrev. month"
|
msgctxt "abbrev. month"
|
||||||
msgid "Dec."
|
msgid "Dec."
|
||||||
msgstr ""
|
msgstr "Dez."
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:37
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:37
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
msgid "January"
|
msgid "January"
|
||||||
msgstr ""
|
msgstr "Januar"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:38
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:38
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
msgid "February"
|
msgid "February"
|
||||||
msgstr ""
|
msgstr "Februar"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:39
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:39
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
msgid "March"
|
msgid "March"
|
||||||
msgstr ""
|
msgstr "März"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:40
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:40
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
@ -2662,17 +2662,17 @@ msgstr ""
|
|||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:41
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:41
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
msgid "May"
|
msgid "May"
|
||||||
msgstr ""
|
msgstr "Mai"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:42
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:42
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
msgid "June"
|
msgid "June"
|
||||||
msgstr ""
|
msgstr "Juni"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:43
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:43
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
msgid "July"
|
msgid "July"
|
||||||
msgstr ""
|
msgstr "Juli"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:44
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:44
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
@ -2687,7 +2687,7 @@ msgstr ""
|
|||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:46
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:46
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
msgid "October"
|
msgid "October"
|
||||||
msgstr ""
|
msgstr "Oktober"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:47
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:47
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
@ -2697,7 +2697,7 @@ msgstr ""
|
|||||||
#: venv/lib/python3.7/site-packages/django/utils/dates.py:48
|
#: venv/lib/python3.7/site-packages/django/utils/dates.py:48
|
||||||
msgctxt "alt. month"
|
msgctxt "alt. month"
|
||||||
msgid "December"
|
msgid "December"
|
||||||
msgstr ""
|
msgstr "Dezember"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/ipv6.py:8
|
#: venv/lib/python3.7/site-packages/django/utils/ipv6.py:8
|
||||||
msgid "This is not a valid IPv6 address."
|
msgid "This is not a valid IPv6 address."
|
||||||
@ -2711,7 +2711,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/text.py:236
|
#: venv/lib/python3.7/site-packages/django/utils/text.py:236
|
||||||
msgid "or"
|
msgid "or"
|
||||||
msgstr ""
|
msgstr "oder"
|
||||||
|
|
||||||
#. Translators: This string is used as a separator between list elements
|
#. Translators: This string is used as a separator between list elements
|
||||||
#: venv/lib/python3.7/site-packages/django/utils/text.py:255
|
#: venv/lib/python3.7/site-packages/django/utils/text.py:255
|
||||||
|
Loading…
Reference in New Issue
Block a user