Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

add translation support to the backend #215

jonaswinklera91958bfe13c
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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\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