From 1f8422eb24606b9dcdc64744e57b7d227e92ded4 Mon Sep 17 00:00:00 2001
From: Mathias Chouet <mathias.chouet@irstea.fr>
Date: Wed, 20 May 2020 15:55:53 +0200
Subject: [PATCH] Fix missing translation

---
 e2e/check-translations.e2e-spec.ts                          | 6 +++++-
 .../components/generic-calculator/calculator.component.ts   | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/e2e/check-translations.e2e-spec.ts b/e2e/check-translations.e2e-spec.ts
index b16c9a56d..ddcd763d3 100644
--- a/e2e/check-translations.e2e-spec.ts
+++ b/e2e/check-translations.e2e-spec.ts
@@ -77,7 +77,11 @@ describe("ngHyd − check translation of all calculators", () => {
           }
 
           // check absence of "*** message not found" in whole DOM
-          expect(await browser.getPageSource()).not.toContain("*** message not found");
+          const ps = await browser.getPageSource();
+          expect(ps).not.toContain("*** message not found");
+          /* const pos = ps.indexOf("*** message not found");
+          const bout = ps.substring(pos - 50, pos + 50);
+          console.log("------------ BOUT ---------------", bout); */
 
           // empty session
           await navBar.clickMenuButton();
diff --git a/src/app/components/generic-calculator/calculator.component.ts b/src/app/components/generic-calculator/calculator.component.ts
index 53894e408..a72bd526e 100644
--- a/src/app/components/generic-calculator/calculator.component.ts
+++ b/src/app/components/generic-calculator/calculator.component.ts
@@ -814,7 +814,7 @@ export class GenericCalculatorComponent implements OnInit, DoCheck, AfterViewChe
 
     public get uitextGenerateRuSpTitle(): string {
         if (! this.generateRuSpEnabled) {
-            return this.intlService.localizeText("INFO_CALCULER_D_ABORD");
+            return this.intlService.localizeText("INFO_CALCULATE_FIRST");
         } else {
             return "";
         }
-- 
GitLab