From dc5586b16d374765bb4c5462512826648f75c836 Mon Sep 17 00:00:00 2001 From: Michel Weimerskirch Date: Fri, 16 Jul 2021 16:43:55 +0200 Subject: [PATCH] Added support for Luxembourgish (lb_LU) as an interface language --- src-ui/angular.json | 3 ++- src-ui/src/app/app.module.ts | 2 ++ src-ui/src/app/services/settings.service.ts | 3 ++- src/paperless/settings.py | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src-ui/angular.json b/src-ui/angular.json index f1d646c9f..b9659fd07 100644 --- a/src-ui/angular.json +++ b/src-ui/angular.json @@ -27,7 +27,8 @@ "ru-RU": "src/locale/messages.ru_RU.xlf", "es-ES": "src/locale/messages.es_ES.xlf", "pl-PL": "src/locale/messages.pl_PL.xlf", - "sv-SE": "src/locale/messages.sv_SE.xlf" + "sv-SE": "src/locale/messages.sv_SE.xlf", + "lb-LU": "src/locale/messages.lb_LU.xlf" } }, "architect": { diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts index b3ce79a7b..43e5865ff 100644 --- a/src-ui/src/app/app.module.ts +++ b/src-ui/src/app/app.module.ts @@ -76,6 +76,7 @@ import localeRu from '@angular/common/locales/ru'; import localeEs from '@angular/common/locales/es'; import localePl from '@angular/common/locales/pl'; import localeSv from '@angular/common/locales/sv'; +import localeLb from '@angular/common/locales/lb'; registerLocaleData(localeFr) @@ -90,6 +91,7 @@ registerLocaleData(localeRu) registerLocaleData(localeEs) registerLocaleData(localePl) registerLocaleData(localeSv) +registerLocaleData(localeLb) @NgModule({ declarations: [ diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts index 17af29558..7b467f6ee 100644 --- a/src-ui/src/app/services/settings.service.ts +++ b/src-ui/src/app/services/settings.service.ts @@ -99,7 +99,8 @@ export class SettingsService { {code: "ru-ru", name: $localize`Russian`, englishName: "Russian", dateInputFormat: "dd.mm.yyyy"}, {code: "es-es", name: $localize`Spanish`, englishName: "Spanish", dateInputFormat: "dd/mm/yyyy"}, {code: "pl-pl", name: $localize`Polish`, englishName: "Polish", dateInputFormat: "dd.mm.yyyy"}, - {code: "sv-se", name: $localize`Swedish`, englishName: "Swedish", dateInputFormat: "yyyy-mm-dd"} + {code: "sv-se", name: $localize`Swedish`, englishName: "Swedish", dateInputFormat: "yyyy-mm-dd"}, + {code: "lb-lu", name: $localize`Luxembourgish`, englishName: "Luxembourgish", dateInputFormat: "dd.mm.yyyy"} ] } diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 63d014ede..254c7a6ce 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -313,6 +313,7 @@ LANGUAGES = [ ("es-es", _("Spanish")), ("pl-pl", _("Polish")), ("sv-se", _("Swedish")), + ("lb-lu", _("Luxembourgish")), ] LOCALE_PATHS = [