From b94e471ae4d4e7c8e8100246fbf12135afbf1513 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Tue, 25 Jan 2022 11:42:13 +0100 Subject: [PATCH] translation working in principle with dev settings --- eva/settings_development.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eva/settings_development.py b/eva/settings_development.py index 09a15d2..33081c0 100644 --- a/eva/settings_development.py +++ b/eva/settings_development.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib import Path +import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -120,7 +121,7 @@ AUTH_PASSWORD_VALIDATORS = [ # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ -# LANGUAGE_CODE = 'de' +LANGUAGE_CODE = 'de' TIME_ZONE = 'UTC' @@ -130,6 +131,7 @@ USE_L10N = True USE_TZ = True +LOCALE_PATHS = ( os.path.join(BASE_DIR, 'locale'), ) # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/