Skip to content
Snippets Groups Projects
Commit 9d37d055 authored by AUBRY JEAN-PASCAL's avatar AUBRY JEAN-PASCAL
Browse files

feat: refactor config.json module and translation error message

Refs #657
parent fb6f0507
No related branches found
No related tags found
2 merge requests!275Release v4.19.0,!253Resolve "Ajout de la passe à rugosité de fond"
Pipeline #165211 failed
......@@ -3,8 +3,8 @@
"id": "fs_hydraulique",
"type": "fieldset",
"fields": [
"Z1",
"Q"
"Q",
"Z1"
]
},
{
......@@ -12,32 +12,12 @@
"type": "fieldset",
"fields": [
"L",
"Cd",
"d65",
{
"id": "If",
"help": "hsl/pente.html"
},
{
"id": "P",
"allowEmpty": true
},
{
"id": "ZD1",
"allowEmpty": true
},
{
"id": "ZR1",
"allowEmpty": true
},
{
"id": "ZD2",
"allowEmpty": true
},
{
"id": "ZR2",
"allowEmpty": true
},
"Cdt",
"d65",
{
"id": "Ks",
"help": "pam/macrorugo.html#rugosite-de-fond"
......@@ -48,7 +28,20 @@
"id": "fs_type",
"type": "fieldset",
"fields": [
{
"id": "select_passtype",
"type": "select",
"property": "inclinedApron"
},
"ZF1",
{
"id": "ZD1",
"allowEmpty": true
},
{
"id": "ZR1",
"allowEmpty": true
},
{
"id": "Nb",
"allowEmpty": true
......
......@@ -17,23 +17,12 @@
"Cd0": "Shape (1 for round, 2 for square)",
"ZRL": "Upper upstream ramp bottom elevation",
"ZRR": "Lower upstream ramp bottom elevation",
"BR": "Total width",
"ZF1": "Upstream ramp bottom elevation",
"B": "Width",
"Y": "Water depth",
"xCenter": "Mid-apron abscissa",
"ZD1": "Upstream spilling elevation",
"ZR1": "Upstream apron elevation",
"ZD2": "Downstream spilling elevation",
"ZR2": "Downstream apron elevation",
"S": "Slope",
"P": "Space between baffles",
"ZD1": "Lower upstream ramp bottom elevation",
"ZR1": "Upper upstream ramp bottom elevation",
"Nb": "Number of baffles",
"L": "Total width of baffle / pattern (superactive)",
"a": "Height of the pattern / height and thickness of the chevron (chevrons)",
"N": "Number of patterns",
"M": "Number of longitudinal strips",
"Cd": "Discharge coefficient",
"L": "Total width of ramp",
"Cdt": "Discharge coefficient",
"d65": "d65",
......
......@@ -12,29 +12,12 @@
"Q": "Débit",
"If": "Pente",
"Ks": "Rugosité de fond",
"C": "Concentration de blocs",
"PBD": "Diamètre",
"PBH": "Hauteur",
"Cd0": "Forme (1 pour rond, 2 pour carré)",
"ZRL": "Cote de fond haut amont rampe",
"ZRR": "Cote de fond bas amont rampe",
"BR": "Largeur totale",
"ZF1": "Cote de fond amont rampe",
"B": "Largeur",
"Y": "Profondeur",
"xCenter": "Abscisse du milieu du radier",
"ZD1": "Cote de déversement à l'amont",
"ZR1": "Cote de radier à l'amont",
"ZD2": "Cote de déversement à l'aval",
"ZR2": "Cote de radier à l'aval",
"S": "Pente",
"P": "Espacement entre les ralentisseurs",
"ZD1": "Cote de fond bas amont rampe",
"ZR1": "Cote de fond haut amont rampe",
"Nb": "Nombre de ralentisseurs",
"L": "Largeur totale du ralentisseur / du motif (suractifs)",
"a": "Hauteur du motif / hauteur et épaisseur du chevron (chevrons)",
"N": "Nombre de motifs",
"M": "Nombre de bandes longitudinales",
"Cd": "Coefficient de débit",
"L": "Largeur totale de la rampe",
"Cdt": "Coefficient de débit",
"d65": "d65",
"PASSTYPE_0": "Radiers multiples",
......
......@@ -82,6 +82,7 @@
"ERROR_STRUCTURE_Q_TROP_ELEVE": "The flow passing through the other devices is too high: the requested parameter is not calculable.",
"ERROR_STRUCTURE_ZDV_PAS_CALCULABLE": "Parameter \"Crest elevation\" cannot be calculated with this discharge law",
"ERROR_STRUCTURE_Z_EGAUX_Q_NON_NUL": "Upstream and downstream elevations are equal but flow is not null",
"ERROR_ELEVATION_Z1_LOWER_THAN_ZF1": "than the upstream bottom elevation of the ramp",
"INFO_CALCULATOR_CALC_NAME": "Calculator name",
"INFO_CALCULATOR_CALCULER": "Compute",
"INFO_CALCULATOR_CLONE": "Duplicate",
......
......@@ -82,6 +82,7 @@
"ERROR_STRUCTURE_Q_TROP_ELEVE": "Le débit passant par les autres ouvrages est trop élevé : le paramètre demandé n'est pas calculable.",
"ERROR_STRUCTURE_ZDV_PAS_CALCULABLE": "Le paramètre \"Cote de radier\" ne peut pas être calculé avec cette loi de débit",
"ERROR_STRUCTURE_Z_EGAUX_Q_NON_NUL": "Les cotes amont aval sont égales et le débit n'est pas nul",
"ERROR_ELEVATION_Z1_LOWER_THAN_ZF1": "la cote amont est plus basse que la cote de fond amont de la rampe",
"INFO_CALCULATOR_CALC_NAME": "Nom du module de calcul",
"INFO_CALCULATOR_CALCULER": "Calculer",
"INFO_CALCULATOR_CLONE": "Dupliquer",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment