Skip to content
Snippets Groups Projects
Commit 7c27a891 authored by francois.grand's avatar francois.grand
Browse files

#45 correction d'un bug de InternationalisationService.translateLabel() dans...

 #45 correction d'un bug de InternationalisationService.translateLabel() dans le cas d'un label ne représentant pas un code
parent e37dbbcb
No related branches found
No related tags found
1 merge request!20Resolve "Ouvrir / Enregistrer une session / une calculette"
......@@ -192,24 +192,27 @@ export class InternationalisationService extends Observable {
default:
const match = this.parseLabel(o);
if (match)
if (match) {
if (match[1] === "ouvrage")
res = this.localizeText("INFO_OUVRAGE") + "" + (+match[2] + 1);
const p = match[3];
switch (p) {
case "Q":
res += " : " + this.localizeText("INFO_GRANDEUR_" + p);
break;
const p = match[3];
switch (p) {
case "Q":
res += " : " + this.localizeText("INFO_GRANDEUR_" + p);
break;
case "Q_Mode":
res += " : " + this.localizeText("INFO_TYPE_ECOULEMENT");
break;
case "Q_Mode":
res += " : " + this.localizeText("INFO_TYPE_ECOULEMENT");
break;
case "Q_Regime":
res += " : " + this.localizeText("INFO_REGIME");
break;
case "Q_Regime":
res += " : " + this.localizeText("INFO_REGIME");
break;
}
}
else
res = o;
break;
}
}
......
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