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

Internationalisation du composant ApplicationSetupComponent

parent 27e00950
No related branches found
No related tags found
1 merge request!1Resolve "créer un composant de paramétrage de l'application"
<div class="container-fluid">
<div class="row">
<div class="col-4 mx-auto">
<h1>Paramètres de l'application</h1>
<h1>{{uitextTitle}}</h1>
<br/>
</div>
</div>
......@@ -9,14 +9,14 @@
<!-- précision d'affichage -->
<div class="row">
<div class="col-4 mx-auto">
<base-param-input title="Précision d'affichage" [param]="_displayPrec"></base-param-input>
<base-param-input title="{{uitextDisplayAccuracy}}" [param]="_displayPrec"></base-param-input>
</div>
</div>
<!-- précision de calcul -->
<div class="row">
<div class="col-4 mx-auto">
<base-param-input title="Précision de calcul" [param]="_computePrec"></base-param-input>
<base-param-input title="{{uitextComputeAccuracy}}" [param]="_computePrec"></base-param-input>
</div>
</div>
......
......@@ -37,6 +37,18 @@ export class ApplicationSetupComponent implements Observer {
this.intlService.setLocale(lc);
}
private get uitextTitle(): string {
return this.intlService.localizeText("INFO_SETUP_TITLE");
}
private get uitextDisplayAccuracy(): string {
return this.intlService.localizeText("INFO_SETUP_PRECISION_AFFICHAGE");
}
private get uitextComputeAccuracy(): string {
return this.intlService.localizeText("INFO_SETUP_PRECISION_CALCUL");
}
// interface Observer
public update(sender: any, data: any): void {
......
......@@ -67,5 +67,8 @@
"INFO_REMOUSRESULTS_FOND": "Bottom",
"INFO_REMOUSRESULTS_BERGE": "Embankment",
"INFO_REMOUSRESULTS_TIRANTNORMAL": "Normal water level",
"INFO_REMOUSRESULTS_TIRANTCRITIQUE": "Critical water level"
"INFO_REMOUSRESULTS_TIRANTCRITIQUE": "Critical water level",
"INFO_SETUP_TITLE": "Application setup",
"INFO_SETUP_PRECISION_AFFICHAGE": "Display accuracy",
"INFO_SETUP_PRECISION_CALCUL": "Computation accuracy"
}
\ No newline at end of file
......@@ -73,5 +73,8 @@
"INFO_REMOUSRESULTS_FOND": "Fond",
"INFO_REMOUSRESULTS_BERGE": "Berge",
"INFO_REMOUSRESULTS_TIRANTNORMAL": "Tirant d'eau normal",
"INFO_REMOUSRESULTS_TIRANTCRITIQUE": "Tirant d'eau critique"
"INFO_REMOUSRESULTS_TIRANTCRITIQUE": "Tirant d'eau critique",
"INFO_SETUP_TITLE": "Paramètres de l'application",
"INFO_SETUP_PRECISION_AFFICHAGE": "Précision d'affichage",
"INFO_SETUP_PRECISION_CALCUL": "Précision de calcul"
}
\ No newline at end of file
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