diff --git a/docs/changelog.rst b/docs/changelog.rst index bf083e8b7..7010350a8 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,21 @@ Changelog ********* +paperless-ng 1.3.2 +################## + +* Added translation into Portuguese. + +* Changes + + * The exporter now exports user accounts, mail accounts, mail rules and saved views as well. + +* Fixes + + * Minor layout issues with document cards and the log viewer. + + * Fixed an issue with any/all/exact matching when characters used in regular expressions were used for the match. + paperless-ng 1.3.1 ################## diff --git a/src-ui/angular.json b/src-ui/angular.json index 1e4403f79..342172931 100644 --- a/src-ui/angular.json +++ b/src-ui/angular.json @@ -21,6 +21,7 @@ "fr-FR": "src/locale/messages.fr_FR.xlf", "en-GB": "src/locale/messages.en_GB.xlf", "pt-BR": "src/locale/messages.pt_BR.xlf", + "pt-PT": "src/locale/messages.pt_PT.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", diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index b0c64256a..959d90a1b 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -1212,14 +1212,7 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 - - - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 + 51 @@ -1689,46 +1682,53 @@ 94 + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Italian src/app/services/settings.service.ts - 96 + 97 Romanian src/app/services/settings.service.ts - 97 + 98 Russian src/app/services/settings.service.ts - 98 + 99 Spanish src/app/services/settings.service.ts - 99 + 100 ISO 8601 src/app/services/settings.service.ts - 105 + 106 diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts index c364424ad..ca87d1a07 100644 --- a/src-ui/src/app/app.module.ts +++ b/src-ui/src/app/app.module.ts @@ -81,6 +81,7 @@ registerLocaleData(localeFr) registerLocaleData(localeNl) registerLocaleData(localeDe) registerLocaleData(localePt, "pt-BR") +registerLocaleData(localePt, "pt-PT") registerLocaleData(localeIt) registerLocaleData(localeEnGb) registerLocaleData(localeRo) diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss index c3a358a2b..9507ab42a 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.scss @@ -51,8 +51,9 @@ } .metadata-icon { - width: 0.8rem; - height: 0.8rem; + width: 0.9rem; + height: 0.9rem; + padding: 0.05rem; } .search-score { diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss index 2daa97337..943df03b9 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss @@ -53,8 +53,9 @@ } .metadata-icon { - width: 0.8rem; - height: 0.8rem; + width: 0.9rem; + height: 0.9rem; + padding: 0.05rem; } } diff --git a/src-ui/src/app/components/manage/logs/logs.component.html b/src-ui/src/app/components/manage/logs/logs.component.html index 5b2d198c9..0633daf32 100644 --- a/src-ui/src/app/components/manage/logs/logs.component.html +++ b/src-ui/src/app/components/manage/logs/logs.component.html @@ -11,7 +11,7 @@
-
+

{{log}}

diff --git a/src-ui/src/app/components/manage/logs/logs.component.scss b/src-ui/src/app/components/manage/logs/logs.component.scss index aae238167..834c8c1cb 100644 --- a/src-ui/src/app/components/manage/logs/logs.component.scss +++ b/src-ui/src/app/components/manage/logs/logs.component.scss @@ -17,7 +17,7 @@ .log-container { overflow-y: scroll; - height: calc(100vh - 190px); + height: calc(100vh - 200px); top: 70px; p { diff --git a/src-ui/src/app/components/manage/logs/logs.component.ts b/src-ui/src/app/components/manage/logs/logs.component.ts index d77fcde4a..26ceb5c57 100644 --- a/src-ui/src/app/components/manage/logs/logs.component.ts +++ b/src-ui/src/app/components/manage/logs/logs.component.ts @@ -1,4 +1,4 @@ -import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; +import { Component, ElementRef, OnInit, AfterViewChecked, ViewChild } from '@angular/core'; import { LogService } from 'src/app/services/rest/log.service'; @Component({ @@ -6,7 +6,7 @@ import { LogService } from 'src/app/services/rest/log.service'; templateUrl: './logs.component.html', styleUrls: ['./logs.component.scss'] }) -export class LogsComponent implements OnInit { +export class LogsComponent implements OnInit, AfterViewChecked { constructor(private logService: LogService) { } @@ -16,6 +16,8 @@ export class LogsComponent implements OnInit { activeLog: string + @ViewChild('logContainer') logContainer: ElementRef + ngOnInit(): void { this.logService.list().subscribe(result => { this.logFiles = result @@ -26,6 +28,10 @@ export class LogsComponent implements OnInit { }) } + ngAfterViewChecked() { + this.scrollToBottom(); + } + reloadLogs() { this.logService.get(this.activeLog).subscribe(result => { this.logs = result @@ -48,4 +54,12 @@ export class LogsComponent implements OnInit { } } + scrollToBottom(): void { + this.logContainer?.nativeElement.scroll({ + top: this.logContainer.nativeElement.scrollHeight, + left: 0, + behavior: 'auto' + }); + } + } diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts index dcc0a3148..ec07208dc 100644 --- a/src-ui/src/app/services/settings.service.ts +++ b/src-ui/src/app/services/settings.service.ts @@ -92,6 +92,7 @@ export class SettingsService { {code: "de-de", name: $localize`German`, englishName: "German", dateInputFormat: "dd.mm.yyyy"}, {code: "nl-nl", name: $localize`Dutch`, englishName: "Dutch", dateInputFormat: "dd-mm-yyyy"}, {code: "fr-fr", name: $localize`French`, englishName: "French", dateInputFormat: "dd/mm/yyyy"}, + {code: "pt-pt", name: $localize`Portuguese`, englishName: "Portuguese", dateInputFormat: "dd/mm/yyyy"}, {code: "pt-br", name: $localize`Portuguese (Brazil)`, englishName: "Portuguese (Brazil)", dateInputFormat: "dd/mm/yyyy"}, {code: "it-it", name: $localize`Italian`, englishName: "Italian", dateInputFormat: "dd/mm/yyyy"}, {code: "ro-ro", name: $localize`Romanian`, englishName: "Romanian", dateInputFormat: "dd.mm.yyyy"}, diff --git a/src-ui/src/environments/environment.prod.ts b/src-ui/src/environments/environment.prod.ts index 82a55b979..acc5843f8 100644 --- a/src-ui/src/environments/environment.prod.ts +++ b/src-ui/src/environments/environment.prod.ts @@ -3,7 +3,7 @@ export const environment = { apiBaseUrl: "/api/", apiVersion: "2", appTitle: "Paperless-ng", - version: "1.3.1", + version: "1.3.2", webSocketHost: window.location.host, webSocketProtocol: (window.location.protocol == "https:" ? "wss:" : "ws:") }; diff --git a/src-ui/src/locale/messages.cs_CZ.xlf b/src-ui/src/locale/messages.cs_CZ.xlf index d0f519a70..c24654569 100644 --- a/src-ui/src/locale/messages.cs_CZ.xlf +++ b/src-ui/src/locale/messages.cs_CZ.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 View - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Created: - Filter by correspondent @@ -1929,11 +1921,19 @@ Francouzština + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portuguese + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portuguese (Brazil) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italian @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Romanian @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russian @@ -1965,7 +1965,7 @@ Spanish src/app/services/settings.service.ts - 99 + 100 Spanish @@ -1973,7 +1973,7 @@ ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.de_DE.xlf b/src-ui/src/locale/messages.de_DE.xlf index e9f8ddbc5..1d7a3e918 100644 --- a/src-ui/src/locale/messages.de_DE.xlf +++ b/src-ui/src/locale/messages.de_DE.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Anzeigen - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Erstellt: - Filter by correspondent @@ -1929,11 +1921,19 @@ Französisch + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portugiesisch + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portugiesisch (Brasilien) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italienisch @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Rumänisch @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russisch @@ -1965,7 +1965,7 @@ Spanish src/app/services/settings.service.ts - 99 + 100 Spanisch @@ -1973,7 +1973,7 @@ ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.en_GB.xlf b/src-ui/src/locale/messages.en_GB.xlf index d5faf1be4..060411de2 100644 --- a/src-ui/src/locale/messages.en_GB.xlf +++ b/src-ui/src/locale/messages.en_GB.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 View - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Created: - Filter by correspondent @@ -1929,11 +1921,19 @@ French + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portuguese + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portuguese (Brazil) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italian @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Romanian @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russian @@ -1965,15 +1965,15 @@ Spanish src/app/services/settings.service.ts - 99 + 100 - Spanish + Spanish ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.es_ES.xlf b/src-ui/src/locale/messages.es_ES.xlf index b47f696e8..b743b8a83 100644 --- a/src-ui/src/locale/messages.es_ES.xlf +++ b/src-ui/src/locale/messages.es_ES.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Vista - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Creado: - Filter by correspondent @@ -1929,11 +1921,19 @@ Francés + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portuguese + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portugués (Brasil) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italiano @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Rumano @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Ruso @@ -1965,15 +1965,15 @@ Spanish src/app/services/settings.service.ts - 99 + 100 - Spanish + Español ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.fr_FR.xlf b/src-ui/src/locale/messages.fr_FR.xlf index c88ece3c5..d3103a6ad 100644 --- a/src-ui/src/locale/messages.fr_FR.xlf +++ b/src-ui/src/locale/messages.fr_FR.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Vue - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Créé le : - Filter by correspondent @@ -1929,11 +1921,19 @@ Français + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portugais + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portugais (Brésil) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italien @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Roumain @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russe @@ -1965,15 +1965,15 @@ Spanish src/app/services/settings.service.ts - 99 + 100 - Spanish + Espagnol ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.hu_HU.xlf b/src-ui/src/locale/messages.hu_HU.xlf index 1411bcdba..218e4fa98 100644 --- a/src-ui/src/locale/messages.hu_HU.xlf +++ b/src-ui/src/locale/messages.hu_HU.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Megtekint - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Létrehozva: - Filter by correspondent @@ -1929,11 +1921,19 @@ French + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portuguese + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portuguese (Brazil) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italian @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Romanian @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russian @@ -1965,7 +1965,7 @@ Spanish src/app/services/settings.service.ts - 99 + 100 Spanish @@ -1973,7 +1973,7 @@ ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.it_IT.xlf b/src-ui/src/locale/messages.it_IT.xlf index 50e851625..c41ed083d 100644 --- a/src-ui/src/locale/messages.it_IT.xlf +++ b/src-ui/src/locale/messages.it_IT.xlf @@ -528,7 +528,7 @@ src/app/components/manage/tag-list/tag-list.component.html 21 - Corrispondenza + Assegnazione Document count @@ -928,7 +928,7 @@ src/app/components/manage/correspondent-list/correspondent-list.component.html 22 - Ultrima corrispondenza + Ultima assegnazione Confirmation @@ -976,7 +976,7 @@ src/app/components/manage/correspondent-list/correspondent-edit-dialog/correspondent-edit-dialog.component.html 10 - Algoritmo di corrispondenza + Algoritmo di assegnazione Matching pattern @@ -984,7 +984,7 @@ src/app/components/manage/correspondent-list/correspondent-edit-dialog/correspondent-edit-dialog.component.html 11 - Criterio di corrispondenza + Criterio di assegnazione Case insensitive @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Mostra - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Creato il: - Filter by correspondent @@ -1929,11 +1921,19 @@ Francese + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portoghese + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portoghese (Brasile) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italiano @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Rumeno @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russo @@ -1965,15 +1965,15 @@ Spanish src/app/services/settings.service.ts - 99 + 100 - Spanish + Spagnolo ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 @@ -2291,7 +2291,7 @@ src/app/data/matching-model.ts 17 - Automatico: apprende automaticamente la corrispondenza + Automatico: apprende l'assegnazione automaticamente diff --git a/src-ui/src/locale/messages.nl_NL.xlf b/src-ui/src/locale/messages.nl_NL.xlf index 2c4a6e543..647a8de2b 100644 --- a/src-ui/src/locale/messages.nl_NL.xlf +++ b/src-ui/src/locale/messages.nl_NL.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Bekijken - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Aangemaakt op: - Filter by correspondent @@ -1929,11 +1921,19 @@ Frans + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portuguese + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portugees (Brazilië) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italiaans @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Roemeens @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russisch @@ -1965,15 +1965,15 @@ Spanish src/app/services/settings.service.ts - 99 + 100 - Spanish + Spaans ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.pt_BR.xlf b/src-ui/src/locale/messages.pt_BR.xlf index 70994baef..c95ae9670 100644 --- a/src-ui/src/locale/messages.pt_BR.xlf +++ b/src-ui/src/locale/messages.pt_BR.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Ver - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Criado: - Filter by correspondent @@ -1929,11 +1921,19 @@ Francês + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portuguese + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Português (Brasil) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italiano @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Romeno @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russian @@ -1965,7 +1965,7 @@ Spanish src/app/services/settings.service.ts - 99 + 100 Spanish @@ -1973,7 +1973,7 @@ ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.pt_PT.xlf b/src-ui/src/locale/messages.pt_PT.xlf index cfa13a0ad..98de03004 100644 --- a/src-ui/src/locale/messages.pt_PT.xlf +++ b/src-ui/src/locale/messages.pt_PT.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Ver - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Criado: - Filter by correspondent @@ -1929,11 +1921,19 @@ Francês + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portuguese + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Português (Brasil) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italiano @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Romeno @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russo @@ -1965,15 +1965,15 @@ Spanish src/app/services/settings.service.ts - 99 + 100 - Spanish + Espanhol ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.ro_RO.xlf b/src-ui/src/locale/messages.ro_RO.xlf index f942b52d9..c434c30bf 100644 --- a/src-ui/src/locale/messages.ro_RO.xlf +++ b/src-ui/src/locale/messages.ro_RO.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Vizualizare - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Creat: - Filter by correspondent @@ -1929,11 +1921,19 @@ Franceză + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portugheză + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portugheză (Brazilia) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italiană @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Română @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Rusă @@ -1965,7 +1965,7 @@ Spanish src/app/services/settings.service.ts - 99 + 100 Spanish @@ -1973,7 +1973,7 @@ ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src-ui/src/locale/messages.ru_RU.xlf b/src-ui/src/locale/messages.ru_RU.xlf index 1ec2b178f..c2736233c 100644 --- a/src-ui/src/locale/messages.ru_RU.xlf +++ b/src-ui/src/locale/messages.ru_RU.xlf @@ -168,7 +168,7 @@ src/app/components/document-list/document-list.component.html 105 - АН + Архивный номер Correspondent @@ -184,7 +184,7 @@ src/app/components/document-list/document-list.component.html 117 - Заголовок + Название Document type @@ -464,7 +464,7 @@ src/app/components/dashboard/dashboard.component.ts 35 - Добро пожаловать в Paperless-ng, + Добро пожаловать в Paperless-ng! Dashboard @@ -472,7 +472,7 @@ src/app/components/dashboard/dashboard.component.html 1 - Панель + Главная Do you really want to delete the tag ""? @@ -504,7 +504,7 @@ src/app/components/manage/tag-list/tag-list.component.html 8 - Отфильтровать по: + Фильтр по: Name @@ -616,7 +616,7 @@ src/app/components/manage/settings/settings.component.ts 100 - Использовать формат даты, соответсвующий языку + Использовать формат даты, соответствующий языку Error while storing settings on server: @@ -640,7 +640,7 @@ src/app/components/manage/settings/settings.component.html 10 - Основные настройки + Основные Notifications @@ -656,7 +656,7 @@ src/app/components/manage/settings/settings.component.html 134 - Сохраненные представления + Представления Appearance @@ -744,7 +744,7 @@ src/app/components/manage/settings/settings.component.html 87 - Использовать просмоторщик PDF встроенный в браузер + Использовать просмотрщик PDF встроенный в браузер This is usually faster for displaying large PDF documents, but it might not work on some browsers. @@ -752,7 +752,7 @@ src/app/components/manage/settings/settings.component.html 87 - Это, обычно, более быстрый способо отображения больших PDF документов, но он может не работать в некоторых браузерах. + Это, обычно, более быстрый способ отображения больших PDF документов, но он может не работать в некоторых браузерах. Dark mode @@ -824,7 +824,7 @@ src/app/components/manage/settings/settings.component.html 119 - Документ обрабатывается + Обработка документа Show notifications when new documents are detected @@ -832,7 +832,7 @@ src/app/components/manage/settings/settings.component.html 123 - Показывать уведомления, когда новый документ удалён + Показывать уведомления, когда новый документ удалён Show notifications when document processing completes successfully @@ -840,7 +840,7 @@ src/app/components/manage/settings/settings.component.html 124 - Показывать уведомления, когда обработка документа успешна + Показывать уведомления, когда обработка документа успешна Show notifications when document processing fails @@ -848,7 +848,7 @@ src/app/components/manage/settings/settings.component.html 125 - Показывать уведомления, когда обработка документа не удалась + Показывать уведомления, когда обработка документа не удалась Suppress notifications on dashboard @@ -856,7 +856,7 @@ src/app/components/manage/settings/settings.component.html 126 - Спрятать уведомления на панели + Спрятать уведомления на главной This will suppress all messages about document processing status on the dashboard. @@ -864,7 +864,7 @@ src/app/components/manage/settings/settings.component.html 126 - Это отключит все сообщения о статусе обработки документов на панели. + Это отключит все сообщения о статусе обработки документов на главной. Appears on @@ -880,7 +880,7 @@ src/app/components/manage/settings/settings.component.html 149 - Показать на панели + Показать на главной Show in sidebar @@ -1129,7 +1129,7 @@ src/app/components/app-frame/app-frame.component.html 154 - Админ + Администрирование Info @@ -1145,7 +1145,7 @@ src/app/components/app-frame/app-frame.component.html 167 - Документация + Документация GitHub @@ -1201,7 +1201,7 @@ src/app/components/document-list/filter-editor/filter-editor.component.ts 78 - Заголовок и содержимое + Название и содержимое ASN @@ -1265,7 +1265,7 @@ src/app/components/document-list/filter-editor/filter-editor.component.ts 54 - Заголовок: + Название: ASN: @@ -1273,7 +1273,7 @@ src/app/components/document-list/filter-editor/filter-editor.component.ts 57 - ASN: + Архивный номер: Filter tags @@ -1314,7 +1314,7 @@ 166 Filter drop down element to filter for documents with no correspondent/type/tag assigned - Не назначено + Не назначено Apply @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 Представление - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Создано: - Filter by correspondent @@ -1557,7 +1549,7 @@ src/app/components/document-list/bulk-editor/bulk-editor.component.ts 186 - Эта операция удалит тип из выбранных документов + Эта операция удалит тип из выбранных документов. Delete confirm @@ -1741,7 +1733,7 @@ src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html 13 - Перетащите документы сюда или + Перетащите документы или Browse files @@ -1749,7 +1741,7 @@ src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html 13 - Загрузить файлы + Загрузите файлы Dismiss completed @@ -1799,7 +1791,7 @@ src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.html 6,7 - Вы можете загрузить документы, перетащив их на панель загрузки файлов справа, либо положив их в каталог, указанный в настройках. После обработки документы появятся в списке документов. После того, как вы добавите метаданные в свои документы, используйте безбумажные механизмы фильтрации для создания пользовательских представлений (таких как «Недавно добавленные», «Tagged TODO»), и они появятся на панели управления вместо этого сообщения. + Вы можете загрузить документы, перетащив их на панель загрузки файлов справа, либо положив их в каталог, указанный в настройках. После обработки документы появятся в списке документов. После того, как вы добавите метаданные в свои документы, используйте безбумажные механизмы фильтрации для создания пользовательских представлений (таких как «Недавно добавленные», «Tagged TODO»), и они появятся здесь вместо этого сообщения. Paperless offers some more features that try to make your life easier: @@ -1887,7 +1879,7 @@ src/app/pipes/document-title.pipe.ts 12 - (без заголовка) + (без названия) English (US) @@ -1929,11 +1921,19 @@ French + + Portuguese + + src/app/services/settings.service.ts + 95 + + Португальский + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portuguese (Brazil) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italian @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Romanian @@ -1957,23 +1957,23 @@ Russian src/app/services/settings.service.ts - 98 + 99 - Russian + Русский Spanish src/app/services/settings.service.ts - 99 + 100 - Spanish + Испанский ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 @@ -2000,7 +2000,7 @@ 17 Pre-Consume is a term that appears like that in the documentation as well and does not need a specific translation - скрипт предобработки не существует. + Скрипт предобработки не существует. Error while executing pre-consume script. @@ -2018,7 +2018,7 @@ 19 Post-Consume is a term that appears like that in the documentation as well and does not need a specific translation - скрипт постобработки не существует. + Скрипт постобработки не существует. Error while executing post-consume script. diff --git a/src-ui/src/locale/messages.xh_ZA.xlf b/src-ui/src/locale/messages.xh_ZA.xlf index 8b4bd47f3..2d759ed8a 100644 --- a/src-ui/src/locale/messages.xh_ZA.xlf +++ b/src-ui/src/locale/messages.xh_ZA.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 crwdns3178:0crwdne3178:0 - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - crwdns3180:0{{document.created | customDate}}crwdne3180:0 - Filter by correspondent @@ -1929,11 +1921,19 @@ crwdns3314:0crwdne3314:0 + + Portuguese + + src/app/services/settings.service.ts + 95 + + crwdns3422:0crwdne3422:0 + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 crwdns3316:0crwdne3316:0 @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 crwdns3318:0crwdne3318:0 @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 crwdns3320:0crwdne3320:0 @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 crwdns3404:0crwdne3404:0 @@ -1965,7 +1965,7 @@ Spanish src/app/services/settings.service.ts - 99 + 100 crwdns3418:0crwdne3418:0 @@ -1973,7 +1973,7 @@ ISO 8601 src/app/services/settings.service.ts - 105 + 106 crwdns3322:0crwdne3322:0 diff --git a/src-ui/src/locale/messages.zh_CN.xlf b/src-ui/src/locale/messages.zh_CN.xlf index 87916ccc5..a40acabe4 100644 --- a/src-ui/src/locale/messages.zh_CN.xlf +++ b/src-ui/src/locale/messages.zh_CN.xlf @@ -1384,18 +1384,10 @@ View src/app/components/document-list/document-card-large/document-card-large.component.html - 52 + 51 View - - Created: - - src/app/components/document-list/document-card-large/document-card-large.component.html - 71 - - Created: - Filter by correspondent @@ -1929,11 +1921,19 @@ French + + Portuguese + + src/app/services/settings.service.ts + 95 + + Portuguese + Portuguese (Brazil) src/app/services/settings.service.ts - 95 + 96 Portuguese (Brazil) @@ -1941,7 +1941,7 @@ Italian src/app/services/settings.service.ts - 96 + 97 Italian @@ -1949,7 +1949,7 @@ Romanian src/app/services/settings.service.ts - 97 + 98 Romanian @@ -1957,7 +1957,7 @@ Russian src/app/services/settings.service.ts - 98 + 99 Russian @@ -1965,7 +1965,7 @@ Spanish src/app/services/settings.service.ts - 99 + 100 Spanish @@ -1973,7 +1973,7 @@ ISO 8601 src/app/services/settings.service.ts - 105 + 106 ISO 8601 diff --git a/src/documents/management/commands/document_exporter.py b/src/documents/management/commands/document_exporter.py index d8f5861a5..286d862e3 100644 --- a/src/documents/management/commands/document_exporter.py +++ b/src/documents/management/commands/document_exporter.py @@ -6,15 +6,18 @@ import tqdm from django.conf import settings +from django.contrib.auth.models import User from django.core import serializers from django.core.management.base import BaseCommand, CommandError from django.db import transaction from filelock import FileLock -from documents.models import Document, Correspondent, Tag, DocumentType +from documents.models import Document, Correspondent, Tag, DocumentType, \ + SavedView, SavedViewFilterRule from documents.settings import EXPORTER_FILE_NAME, EXPORTER_THUMBNAIL_NAME, \ EXPORTER_ARCHIVE_NAME from paperless.db import GnuPG +from paperless_mail.models import MailAccount, MailRule from ...file_handling import generate_filename, delete_empty_directories @@ -105,6 +108,21 @@ def dump(self): serializers.serialize("json", documents)) manifest += document_manifest + manifest += json.loads(serializers.serialize( + "json", MailAccount.objects.all())) + + manifest += json.loads(serializers.serialize( + "json", MailRule.objects.all())) + + manifest += json.loads(serializers.serialize( + "json", SavedView.objects.all())) + + manifest += json.loads(serializers.serialize( + "json", SavedViewFilterRule.objects.all())) + + manifest += json.loads(serializers.serialize( + "json", User.objects.all())) + # 3. Export files from each document for index, document_dict in tqdm.tqdm(enumerate(document_manifest), total=len(document_manifest)): diff --git a/src/documents/matching.py b/src/documents/matching.py index 3b70930b6..a1f3896e5 100644 --- a/src/documents/matching.py +++ b/src/documents/matching.py @@ -90,7 +90,7 @@ def matches(matching_model, document): elif matching_model.matching_algorithm == MatchingModel.MATCH_LITERAL: result = bool(re.search( - rf"\b{matching_model.match}\b", + rf"\b{re.escape(matching_model.match)}\b", document_content, **search_kwargs )) @@ -161,6 +161,9 @@ def _split_match(matching_model): findterms = re.compile(r'"([^"]+)"|(\S+)').findall normspace = re.compile(r"\s+").sub return [ - normspace(" ", (t[0] or t[1]).strip()).replace(" ", r"\s+") + # normspace(" ", (t[0] or t[1]).strip()).replace(" ", r"\s+") + re.escape( + normspace(" ", (t[0] or t[1]).strip()) + ).replace(r"\ ", r"\s+") for t in findterms(matching_model.match) ] diff --git a/src/documents/tests/test_management_exporter.py b/src/documents/tests/test_management_exporter.py index cdc745305..9e2dd0804 100644 --- a/src/documents/tests/test_management_exporter.py +++ b/src/documents/tests/test_management_exporter.py @@ -69,7 +69,7 @@ def test_exporter(self, use_filename_format=False): manifest = self._do_export(use_filename_format=use_filename_format) - self.assertEqual(len(manifest), 7) + self.assertEqual(len(manifest), 8) self.assertEqual(len(list(filter(lambda e: e['model'] == 'documents.document', manifest))), 4) self.assertTrue(os.path.exists(os.path.join(self.target, "manifest.json"))) diff --git a/src/documents/views.py b/src/documents/views.py index a3f495d50..7b282dfb7 100755 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -18,6 +18,7 @@ from rest_framework import parsers from rest_framework.decorators import action from rest_framework.filters import OrderingFilter, SearchFilter +from rest_framework.generics import GenericAPIView from rest_framework.mixins import ( DestroyModelMixin, ListModelMixin, @@ -366,23 +367,12 @@ def perform_create(self, serializer): serializer.save(user=self.request.user) -class BulkEditView(APIView): +class BulkEditView(GenericAPIView): permission_classes = (IsAuthenticated,) serializer_class = BulkEditSerializer parser_classes = (parsers.JSONParser,) - def get_serializer_context(self): - return { - 'request': self.request, - 'format': self.format_kwarg, - 'view': self - } - - def get_serializer(self, *args, **kwargs): - kwargs['context'] = self.get_serializer_context() - return self.serializer_class(*args, **kwargs) - def post(self, request, *args, **kwargs): serializer = self.get_serializer(data=request.data) serializer.is_valid(raise_exception=True) @@ -399,23 +389,12 @@ def post(self, request, *args, **kwargs): return HttpResponseBadRequest(str(e)) -class PostDocumentView(APIView): +class PostDocumentView(GenericAPIView): permission_classes = (IsAuthenticated,) serializer_class = PostDocumentSerializer parser_classes = (parsers.MultiPartParser,) - def get_serializer_context(self): - return { - 'request': self.request, - 'format': self.format_kwarg, - 'view': self - } - - def get_serializer(self, *args, **kwargs): - kwargs['context'] = self.get_serializer_context() - return self.serializer_class(*args, **kwargs) - def post(self, request, *args, **kwargs): serializer = self.get_serializer(data=request.data) @@ -453,23 +432,12 @@ def post(self, request, *args, **kwargs): return Response("OK") -class SelectionDataView(APIView): +class SelectionDataView(GenericAPIView): permission_classes = (IsAuthenticated,) serializer_class = DocumentListSerializer parser_classes = (parsers.MultiPartParser, parsers.JSONParser) - def get_serializer_context(self): - return { - 'request': self.request, - 'format': self.format_kwarg, - 'view': self - } - - def get_serializer(self, *args, **kwargs): - kwargs['context'] = self.get_serializer_context() - return self.serializer_class(*args, **kwargs) - def post(self, request, format=None): serializer = self.get_serializer(data=request.data) serializer.is_valid(raise_exception=True) @@ -620,23 +588,12 @@ def get(self, request, format=None): }) -class BulkDownloadView(APIView): +class BulkDownloadView(GenericAPIView): permission_classes = (IsAuthenticated,) serializer_class = BulkDownloadSerializer parser_classes = (parsers.JSONParser,) - def get_serializer_context(self): - return { - 'request': self.request, - 'format': self.format_kwarg, - 'view': self - } - - def get_serializer(self, *args, **kwargs): - kwargs['context'] = self.get_serializer_context() - return self.serializer_class(*args, **kwargs) - def post(self, request, format=None): serializer = self.get_serializer(data=request.data) serializer.is_valid(raise_exception=True) diff --git a/src/locale/cs_CZ/LC_MESSAGES/django.po b/src/locale/cs_CZ/LC_MESSAGES/django.po index a869dfffe..81c089a9c 100644 --- a/src/locale/cs_CZ/LC_MESSAGES/django.po +++ b/src/locale/cs_CZ/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:58\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 21:47\n" "Last-Translator: \n" "Language-Team: Czech\n" "Language: cs_CZ\n" @@ -429,18 +429,22 @@ msgid "Portuguese (Brazil)" msgstr "" #: paperless/settings.py:304 -msgid "Italian" +msgid "Portuguese" msgstr "" #: paperless/settings.py:305 -msgid "Romanian" +msgid "Italian" msgstr "" #: paperless/settings.py:306 -msgid "Russian" +msgid "Romanian" msgstr "" #: paperless/settings.py:307 +msgid "Russian" +msgstr "" + +#: paperless/settings.py:308 msgid "Spanish" msgstr "" diff --git a/src/locale/de_DE/LC_MESSAGES/django.po b/src/locale/de_DE/LC_MESSAGES/django.po index 5f681f78f..fccea1562 100644 --- a/src/locale/de_DE/LC_MESSAGES/django.po +++ b/src/locale/de_DE/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:58\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-18 13:43\n" "Last-Translator: \n" "Language-Team: German\n" "Language: de_DE\n" @@ -429,18 +429,22 @@ msgid "Portuguese (Brazil)" msgstr "Portugiesisch (Brasilien)" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "Portugiesisch" + +#: paperless/settings.py:305 msgid "Italian" msgstr "Italienisch" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "Rumänisch" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" msgstr "Russisch" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" msgstr "Spanisch" diff --git a/src/locale/en_GB/LC_MESSAGES/django.po b/src/locale/en_GB/LC_MESSAGES/django.po index 4880f22cc..d33b4fc32 100644 --- a/src/locale/en_GB/LC_MESSAGES/django.po +++ b/src/locale/en_GB/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 22:42\n" "Last-Translator: \n" "Language-Team: English, United Kingdom\n" "Language: en_GB\n" @@ -429,20 +429,24 @@ msgid "Portuguese (Brazil)" msgstr "Portuguese (Brazil)" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "Portuguese" + +#: paperless/settings.py:305 msgid "Italian" msgstr "Italian" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "Romanian" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" msgstr "Russian" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" -msgstr "" +msgstr "Spanish" #: paperless/urls.py:118 msgid "Paperless-ng administration" diff --git a/src/locale/en_US/LC_MESSAGES/django.po b/src/locale/en_US/LC_MESSAGES/django.po index 42fac1586..2a17fd9ae 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-14 13:33+0100\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -433,18 +433,22 @@ msgid "Portuguese (Brazil)" msgstr "" #: paperless/settings.py:304 -msgid "Italian" +msgid "Portuguese" msgstr "" #: paperless/settings.py:305 -msgid "Romanian" +msgid "Italian" msgstr "" #: paperless/settings.py:306 -msgid "Russian" +msgid "Romanian" msgstr "" #: paperless/settings.py:307 +msgid "Russian" +msgstr "" + +#: paperless/settings.py:308 msgid "Spanish" msgstr "" diff --git a/src/locale/es_ES/LC_MESSAGES/django.po b/src/locale/es_ES/LC_MESSAGES/django.po index 167a2d321..8a157440b 100644 --- a/src/locale/es_ES/LC_MESSAGES/django.po +++ b/src/locale/es_ES/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:58\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 21:47\n" "Last-Translator: \n" "Language-Team: Spanish\n" "Language: es_ES\n" @@ -429,20 +429,24 @@ msgid "Portuguese (Brazil)" msgstr "Portugués (Brasil)" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "" + +#: paperless/settings.py:305 msgid "Italian" msgstr "Italiano" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "Rumano" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" msgstr "Ruso" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" -msgstr "" +msgstr "Español" #: paperless/urls.py:118 msgid "Paperless-ng administration" diff --git a/src/locale/fr_FR/LC_MESSAGES/django.po b/src/locale/fr_FR/LC_MESSAGES/django.po index 2c1afc042..c36430f34 100644 --- a/src/locale/fr_FR/LC_MESSAGES/django.po +++ b/src/locale/fr_FR/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:58\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-18 07:48\n" "Last-Translator: \n" "Language-Team: French\n" "Language: fr_FR\n" @@ -429,20 +429,24 @@ msgid "Portuguese (Brazil)" msgstr "Portugais (Brésil)" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "Portugais" + +#: paperless/settings.py:305 msgid "Italian" msgstr "Italien" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "Roumain" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" msgstr "Russe" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" -msgstr "" +msgstr "Espagnol" #: paperless/urls.py:118 msgid "Paperless-ng administration" diff --git a/src/locale/hu_HU/LC_MESSAGES/django.po b/src/locale/hu_HU/LC_MESSAGES/django.po index a0aeaa31b..7c3e637ee 100644 --- a/src/locale/hu_HU/LC_MESSAGES/django.po +++ b/src/locale/hu_HU/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 21:47\n" "Last-Translator: \n" "Language-Team: Hungarian\n" "Language: hu_HU\n" @@ -429,18 +429,22 @@ msgid "Portuguese (Brazil)" msgstr "" #: paperless/settings.py:304 -msgid "Italian" +msgid "Portuguese" msgstr "" #: paperless/settings.py:305 -msgid "Romanian" +msgid "Italian" msgstr "" #: paperless/settings.py:306 -msgid "Russian" +msgid "Romanian" msgstr "" #: paperless/settings.py:307 +msgid "Russian" +msgstr "" + +#: paperless/settings.py:308 msgid "Spanish" msgstr "" diff --git a/src/locale/it_IT/LC_MESSAGES/django.po b/src/locale/it_IT/LC_MESSAGES/django.po index b5025ede3..48dfe762e 100644 --- a/src/locale/it_IT/LC_MESSAGES/django.po +++ b/src/locale/it_IT/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-18 00:34\n" "Last-Translator: \n" "Language-Team: Italian\n" "Language: it_IT\n" @@ -429,20 +429,24 @@ msgid "Portuguese (Brazil)" msgstr "Portoghese (Brasile)" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "Portoghese" + +#: paperless/settings.py:305 msgid "Italian" msgstr "Italiano" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "Rumeno" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" msgstr "Russo" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" -msgstr "" +msgstr "Spagnolo" #: paperless/urls.py:118 msgid "Paperless-ng administration" diff --git a/src/locale/nl_NL/LC_MESSAGES/django.po b/src/locale/nl_NL/LC_MESSAGES/django.po index 3f7c14464..fa57cd6aa 100644 --- a/src/locale/nl_NL/LC_MESSAGES/django.po +++ b/src/locale/nl_NL/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 21:47\n" "Last-Translator: \n" "Language-Team: Dutch\n" "Language: nl_NL\n" @@ -429,20 +429,24 @@ msgid "Portuguese (Brazil)" msgstr "Portugees (Brazilië)" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "" + +#: paperless/settings.py:305 msgid "Italian" msgstr "Italiaans" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "Roemeens" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" msgstr "Russisch" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" -msgstr "" +msgstr "Spaans" #: paperless/urls.py:118 msgid "Paperless-ng administration" diff --git a/src/locale/pt_BR/LC_MESSAGES/django.po b/src/locale/pt_BR/LC_MESSAGES/django.po index 2f2e9c875..84d1c2c54 100644 --- a/src/locale/pt_BR/LC_MESSAGES/django.po +++ b/src/locale/pt_BR/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 21:47\n" "Last-Translator: \n" "Language-Team: Portuguese, Brazilian\n" "Language: pt_BR\n" @@ -429,18 +429,22 @@ msgid "Portuguese (Brazil)" msgstr "Português (Brasil)" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "" + +#: paperless/settings.py:305 msgid "Italian" msgstr "Italiano" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "Romeno" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" msgstr "" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" msgstr "" diff --git a/src/locale/pt_PT/LC_MESSAGES/django.po b/src/locale/pt_PT/LC_MESSAGES/django.po index c65e0356a..a22858ce4 100644 --- a/src/locale/pt_PT/LC_MESSAGES/django.po +++ b/src/locale/pt_PT/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 21:48\n" "Last-Translator: \n" "Language-Team: Portuguese\n" "Language: pt_PT\n" @@ -60,7 +60,7 @@ msgstr "algoritmo correspondente" #: documents/models.py:55 msgid "is insensitive" -msgstr "" +msgstr "é insensível" #: documents/models.py:74 documents/models.py:120 msgid "correspondent" @@ -124,19 +124,19 @@ msgstr "" #: documents/models.py:155 msgid "checksum" -msgstr "" +msgstr "soma de verificação" #: documents/models.py:159 msgid "The checksum of the original document." -msgstr "" +msgstr "A soma de verificação do documento original." #: documents/models.py:163 msgid "archive checksum" -msgstr "" +msgstr "arquivar soma de verificação" #: documents/models.py:168 msgid "The checksum of the archived document." -msgstr "" +msgstr "A soma de verificação do documento arquivado." #: documents/models.py:172 documents/models.py:328 msgid "created" @@ -160,19 +160,19 @@ msgstr "nome de ficheiro" #: documents/models.py:198 msgid "Current filename in storage" -msgstr "" +msgstr "Nome do arquivo atual no armazenamento" #: documents/models.py:202 msgid "archive filename" -msgstr "" +msgstr "nome do ficheiro de arquivo" #: documents/models.py:208 msgid "Current archive filename in storage" -msgstr "" +msgstr "Nome do arquivo atual em no armazenamento" #: documents/models.py:212 msgid "archive serial number" -msgstr "" +msgstr "numero de série de arquivo" #: documents/models.py:217 msgid "The position of this document in your physical document archive." @@ -228,11 +228,11 @@ msgstr "registos" #: documents/models.py:344 documents/models.py:396 msgid "saved view" -msgstr "" +msgstr "vista guardada" #: documents/models.py:345 msgid "saved views" -msgstr "" +msgstr "vistas guardadas" #: documents/models.py:348 msgid "user" @@ -244,23 +244,23 @@ msgstr "exibir no painel de controlo" #: documents/models.py:357 msgid "show in sidebar" -msgstr "" +msgstr "mostrar na navegação lateral" #: documents/models.py:361 msgid "sort field" -msgstr "" +msgstr "ordenar campo" #: documents/models.py:364 msgid "sort reverse" -msgstr "" +msgstr "ordenar inversamente" #: documents/models.py:370 msgid "title contains" -msgstr "" +msgstr "o título contém" #: documents/models.py:371 msgid "content contains" -msgstr "" +msgstr "o conteúdo contém" #: documents/models.py:372 msgid "ASN is" @@ -268,11 +268,11 @@ msgstr "" #: documents/models.py:373 msgid "correspondent is" -msgstr "" +msgstr "o correspondente é" #: documents/models.py:374 msgid "document type is" -msgstr "" +msgstr "o tipo de documento é" #: documents/models.py:375 msgid "is in inbox" @@ -280,51 +280,51 @@ msgstr "" #: documents/models.py:376 msgid "has tag" -msgstr "" +msgstr "tem etiqueta" #: documents/models.py:377 msgid "has any tag" -msgstr "" +msgstr "tem qualquer etiqueta" #: documents/models.py:378 msgid "created before" -msgstr "" +msgstr "criado antes" #: documents/models.py:379 msgid "created after" -msgstr "" +msgstr "criado depois" #: documents/models.py:380 msgid "created year is" -msgstr "" +msgstr "ano criada é" #: documents/models.py:381 msgid "created month is" -msgstr "" +msgstr "mês criado é" #: documents/models.py:382 msgid "created day is" -msgstr "" +msgstr "dia criado é" #: documents/models.py:383 msgid "added before" -msgstr "" +msgstr "adicionada antes" #: documents/models.py:384 msgid "added after" -msgstr "" +msgstr "adicionado depois de" #: documents/models.py:385 msgid "modified before" -msgstr "" +msgstr "modificado antes de" #: documents/models.py:386 msgid "modified after" -msgstr "" +msgstr "modificado depois de" #: documents/models.py:387 msgid "does not have tag" -msgstr "" +msgstr "não tem etiqueta" #: documents/models.py:388 msgid "does not have ASN" @@ -332,61 +332,61 @@ msgstr "" #: documents/models.py:389 msgid "title or content contains" -msgstr "" +msgstr "título ou conteúdo contém" #: documents/models.py:400 msgid "rule type" -msgstr "" +msgstr "tipo de regra" #: documents/models.py:404 msgid "value" -msgstr "" +msgstr "valor" #: documents/models.py:410 msgid "filter rule" -msgstr "" +msgstr "regra de filtragem" #: documents/models.py:411 msgid "filter rules" -msgstr "" +msgstr "regras de filtragem" #: documents/serialisers.py:53 #, python-format msgid "Invalid regular expression: %(error)s" -msgstr "" +msgstr "Expressão regular inválida: %(error)s" #: documents/serialisers.py:177 msgid "Invalid color." -msgstr "" +msgstr "Cor invalida." #: documents/serialisers.py:451 #, python-format msgid "File type %(type)s not supported" -msgstr "" +msgstr "Tipo de arquivo %(type)s não suportado" #: documents/templates/index.html:21 msgid "Paperless-ng is loading..." -msgstr "" +msgstr "O paperless-ng está a carregar..." #: documents/templates/registration/logged_out.html:13 msgid "Paperless-ng signed out" -msgstr "" +msgstr "Paperless-ng com sessão terminada" #: documents/templates/registration/logged_out.html:41 msgid "You have been successfully logged out. Bye!" -msgstr "" +msgstr "Terminou a sessão com sucesso. Adeus!" #: documents/templates/registration/logged_out.html:42 msgid "Sign in again" -msgstr "" +msgstr "Iniciar sessão novamente" #: documents/templates/registration/login.html:13 msgid "Paperless-ng sign in" -msgstr "" +msgstr "Inicio de sessão Paperless-ng" #: documents/templates/registration/login.html:42 msgid "Please sign in." -msgstr "" +msgstr "Por favor inicie sessão." #: documents/templates/registration/login.html:45 msgid "Your username and password didn't match. Please try again." @@ -394,15 +394,15 @@ msgstr "" #: documents/templates/registration/login.html:48 msgid "Username" -msgstr "" +msgstr "Nome de utilizador" #: documents/templates/registration/login.html:49 msgid "Password" -msgstr "" +msgstr "Palavra-passe" #: documents/templates/registration/login.html:54 msgid "Sign in" -msgstr "" +msgstr "Iniciar sessão" #: paperless/settings.py:298 msgid "English (US)" @@ -426,31 +426,35 @@ msgstr "Français" #: paperless/settings.py:303 msgid "Portuguese (Brazil)" -msgstr "" +msgstr "Português (Brasil)" #: paperless/settings.py:304 -msgid "Italian" +msgid "Portuguese" msgstr "" #: paperless/settings.py:305 -msgid "Romanian" -msgstr "" +msgid "Italian" +msgstr "Italiano" #: paperless/settings.py:306 +msgid "Romanian" +msgstr "Romeno" + +#: paperless/settings.py:307 msgid "Russian" msgstr "Russo" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" -msgstr "" +msgstr "Espanhol" #: paperless/urls.py:118 msgid "Paperless-ng administration" -msgstr "" +msgstr "Administração do Paperless-ng" #: paperless_mail/admin.py:25 msgid "Filter" -msgstr "" +msgstr "Filtro" #: paperless_mail/admin.py:27 msgid "Paperless will only process mails that match ALL of the filters given below." @@ -602,35 +606,35 @@ msgstr "" #: paperless_mail/models.py:138 msgid "filter attachment filename" -msgstr "" +msgstr "filtrar nome do arquivo anexo" #: paperless_mail/models.py:140 msgid "Only consume documents which entirely match this filename if specified. Wildcards such as *.pdf or *invoice* are allowed. Case insensitive." -msgstr "" +msgstr "Consumir apenas documentos que correspondam inteiramente ao nome de arquivo se especificado. Genéricos como *.pdf ou *fatura* são permitidos. Não é sensível a letras maiúsculas/minúsculas." #: paperless_mail/models.py:146 msgid "maximum age" -msgstr "" +msgstr "idade máxima" #: paperless_mail/models.py:148 msgid "Specified in days." -msgstr "" +msgstr "Especificado em dias." #: paperless_mail/models.py:151 msgid "attachment type" -msgstr "" +msgstr "tipo de anexo" #: paperless_mail/models.py:154 msgid "Inline attachments include embedded images, so it's best to combine this option with a filename filter." -msgstr "" +msgstr "Anexos embutidos incluem imagens incorporadas, por isso é melhor combinar esta opção com um filtro de nome do arquivo." #: paperless_mail/models.py:159 msgid "action" -msgstr "" +msgstr "ação" #: paperless_mail/models.py:165 msgid "action parameter" -msgstr "" +msgstr "parâmetro de ação" #: paperless_mail/models.py:167 msgid "Additional parameter for the action selected above, i.e., the target folder of the move to folder action." diff --git a/src/locale/ro_RO/LC_MESSAGES/django.po b/src/locale/ro_RO/LC_MESSAGES/django.po index 20918db1d..70194eff5 100644 --- a/src/locale/ro_RO/LC_MESSAGES/django.po +++ b/src/locale/ro_RO/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 22:42\n" "Last-Translator: \n" "Language-Team: Romanian\n" "Language: ro_RO\n" @@ -429,18 +429,22 @@ msgid "Portuguese (Brazil)" msgstr "Portugheză (Brazilia)" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "Portugheză" + +#: paperless/settings.py:305 msgid "Italian" msgstr "Italiană" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "Română" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" msgstr "Rusă" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" msgstr "" diff --git a/src/locale/ru_RU/LC_MESSAGES/django.po b/src/locale/ru_RU/LC_MESSAGES/django.po index cbc5a4a60..bc5de736b 100644 --- a/src/locale/ru_RU/LC_MESSAGES/django.po +++ b/src/locale/ru_RU/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 22:42\n" "Last-Translator: \n" "Language-Team: Russian\n" "Language: ru_RU\n" @@ -328,11 +328,11 @@ msgstr "не имеет тега" #: documents/models.py:388 msgid "does not have ASN" -msgstr "" +msgstr "не имеет архивного номера" #: documents/models.py:389 msgid "title or content contains" -msgstr "" +msgstr "Название или содержимое включает" #: documents/models.py:400 msgid "rule type" @@ -429,20 +429,24 @@ msgid "Portuguese (Brazil)" msgstr "Portuguese (Brazil)" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "Португальский" + +#: paperless/settings.py:305 msgid "Italian" msgstr "Italian" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "Romanian" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" -msgstr "" +msgstr "Русский" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" -msgstr "" +msgstr "Испанский" #: paperless/urls.py:118 msgid "Paperless-ng administration" diff --git a/src/locale/xh_ZA/LC_MESSAGES/django.po b/src/locale/xh_ZA/LC_MESSAGES/django.po index 5b3f83e84..149e2b7ad 100644 --- a/src/locale/xh_ZA/LC_MESSAGES/django.po +++ b/src/locale/xh_ZA/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 21:47\n" "Last-Translator: \n" "Language-Team: Xhosa\n" "Language: xh_ZA\n" @@ -429,18 +429,22 @@ msgid "Portuguese (Brazil)" msgstr "crwdns2726:0crwdne2726:0" #: paperless/settings.py:304 +msgid "Portuguese" +msgstr "crwdns3424:0crwdne3424:0" + +#: paperless/settings.py:305 msgid "Italian" msgstr "crwdns2728:0crwdne2728:0" -#: paperless/settings.py:305 +#: paperless/settings.py:306 msgid "Romanian" msgstr "crwdns2730:0crwdne2730:0" -#: paperless/settings.py:306 +#: paperless/settings.py:307 msgid "Russian" msgstr "crwdns3414:0crwdne3414:0" -#: paperless/settings.py:307 +#: paperless/settings.py:308 msgid "Spanish" msgstr "crwdns3420:0crwdne3420:0" diff --git a/src/locale/zh_CN/LC_MESSAGES/django.po b/src/locale/zh_CN/LC_MESSAGES/django.po index c6c59ecf7..2c7ae4244 100644 --- a/src/locale/zh_CN/LC_MESSAGES/django.po +++ b/src/locale/zh_CN/LC_MESSAGES/django.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: paperless-ng\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-14 13:33+0100\n" -"PO-Revision-Date: 2021-03-14 13:57\n" +"POT-Creation-Date: 2021-03-17 22:31+0100\n" +"PO-Revision-Date: 2021-03-17 21:48\n" "Last-Translator: \n" "Language-Team: Chinese Simplified\n" "Language: zh_CN\n" @@ -429,18 +429,22 @@ msgid "Portuguese (Brazil)" msgstr "" #: paperless/settings.py:304 -msgid "Italian" +msgid "Portuguese" msgstr "" #: paperless/settings.py:305 -msgid "Romanian" +msgid "Italian" msgstr "" #: paperless/settings.py:306 -msgid "Russian" +msgid "Romanian" msgstr "" #: paperless/settings.py:307 +msgid "Russian" +msgstr "" + +#: paperless/settings.py:308 msgid "Spanish" msgstr "" diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 014f2e95d..1a033af38 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -301,6 +301,7 @@ def __get_boolean(key, default="NO"): ("nl-nl", _("Dutch")), ("fr-fr", _("French")), ("pt-br", _("Portuguese (Brazil)")), + ("pt-pt", _("Portuguese")), ("it-it", _("Italian")), ("ro-ro", _("Romanian")), ("ru-ru", _("Russian")), diff --git a/src/paperless/version.py b/src/paperless/version.py index cb3d5bf5f..183d98d3f 100644 --- a/src/paperless/version.py +++ b/src/paperless/version.py @@ -1 +1 @@ -__version__ = (1, 3, 1) +__version__ = (1, 3, 2)