From 60b323ee568cc8ee14f37a7b1aa5c68a733a7936 Mon Sep 17 00:00:00 2001 From: toto <toto@tata> Date: Wed, 23 Nov 2022 13:49:00 +0100 Subject: [PATCH] fix: parametric section generation select: translate placeholder text refs #496 --- .../select-section-details/select-section-details.component.ts | 2 +- src/locale/messages.en.json | 1 + src/locale/messages.fr.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/select-section-details/select-section-details.component.ts b/src/app/components/select-section-details/select-section-details.component.ts index f315e94d1..d42b1e86a 100644 --- a/src/app/components/select-section-details/select-section-details.component.ts +++ b/src/app/components/select-section-details/select-section-details.component.ts @@ -56,6 +56,6 @@ export class SelectSectionDetailsComponent { } public get uitextPlaceholder() { - return "Générer une section paramétrée pour..."; + return this.intlService.localizeText("INFO_REMOUSRESULTS_PARAM_SECTION_PLACEHOLDER"); } } diff --git a/src/locale/messages.en.json b/src/locale/messages.en.json index ce82a8a71..b6eb8d07f 100755 --- a/src/locale/messages.en.json +++ b/src/locale/messages.en.json @@ -580,6 +580,7 @@ "INFO_REMOUSRESULTS_TIRANT": "Water depth", "INFO_REMOUSRESULTS_TIRANTCRITIQUE": "Critical water level", "INFO_REMOUSRESULTS_TIRANTNORMAL": "Normal water level", + "INFO_REMOUSRESULTS_PARAM_SECTION_PLACEHOLDER": "Generate a parametric section for...", "INFO_REPORT_BUG_BODY": "This is an issue report.\n\nPlease describe quickly the issue you encountered, and the steps you followed:\n\n\n\n\n--- Current session state - do not modify text below ---\n------------------------------------------------------------------------\n\n", "INFO_REPORT_BUG_SUBJECT": "Issue report", "INFO_REQUIRES": "requires", diff --git a/src/locale/messages.fr.json b/src/locale/messages.fr.json index 618be937a..36110f731 100755 --- a/src/locale/messages.fr.json +++ b/src/locale/messages.fr.json @@ -581,6 +581,7 @@ "INFO_REMOUSRESULTS_TIRANT": "Tirant d'eau", "INFO_REMOUSRESULTS_TIRANTCRITIQUE": "Tirant d'eau critique", "INFO_REMOUSRESULTS_TIRANTNORMAL": "Tirant d'eau normal", + "INFO_REMOUSRESULTS_PARAM_SECTION_PLACEHOLDER": "Générer une section paramétrée pour...", "INFO_REPORT_BUG_BODY": "Ceci est un rapport d'erreur.\n\nMerci de décrire rapidement ci-dessous le problème rencontré, et les étapes qui vous y ont mené:\n\n\n\n\n--- État de la session en cours - ne pas modifier le texte ci-dessous ---\n--------------------------------------------------------------------------------------------\n\n", "INFO_REPORT_BUG_SUBJECT": "Rapport d'erreur", "INFO_REQUIRES": "dépend de", -- GitLab