From a91958bfe13cc065b1fe2e6c5494181de5f044e1 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Wed, 30 Dec 2020 01:39:06 +0100 Subject: [PATCH] add translation support to the backend #215 --- src/locale/de/LC_MESSAGES/django.po | 27 +++++++++++++++++++++++++++ src/paperless/settings.py | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 src/locale/de/LC_MESSAGES/django.po diff --git a/src/locale/de/LC_MESSAGES/django.po b/src/locale/de/LC_MESSAGES/django.po new file mode 100644 index 000000000..bbab220a7 --- /dev/null +++ b/src/locale/de/LC_MESSAGES/django.po @@ -0,0 +1,27 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-12-30 00:37+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \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" + +#: paperless/settings.py:253 +msgid "English" +msgstr "" + +#: paperless/settings.py:254 +msgid "German" +msgstr "" diff --git a/src/paperless/settings.py b/src/paperless/settings.py index b59968dea..783da188a 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -254,6 +254,10 @@ LANGUAGES = [ ("de", _("German")) ] +LOCALE_PATHS = [ + os.path.join(BASE_DIR, "locale") +] + TIME_ZONE = os.getenv("PAPERLESS_TIME_ZONE", "UTC") USE_I18N = True