Skip to content
Snippets Groups Projects
Commit 0c8f8fc1 authored by mathias.chouet's avatar mathias.chouet
Browse files

VarResults: look for children variable names in parent config file (the only...

VarResults: look for children variable names in parent config file (the only one that is loaded at this time)
parent bd32c8be
No related branches found
No related tags found
1 merge request!69Resolve "Module y = a.x + b"
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) + " : ";
......
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