A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Add spanish locale
jonaswinklerf43a8d6f2ee4
diff --git a/src-ui/angular.json b/src-ui/angular.jsonindex 8b5804521..1e4403f79 100644--- a/src-ui/angular.json+++ b/src-ui/angular.json@@ -23,7 +23,8 @@"pt-BR": "src/locale/messages.pt_BR.xlf","it-IT": "src/locale/messages.it_IT.xlf","ro-RO": "src/locale/messages.ro_RO.xlf",- "ru-RU": "src/locale/messages.ru_RU.xlf"+ "ru-RU": "src/locale/messages.ru_RU.xlf",+ "es-ES": "src/locale/messages.es_ES.xlf"}},"architect": {diff --git a/src-ui/messages.xlf b/src-ui/messages.xlfindex 4b0456899..b0c64256a 100644--- a/src-ui/messages.xlf+++ b/src-ui/messages.xlf@@ -1212,14 +1212,14 @@<source>View</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/document-card-large/document-card-large.component.html</context>- <context context-type="linenumber">50</context>+ <context context-type="linenumber">52</context></context-group></trans-unit><trans-unit id="849b42384616374df49bd8b3711ec159cb10b845" datatype="html"><source>Created: <x id="INTERPOLATION" equiv-text="{{document.created | customDate}}"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/document-card-large/document-card-large.component.html</context>- <context context-type="linenumber">67</context>+ <context context-type="linenumber">71</context></context-group></trans-unit><trans-unit id="cd6f3fd48957e1fea6545c2b2defc7b2435ebfa8" datatype="html">@@ -1240,14 +1240,7 @@<source>Score:</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/document-list/document-card-large/document-card-large.component.html</context>- <context context-type="linenumber">62</context>- </context-group>- </trans-unit>- <trans-unit id="2840db547019ce8c76b2cdbe3a1653c5b68b06af" datatype="html">- <source>View in browser</source>- <context-group purpose="location">- <context context-type="sourcefile">src/app/components/document-list/document-card-small/document-card-small.component.html</context>- <context context-type="linenumber">40</context>+ <context context-type="linenumber">66</context></context-group></trans-unit><trans-unit id="7985804062689412812" datatype="html">@@ -1724,11 +1717,18 @@<context context-type="linenumber">98</context></context-group></trans-unit>+ <trans-unit id="5190825892106392539" datatype="html">+ <source>Spanish</source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/services/settings.service.ts</context>+ <context context-type="linenumber">99</context>+ </context-group>+ </trans-unit><trans-unit id="4912706592792948707" datatype="html"><source>ISO 8601</source><context-group purpose="location"><context context-type="sourcefile">src/app/services/settings.service.ts</context>- <context context-type="linenumber">103</context>+ <context context-type="linenumber">105</context></context-group></trans-unit><trans-unit id="2119857572761283468" datatype="html">diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.tsindex ebf24a327..c364424ad 100644--- a/src-ui/src/app/app.module.ts+++ b/src-ui/src/app/app.module.ts@@ -74,6 +74,7 @@ import localeIt from '@angular/common/locales/it';import localeEnGb from '@angular/common/locales/en-GB';import localeRo from '@angular/common/locales/ro';import localeRu from '@angular/common/locales/ru';+import localeEs from '@angular/common/locales/es';registerLocaleData(localeFr)@@ -84,6 +85,7 @@ registerLocaleData(localeIt)registerLocaleData(localeEnGb)registerLocaleData(localeRo)registerLocaleData(localeRu)+registerLocaleData(localeEs)@NgModule({declarations: [diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.tsindex bc5725bab..dcc0a3148 100644--- a/src-ui/src/app/services/settings.service.ts+++ b/src-ui/src/app/services/settings.service.ts@@ -96,6 +96,8 @@ export class SettingsService {{code: "it-it", name: $localize`Italian`, englishName: "Italian", dateInputFormat: "dd/mm/yyyy"},{code: "ro-ro", name: $localize`Romanian`, englishName: "Romanian", dateInputFormat: "dd.mm.yyyy"},{code: "ru-ru", name: $localize`Russian`, englishName: "Russian", dateInputFormat: "dd.mm.yyyy"},+ {code: "es-es", name: $localize`Spanish`, englishName: "Spanish", dateInputFormat: "dd/mm/yyyy"},+]}diff --git a/src/locale/en_US/LC_MESSAGES/django.po b/src/locale/en_US/LC_MESSAGES/django.poindex 36359709a..42fac1586 100644--- a/src/locale/en_US/LC_MESSAGES/django.po+++ b/src/locale/en_US/LC_MESSAGES/django.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: \n"-"POT-Creation-Date: 2021-03-07 21:34+0100\n"+"POT-Creation-Date: 2021-03-14 13:33+0100\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <[email protected]>\n"@@ -444,6 +444,10 @@ msgstr ""msgid "Russian"msgstr ""+#: paperless/settings.py:307+msgid "Spanish"+msgstr ""+#: paperless/urls.py:118msgid "Paperless-ng administration"msgstr ""diff --git a/src/paperless/settings.py b/src/paperless/settings.pyindex 909a38a84..014f2e95d 100644--- a/src/paperless/settings.py+++ b/src/paperless/settings.py@@ -303,7 +303,8 @@ LANGUAGES = [("pt-br", _("Portuguese (Brazil)")),("it-it", _("Italian")),("ro-ro", _("Romanian")),- ("ru-ru", _("Russian"))+ ("ru-ru", _("Russian")),+ ("es-es", _("Spanish"))]LOCALE_PATHS = [