From 72c41cce455a8193753d55a592d22da0d276b27f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20De=CC=81le=CC=80ze?= Date: Wed, 16 Dec 2020 16:54:44 +0100 Subject: [PATCH] translations: update catalogs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Extracts new messages. * Adds a dot to `The form contains errors` message to avoid extracting the same message twice. Co-Authored-by: Sébastien Délèze --- projects/rero/ng-core/src/lib/record/editor/extensions.ts | 2 +- projects/rero/ng-core/src/lib/translate/i18n/de.json | 3 ++- projects/rero/ng-core/src/lib/translate/i18n/en.json | 1 + projects/rero/ng-core/src/lib/translate/i18n/en_US.json | 1 + projects/rero/ng-core/src/lib/translate/i18n/fr.json | 3 ++- projects/rero/ng-core/src/lib/translate/i18n/it.json | 3 ++- 6 files changed, 9 insertions(+), 4 deletions(-) diff --git a/projects/rero/ng-core/src/lib/record/editor/extensions.ts b/projects/rero/ng-core/src/lib/record/editor/extensions.ts index 3f01ccfd..486a0df7 100644 --- a/projects/rero/ng-core/src/lib/record/editor/extensions.ts +++ b/projects/rero/ng-core/src/lib/record/editor/extensions.ts @@ -196,7 +196,7 @@ export function registerTranslateExtension(translate: TranslateService) { { name: 'formError', // use a marker to force translation extraction due to a bad detection of ngx-translate-extract - message: () => translate.stream(_('The form contains errors')) + message: () => translate.stream(_('The form contains errors.')) }, { name: 'required', diff --git a/projects/rero/ng-core/src/lib/translate/i18n/de.json b/projects/rero/ng-core/src/lib/translate/i18n/de.json index 66638c88..e2d5a33c 100644 --- a/projects/rero/ng-core/src/lib/translate/i18n/de.json +++ b/projects/rero/ng-core/src/lib/translate/i18n/de.json @@ -78,5 +78,6 @@ "should be multiple of ${{step}}": "muss ein Vielfaches von ${{step}} sein", "should be null": "sollte null sein", "the value is already taken": "der Wert ist bereits vergeben", + "{{ total }} result": "{{ total }} result", "{{ total }} results": "{{ total }} Ergebnisse" -} +} \ No newline at end of file diff --git a/projects/rero/ng-core/src/lib/translate/i18n/en.json b/projects/rero/ng-core/src/lib/translate/i18n/en.json index c0b2e6ff..9955c7a8 100644 --- a/projects/rero/ng-core/src/lib/translate/i18n/en.json +++ b/projects/rero/ng-core/src/lib/translate/i18n/en.json @@ -78,5 +78,6 @@ "should be multiple of ${{step}}": "should be multiple of ${{step}}", "should be null": "should be null", "the value is already taken": "the value is already taken", + "{{ total }} result": "{{ total }} result", "{{ total }} results": "{{ total }} results" } \ No newline at end of file diff --git a/projects/rero/ng-core/src/lib/translate/i18n/en_US.json b/projects/rero/ng-core/src/lib/translate/i18n/en_US.json index c0b2e6ff..9955c7a8 100644 --- a/projects/rero/ng-core/src/lib/translate/i18n/en_US.json +++ b/projects/rero/ng-core/src/lib/translate/i18n/en_US.json @@ -78,5 +78,6 @@ "should be multiple of ${{step}}": "should be multiple of ${{step}}", "should be null": "should be null", "the value is already taken": "the value is already taken", + "{{ total }} result": "{{ total }} result", "{{ total }} results": "{{ total }} results" } \ No newline at end of file diff --git a/projects/rero/ng-core/src/lib/translate/i18n/fr.json b/projects/rero/ng-core/src/lib/translate/i18n/fr.json index 2435c679..9cea2902 100644 --- a/projects/rero/ng-core/src/lib/translate/i18n/fr.json +++ b/projects/rero/ng-core/src/lib/translate/i18n/fr.json @@ -78,5 +78,6 @@ "should be multiple of ${{step}}": "Doit être un multiple de ${{step}}", "should be null": "doit être vide", "the value is already taken": "cette valeur est déjà utilisée", + "{{ total }} result": "{{ total }} result", "{{ total }} results": "{{ total }} résultats" -} +} \ No newline at end of file diff --git a/projects/rero/ng-core/src/lib/translate/i18n/it.json b/projects/rero/ng-core/src/lib/translate/i18n/it.json index 2d0c0465..c959f856 100644 --- a/projects/rero/ng-core/src/lib/translate/i18n/it.json +++ b/projects/rero/ng-core/src/lib/translate/i18n/it.json @@ -78,5 +78,6 @@ "should be multiple of ${{step}}": "Deve essere un multiplo di ${{step}}", "should be null": "Deve essere vuoto", "the value is already taken": "Il valore è già utilizzato", + "{{ total }} result": "{{ total }} result", "{{ total }} results": "{{ total }} risultati" -} +} \ No newline at end of file