From ce13380533d404f09d1115114fffaf4ffd334700 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 30 Jun 2023 20:01:17 -0700 Subject: [PATCH] Add Slovak translation --- src-ui/angular.json | 1 + src-ui/messages.xlf | 25 +++++++++++++-------- src-ui/setup-jest.ts | 2 ++ src-ui/src/app/app.module.ts | 2 ++ src-ui/src/app/services/settings.service.ts | 6 +++++ src/paperless/settings.py | 1 + 6 files changed, 28 insertions(+), 9 deletions(-) diff --git a/src-ui/angular.json b/src-ui/angular.json index f61390ce2..8adb81ca3 100644 --- a/src-ui/angular.json +++ b/src-ui/angular.json @@ -34,6 +34,7 @@ "pt-PT": "src/locale/messages.pt_PT.xlf", "ro-RO": "src/locale/messages.ro_RO.xlf", "ru-RU": "src/locale/messages.ru_RU.xlf", + "sk-SK": "src/locale/messages.sk_SK.xlf", "sl-SI": "src/locale/messages.sl_SI.xlf", "sr-CS": "src/locale/messages.sr_CS.xlf", "sv-SE": "src/locale/messages.sv_SE.xlf", diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index 40063c059..de25dd5b2 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -5336,67 +5336,74 @@ 271 + + Slovak + + src/app/services/settings.service.ts + 277 + + Slovenian src/app/services/settings.service.ts - 277 + 283 Serbian src/app/services/settings.service.ts - 283 + 289 Swedish src/app/services/settings.service.ts - 289 + 295 Turkish src/app/services/settings.service.ts - 295 + 301 Chinese Simplified src/app/services/settings.service.ts - 301 + 307 ISO 8601 src/app/services/settings.service.ts - 318 + 324 Successfully completed one-time migratration of settings to the database! src/app/services/settings.service.ts - 429 + 435 Unable to migrate settings to the database, please try saving manually. src/app/services/settings.service.ts - 430 + 436 You can restart the tour from the settings page. src/app/services/settings.service.ts - 504 + 510 diff --git a/src-ui/setup-jest.ts b/src-ui/setup-jest.ts index 628c2a74c..4a7d1e815 100644 --- a/src-ui/setup-jest.ts +++ b/src-ui/setup-jest.ts @@ -25,6 +25,7 @@ import localePl from '@angular/common/locales/pl' import localePt from '@angular/common/locales/pt' import localeRo from '@angular/common/locales/ro' import localeRu from '@angular/common/locales/ru' +import localeSk from '@angular/common/locales/sk' import localeSl from '@angular/common/locales/sl' import localeSr from '@angular/common/locales/sr' import localeSv from '@angular/common/locales/sv' @@ -49,6 +50,7 @@ registerLocaleData(localePt, 'pt-BR') registerLocaleData(localePt, 'pt-PT') registerLocaleData(localeRo) registerLocaleData(localeRu) +registerLocaleData(localeSk) registerLocaleData(localeSl) registerLocaleData(localeSr) registerLocaleData(localeSv) diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts index 6c6d13f6c..c58866256 100644 --- a/src-ui/src/app/app.module.ts +++ b/src-ui/src/app/app.module.ts @@ -110,6 +110,7 @@ import localePl from '@angular/common/locales/pl' import localePt from '@angular/common/locales/pt' import localeRo from '@angular/common/locales/ro' import localeRu from '@angular/common/locales/ru' +import localeSk from '@angular/common/locales/sk' import localeSl from '@angular/common/locales/sl' import localeSr from '@angular/common/locales/sr' import localeSv from '@angular/common/locales/sv' @@ -134,6 +135,7 @@ registerLocaleData(localePt, 'pt-BR') registerLocaleData(localePt, 'pt-PT') registerLocaleData(localeRo) registerLocaleData(localeRu) +registerLocaleData(localeSk) registerLocaleData(localeSl) registerLocaleData(localeSr) registerLocaleData(localeSv) diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts index f47c6b7e9..dcb64210a 100644 --- a/src-ui/src/app/services/settings.service.ts +++ b/src-ui/src/app/services/settings.service.ts @@ -272,6 +272,12 @@ export class SettingsService { englishName: 'Russian', dateInputFormat: 'dd.mm.yyyy', }, + { + code: 'sk-sk', + name: $localize`Slovak`, + englishName: 'Slovak', + dateInputFormat: 'dd.mm.yyyy', + }, { code: 'sl-si', name: $localize`Slovenian`, diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 2b7a32091..763cf96fc 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -581,6 +581,7 @@ LANGUAGES = [ ("pt-pt", _("Portuguese")), ("ro-ro", _("Romanian")), ("ru-ru", _("Russian")), + ("sk-sk", _("Slovak")), ("sl-si", _("Slovenian")), ("sr-cs", _("Serbian")), ("sv-se", _("Swedish")),