diff --git a/src/app/results/var-results.ts b/src/app/results/var-results.ts index 77114f2ee2f8921e480c5366e98a16c1fe10a815..168dd2393aab31291453ab7243bc2e7b9d806324 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) + " : ";