From e197db9d2ee1999a51ca3b3582215b9b47ab45d1 Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Mon, 11 Feb 2019 17:08:46 +0100
Subject: [PATCH] Traduction

---
 src/app/components/results-graph/graph-type.component.ts | 6 +++++-
 src/locale/messages.en.json                              | 1 +
 src/locale/messages.fr.json                              | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/app/components/results-graph/graph-type.component.ts b/src/app/components/results-graph/graph-type.component.ts
index ca69c8689..c96f6c532 100644
--- a/src/app/components/results-graph/graph-type.component.ts
+++ b/src/app/components/results-graph/graph-type.component.ts
@@ -12,13 +12,17 @@ import { I18nService } from "../../services/internationalisation/internationalis
 })
 export class GraphTypeSelectComponent implements IObservable {
     private _entries: GraphType[] = [GraphType.Histogram, GraphType.Scatter];
-    private _entriesLabels: string[] = ["Histogramme", "XY"];
+    private _entriesLabels: string[] = [];
     private _selected: GraphType;
 
     private _observable: Observable;
 
     constructor(private intlService: I18nService) {
         this._observable = new Observable();
+        this._entriesLabels = [
+            this.intlService.localizeText("INFO_PARAMFIELD_GRAPH_TYPE_HISTOGRAM"),
+            "XY"
+        ];
     }
 
     public get entries(): GraphType[] {
diff --git a/src/locale/messages.en.json b/src/locale/messages.en.json
index 00d565c1f..371f5ad99 100644
--- a/src/locale/messages.en.json
+++ b/src/locale/messages.en.json
@@ -138,6 +138,7 @@
     "INFO_PABPUISSANCE_TITRE": "Fish ladder: dissipated power",
     "INFO_PARALLELSTRUCTURE_TITRE": "Parallel structures",
     "INFO_PARAMFIELD_GRAPH_TYPE": "Graph type",
+    "INFO_PARAMFIELD_GRAPH_TYPE_HISTOGRAM": "Histogram",
     "INFO_PARAMFIELD_IN_CALCULATION": "In calculation",
     "INFO_PARAMFIELD_IN_CALCULATION_INITIAL_VALUE": "initial value",
     "INFO_PARAMFIELD_PARAMCALCULER": "Calculate",
diff --git a/src/locale/messages.fr.json b/src/locale/messages.fr.json
index d3c20e38f..89b1b0e37 100644
--- a/src/locale/messages.fr.json
+++ b/src/locale/messages.fr.json
@@ -138,6 +138,7 @@
     "INFO_PABPUISSANCE_TITRE": "Passe à bassin&nbsp;: puissance dissipée",
     "INFO_PARALLELSTRUCTURE_TITRE": "Lois d'ouvrages",
     "INFO_PARAMFIELD_GRAPH_TYPE": "Type de graphe",
+    "INFO_PARAMFIELD_GRAPH_TYPE_HISTOGRAM": "Histogramme",
     "INFO_PARAMFIELD_IN_CALCULATION": "En calcul",
     "INFO_PARAMFIELD_IN_CALCULATION_INITIAL_VALUE": "valeur initiale",
     "INFO_PARAMFIELD_PARAMCALCULER": "calculer",
-- 
GitLab