diff --git a/src/app/components/results-graph/graph-type.component.ts b/src/app/components/results-graph/graph-type.component.ts index ca69c8689d440e497ca92b2aa5a86c347ceca6f0..c96f6c53257d276a45ee07e3a7d8f936d861af85 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 00d565c1f017e2f3f686857c8a8cd86bfd1f73f7..371f5ad9911db9673b2f752a720e27df8f4f0969 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 d3c20e38fa391d20a8d519ee7904351dcb3dde23..89b1b0e37a5bdd4468c2783c67d3e4616e92dea1 100644 --- a/src/locale/messages.fr.json +++ b/src/locale/messages.fr.json @@ -138,6 +138,7 @@ "INFO_PABPUISSANCE_TITRE": "Passe à bassin : 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",