From 51fa87e9786cfdb1c5b022c7bc3cb8e9d5d4cf81 Mon Sep 17 00:00:00 2001
From: David Dorchies <david.dorchies@irstea.fr>
Date: Mon, 8 Feb 2021 18:44:28 +0100
Subject: [PATCH] feat(macrorugo): Warning message for concentration out of
 bounds

Fix cassiopee/jalhyd#284
---
 src/locale/messages.en.json | 1 +
 src/locale/messages.fr.json | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/locale/messages.en.json b/src/locale/messages.en.json
index d8e491c12..0bd6698e8 100755
--- a/src/locale/messages.en.json
+++ b/src/locale/messages.en.json
@@ -677,6 +677,7 @@
     "WARNING_NEGATIVE_SILL": "Sill should be positive",
     "WARNING_RAMP_WIDTH_LOWER_THAN_PATTERN_WIDTH": "Ramp width should contain at least one block (%pattern%m)",
     "WARNING_RAMP_WIDTH_NOT_MULTIPLE_OF_HALF_PATTERN_WIDTH": "Ramp width should be a multiple of half the block width (%halfPattern%m). Nearest values are %lower% and %higher%",
+    "WARNING_MACRORUGO_CONCENTRATION_OUT_OF_BOUNDS": "The calculation formula has not been experimentally validated for block concentrations not between 8% and 20%",
     "WARNING_YN_SECTION_PENTE_NEG_NULLE_HNORMALE_INF": "Normal depth: slope is negative or zero, normal depth is infinite",
     "WARNING_YN_SECTION_NON_CONVERGENCE_NEWTON_HNORMALE": "Normal depth: non convergence of the calculation (Newton's method)",
     "WARNING_SECTION_OVERFLOW": "Overflow: water elevation exceeds embankment elevation",
diff --git a/src/locale/messages.fr.json b/src/locale/messages.fr.json
index ca8fc400d..2935be35e 100755
--- a/src/locale/messages.fr.json
+++ b/src/locale/messages.fr.json
@@ -678,6 +678,7 @@
     "WARNING_NEGATIVE_SILL": "La pelle du seuil devrait être positive",
     "WARNING_RAMP_WIDTH_LOWER_THAN_PATTERN_WIDTH": "La largeur de la rampe devrait comprendre au moins un motif de plot (%pattern%m)",
     "WARNING_RAMP_WIDTH_NOT_MULTIPLE_OF_HALF_PATTERN_WIDTH": "La largeur de la rampe devrait être un multiple d'un demi motif (%halfPattern%m). Les valeurs voisines sont %lower% et %higher%",
+    "WARNING_MACRORUGO_CONCENTRATION_OUT_OF_BOUNDS": "La formule de calcul n'est pas validée expérimentalement pour des concentrations de blocs non compris entre 8% et 20%",
     "WARNING_YN_SECTION_PENTE_NEG_NULLE_HNORMALE_INF": "Hauteur normale&nbsp;: pente négative ou nulle, hauteur normale infinie",
     "WARNING_YN_SECTION_NON_CONVERGENCE_NEWTON_HNORMALE": "Hauteur normale&nbsp;: non convergence du calcul (méthode de Newton)",
     "WARNING_SECTION_OVERFLOW": "Débordement&nbsp;: la cote de l'eau dépasse la cote de berge",
-- 
GitLab