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