From 0c8f8fc142c6c4364c94656f98342cb95dc8401a Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Mon, 18 Nov 2019 12:07:30 +0100
Subject: [PATCH] VarResults: look for children variable names in parent config
 file (the only one that is loaded at this time)

---
 src/app/results/var-results.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/results/var-results.ts b/src/app/results/var-results.ts
index 77114f2ee..168dd2393 100644
--- a/src/app/results/var-results.ts
+++ b/src/app/results/var-results.ts
@@ -1,7 +1,7 @@
 import { CalculatorResults } from "./calculator-results";
 import { CalculatedParamResults } from "./param-calc-results";
 import { NgParameter } from "../formulaire/ngparam";
-import { ResultElement, ParamFamily, capitalize, ChildNub, Nub } from "jalhyd";
+import { ResultElement, ParamFamily, capitalize, Nub } from "jalhyd";
 import { ServiceFactory } from "../services/service-factory";
 import { PlottableData } from "./plottable-data";
 import { ChartType } from "./chart-type";
@@ -132,7 +132,7 @@ export class VarResults extends CalculatedParamResults implements PlottableData
         const match = /^([0-9]+)_(.+)$/.exec(symbol);
         if (match !== null) {
             const pos = +match[1];
-            ct = sn.getChildren()[pos].calcType;
+            // only parent translation file is loaded; look for children translations in it // ct = sn.getChildren()[pos].calcType;
             symbol = match[2];
             const cn = capitalize(ServiceFactory.instance.i18nService.childName(sn));
             ret += sprintf(ServiceFactory.instance.i18nService.localizeText("INFO_STUFF_N"), cn) + (pos + 1) + " : ";
-- 
GitLab