From f9d4de5c22cd4af38d5d02ef2ecb822a9dcfa184 Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Thu, 30 Jul 2020 10:56:08 +0200
Subject: [PATCH] Update config and translation for jalhyd#239

---
 src/app/calculators/espece/config.json | 6 +++++-
 src/locale/messages.en.json            | 3 +++
 src/locale/messages.fr.json            | 3 +++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/app/calculators/espece/config.json b/src/app/calculators/espece/config.json
index b5af5ca11..8764eee37 100644
--- a/src/app/calculators/espece/config.json
+++ b/src/app/calculators/espece/config.json
@@ -4,7 +4,11 @@
         "type": "fieldset",
         "fields": [
             {
-                "id": "PVMax",
+                "id": "PVMaxPrec",
+                "allowEmpty": true
+            },
+            {
+                "id": "PVMaxLim",
                 "allowEmpty": true
             }
         ]
diff --git a/src/locale/messages.en.json b/src/locale/messages.en.json
index c5095aacb..f50f324af 100644
--- a/src/locale/messages.en.json
+++ b/src/locale/messages.en.json
@@ -364,6 +364,8 @@
     "INFO_LIB_YMINSB": "Minimal water level on superactive baffles",
     "INFO_LIB_YMINPB": "Minimal water level on plane baffles",
     "INFO_LIB_PVMAX": "Maximal dissipated power",
+    "INFO_LIB_PVMAXPREC": "Recommanded maximal dissipated power",
+    "INFO_LIB_PVMAXLIM": "Limit maximal dissipated power",
     "INFO_LIB_PAB_CHART_SEUILS": "Weirs (%s)",
     "INFO_LINKED_VALUE_CHILD": "%s (%s, %s %s)",
     "INFO_LINKED_VALUE_EXTRA_RESULT_OF": "%s (%s)",
@@ -666,6 +668,7 @@
     "ERROR_VERIF_PAR_YMIN": "Water level %h% too low (minimum: %minY%)",
     "ERROR_VERIF_KO": "Crossability criteria are not met for at least one species group",
     "ERROR_VERIF_VARYING_KO": "Crossability criteria are not met for at least one species group, for all pass modalities",
+    "WARNING_VERIF_PAB_PVMAX": "Wall #%N%: dissipated power %PV% very high (recommanded: %maxPV%)",
     "ERROR_VERIF_SPECIES_GROUP_KO": "Crossability criteria are not met for species group ENUM_%speciesGroup%",
     "WARNING_VERIF_SPECIES_GROUP_OK_BUT": "Crossability criteria are met for species group ENUM_%speciesGroup%, but there are warnings",
     "INFO_VERIF_SPECIES_GROUP_OK": "Crossability criteria are met for species group ENUM_%speciesGroup%",
diff --git a/src/locale/messages.fr.json b/src/locale/messages.fr.json
index 6714a5327..ca2bce694 100644
--- a/src/locale/messages.fr.json
+++ b/src/locale/messages.fr.json
@@ -365,6 +365,8 @@
     "INFO_LIB_YMINSB": "Tirant d'eau minimal sur les ralentisseurs suractifs de fond",
     "INFO_LIB_YMINPB": "Tirant d'eau minimal sur les ralentisseurs plans",
     "INFO_LIB_PVMAX": "Puissance volumique dissipée maximale",
+    "INFO_LIB_PVMAXPREC": "Puissance volumique dissipée maximale recommandée",
+    "INFO_LIB_PVMAXLIM": "Puissance volumique dissipée maximale limite",
     "INFO_LIB_PAB_CHART_SEUILS": "Seuils (%s)",
     "INFO_LINKED_VALUE_CHILD": "%s (%s, %s %s)",
     "INFO_LINKED_VALUE_EXTRA_RESULT_OF": "%s (%s)",
@@ -670,6 +672,7 @@
     "ERROR_VERIF_KO": "Le franchissement est impossible pour au moins un groupe d'espèces",
     "ERROR_VERIF_VARYING_KO": "Le franchissement est impossible pour au moins un groupe d'espèces, pour toutes les modalités de la passe",
     "ERROR_VERIF_SPECIES_GROUP_KO": "ENUM_%speciesGroup% : franchissement impossible",
+    "WARNING_VERIF_PAB_PVMAX": "Cloison n°%N%&nbsp;: puissance dissipée %PV% très élevée (recommandée&nbsp;: %maxPV%)",
     "WARNING_VERIF_SPECIES_GROUP_OK_BUT": "ENUM_%speciesGroup% : OK, avec des avertissements",
     "INFO_VERIF_SPECIES_GROUP_OK": "ENUM_%speciesGroup% : OK",
     "ERROR_VERIF_SPECIES_NUB_KO": "FORM_ID_%uid%&nbsp;: franchissement impossible",
-- 
GitLab