Skip to content

Commit

Permalink
translations: update catalogs
Browse files Browse the repository at this point in the history
* 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 <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze committed Dec 16, 2020
1 parent 509dd33 commit 9b6ad71
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/rero/ng-core/src/lib/record/editor/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion projects/rero/ng-core/src/lib/translate/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
1 change: 1 addition & 0 deletions projects/rero/ng-core/src/lib/translate/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
1 change: 1 addition & 0 deletions projects/rero/ng-core/src/lib/translate/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 2 additions & 1 deletion projects/rero/ng-core/src/lib/translate/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
3 changes: 2 additions & 1 deletion projects/rero/ng-core/src/lib/translate/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 9b6ad71

Please sign in to comment.