From e5a47151614a64999707d4c6dfb3715312c8f5ea Mon Sep 17 00:00:00 2001 From: jonaswinkler <17569239+jonaswinkler@users.noreply.github.com> Date: Sun, 28 Feb 2021 12:40:25 +0100 Subject: [PATCH] add Romanian locale configuration --- src-ui/angular.json | 3 ++- src-ui/src/app/app.module.ts | 3 +++ src-ui/src/app/services/settings.service.ts | 3 ++- src/paperless/settings.py | 3 ++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src-ui/angular.json b/src-ui/angular.json index 5a54b3494..9f53a8fb1 100644 --- a/src-ui/angular.json +++ b/src-ui/angular.json @@ -21,7 +21,8 @@ "fr": "src/locale/messages.fr.xlf", "en-GB": "src/locale/messages.en_GB.xlf", "pt-BR": "src/locale/messages.pt_BR.xlf", - "it": "src/locale/messages.it.xlf" + "it": "src/locale/messages.it.xlf", + "ro": "src/locale/messages.ro.xlf" } }, "architect": { diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts index 01c17b284..be7ea2d0b 100644 --- a/src-ui/src/app/app.module.ts +++ b/src-ui/src/app/app.module.ts @@ -72,6 +72,8 @@ import localeDe from '@angular/common/locales/de'; import localePt from '@angular/common/locales/pt'; import localeIt from '@angular/common/locales/it'; import localeEnGb from '@angular/common/locales/en-GB'; +import localeRo from '@angular/common/locales/ro'; + registerLocaleData(localeFr) registerLocaleData(localeNl) @@ -79,6 +81,7 @@ registerLocaleData(localeDe) registerLocaleData(localePt, "pt-BR") registerLocaleData(localeIt) registerLocaleData(localeEnGb) +registerLocaleData(localeRo) @NgModule({ declarations: [ diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts index 1258c67ac..8810cd653 100644 --- a/src-ui/src/app/services/settings.service.ts +++ b/src-ui/src/app/services/settings.service.ts @@ -93,7 +93,8 @@ export class SettingsService { {code: "nl", name: $localize`Dutch`, englishName: "Dutch", dateInputFormat: "dd-mm-yyyy"}, {code: "fr", name: $localize`French`, englishName: "French", dateInputFormat: "dd/mm/yyyy"}, {code: "pt-br", name: $localize`Portuguese (Brazil)`, englishName: "Portuguese (Brazil)", dateInputFormat: "dd/mm/yyyy"}, - {code: "it", name: $localize`Italian`, englishName: "Italian", dateInputFormat: "dd/mm/yyyy"} + {code: "it", name: $localize`Italian`, englishName: "Italian", dateInputFormat: "dd/mm/yyyy"}, + {code: "ro", name: $localize`Romanian`, englishName: "Romanian", dateInputFormat: "dd.mm.yyyy"} ] } diff --git a/src/paperless/settings.py b/src/paperless/settings.py index d16246c13..8cc12c1ff 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -300,7 +300,8 @@ LANGUAGES = [ ("nl-nl", _("Dutch")), ("fr", _("French")), ("pt-br", _("Portuguese (Brazil)")), - ("it", _("Italian")) + ("it", _("Italian")), + ("ro", _("Romanian")) ] LOCALE_PATHS = [