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

Traduction

parent aa521c38
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,7 @@ export class DialogEditParamComputedComponent implements OnInit {
}
public get uitextEditParamComputedInitialValue() {
return "Modifier la valeur initiale (à traduire)";
// return this.intlService.localizeText("INFO_OPTION_ALL");
return this.intlService.localizeText("INFO_DIALOG_COMPUTED_VALUE_TITLE");
}
public ngOnInit() {
......
......@@ -48,7 +48,7 @@
<mat-card id="calc-card-results" fxFlex.gt-xs="1 0 400px" fxFlex.lt-sm="1 0 300px">
<mat-card-header>
<mat-card-title>
Resultats (à traduire)
{{ uitextResultsTitle }}
</mat-card-title>
</mat-card-header>
<mat-card-content>
......
......@@ -142,6 +142,10 @@ export class GenericCalculatorComponent extends BaseComponent implements OnInit,
return this.intlService.localizeText("INFO_CALCULATOR_CALC_NAME");
}
public get uitextResultsTitle() {
return this.intlService.localizeText("INFO_CALCULATOR_RESULTS_TITLE");
}
ngOnInit() {
this.intlService.addObserver(this);
this.formulaireService.addObserver(this);
......
......@@ -3,6 +3,7 @@ import { MatDialog } from "@angular/material";
import { NgParameter } from "../../formulaire/ngparam";
import { ParamCalculability } from "jalhyd";
import { DialogEditParamComputedComponent } from "../dialog-edit-param-computed/dialog-edit-param-computed.component";
import { I18nService } from "../../services/internationalisation/internationalisation.service";
@Component({
selector: "param-computed",
......@@ -20,7 +21,8 @@ export class ParamComputedComponent {
public title: string;
constructor(
private editInitialValueDialog: MatDialog
private editInitialValueDialog: MatDialog,
private intlService: I18nService
) { }
public get isDicho() {
......@@ -28,9 +30,10 @@ export class ParamComputedComponent {
}
public get infoText() {
let text = "En calcul (à traduire)"; // @TODO traduire "in calculation"
let text = this.intlService.localizeText("INFO_PARAMFIELD_IN_CALCULATION");
if (this.isDicho) {
text += " (valeur initiale: " + this.param.getValue() + ")";
text += " (" + this.intlService.localizeText("INFO_PARAMFIELD_IN_CALCULATION_INITIAL_VALUE")
+ ": " + this.param.getValue() + ")";
}
return text;
}
......
......@@ -4,6 +4,7 @@ import { NgParameter } from "../../formulaire/ngparam";
import { ServiceFactory } from "../../services/service-factory";
import { ParamValueMode, Observer } from "jalhyd";
import { FormulaireService } from "../../services/formulaire/formulaire.service";
import { I18nService } from "../..//services/internationalisation/internationalisation.service";
@Component({
selector: "param-link",
......@@ -53,9 +54,9 @@ export class ParamLinkComponent implements OnChanges, Observer, OnDestroy {
private _formService: FormulaireService;
public label = "Choix du paramètre lié (à traduire)";
constructor() {
constructor(
private intlService: I18nService
) {
this.valid = new EventEmitter();
this._formService = ServiceFactory.instance.formulaireService;
this._formService.addObserver(this);
......@@ -69,6 +70,10 @@ export class ParamLinkComponent implements OnChanges, Observer, OnDestroy {
return this._message;
}
public get label() {
return this.intlService.localizeText("INFO_PARAMFIELD_PARAMLIE_LABEL");
}
public set currentLinkedParam(p: any) {
for (let i = 0; i < this._linkableParams.length; i++) {
if (this._linkableParams[i].value.uid === p.uid) {
......
import { Component } from "@angular/core";
import { Observable, IObservable, Observer } from "jalhyd";
import { GraphType } from "../../results/var-results";
import { I18nService } from "../../services/internationalisation/internationalisation.service";
@Component({
selector: "graph-type",
......@@ -13,9 +14,7 @@ export class GraphTypeSelectComponent implements IObservable {
private _observable: Observable;
public label = "Type de graphe (à traduire)";
constructor() {
constructor(private intlService: I18nService) {
this._observable = new Observable();
}
......@@ -42,6 +41,10 @@ export class GraphTypeSelectComponent implements IObservable {
}
}
public get label() {
return this.intlService.localizeText("INFO_PARAMFIELD_GRAPH_TYPE");
}
// interface IObservable
/**
......
......@@ -34,6 +34,7 @@
"INFO_CALCULATOR_CALC_NAME": "Calculator name",
"INFO_CALCULATOR_CALCULER": "Compute",
"INFO_CALCULATOR_PARAMFIXES": "Fixed parameters",
"INFO_CALCULATOR_RESULTS_TITLE": "Results",
"INFO_CALCULATOR_VALEURS": "Values",
"INFO_CLOISONS_TITRE": "Fish ladder: Cross walls",
"INFO_CLOSE_DIALOGUE_TEXT": "Warning ! Parameters and results will be lost. Really close?",
......@@ -51,6 +52,7 @@
"INFO_EXTRARES_ENUM_STRUCTUREFLOWREGIME_1": "Partially submerged",
"INFO_EXTRARES_ENUM_STRUCTUREFLOWREGIME_2": "Submerged",
"INFO_EXTRARES_ENUM_STRUCTUREFLOWREGIME_3": "Zero flow",
"INFO_DIALOG_COMPUTED_VALUE_TITLE": "Edit initial value",
"INFO_DIALOG_LOAD_SESSION_FILENAME": "Choose a file",
"INFO_DIALOG_LOAD_SESSION_TITLE": "Load calculator modules",
"INFO_DIALOG_SAVE_SESSION_FILENAME": "File name",
......@@ -135,9 +137,13 @@
"INFO_PABDIMENSIONS_TITRE": "Fish ladder: dimensions",
"INFO_PABPUISSANCE_TITRE": "Fish ladder: dissipated power",
"INFO_PARALLELSTRUCTURE_TITRE": "Parallel structures",
"INFO_PARAMFIELD_GRAPH_TYPE": "Graph type",
"INFO_PARAMFIELD_IN_CALCULATION": "In calculation",
"INFO_PARAMFIELD_IN_CALCULATION_INITIAL_VALUE": "initial value",
"INFO_PARAMFIELD_PARAMCALCULER": "Calculate",
"INFO_PARAMFIELD_PARAMFIXE": "Fixed",
"INFO_PARAMFIELD_PARAMLIE": "Link",
"INFO_PARAMFIELD_PARAMLIE_LABEL": "Linked parameter",
"INFO_PARAMFIELD_PARAMVARIER": "Vary",
"INFO_PARAMFIELD_PASVARIATION": "With a variation step of",
"INFO_PARAMFIELD_VALEURMAXI": "To maximum value",
......
......@@ -34,6 +34,7 @@
"INFO_CALCULATOR_CALC_NAME": "Nom du module de calcul",
"INFO_CALCULATOR_CALCULER": "Calculer",
"INFO_CALCULATOR_PARAMFIXES": "Paramètres fixés",
"INFO_CALCULATOR_RESULTS_TITLE": "Résultats",
"INFO_CALCULATOR_VALEURS": "Valeurs",
"INFO_CLOISONS_TITRE": "Passe à bassin&nbsp;: Cloisons",
"INFO_CLOSE_DIALOGUE_TEXT": "Attention&nbsp;! Les paramètres et résultats de la calculette seront perdus. Vraiment fermer&nbsp;?",
......@@ -51,6 +52,7 @@
"INFO_EXTRARES_ENUM_STRUCTUREFLOWREGIME_1": "Partiellement noyé",
"INFO_EXTRARES_ENUM_STRUCTUREFLOWREGIME_2": "Noyé",
"INFO_EXTRARES_ENUM_STRUCTUREFLOWREGIME_3": "Débit nul",
"INFO_DIALOG_COMPUTED_VALUE_TITLE": "Modifier la valeur initiale",
"INFO_DIALOG_LOAD_SESSION_FILENAME": "Choisir un fichier",
"INFO_DIALOG_LOAD_SESSION_TITLE": "Charger des modules de calcul",
"INFO_DIALOG_SAVE_SESSION_FILENAME": "Nom de fichier",
......@@ -135,9 +137,13 @@
"INFO_PABDIMENSIONS_TITRE": "Passe à bassin&nbsp;: dimensions",
"INFO_PABPUISSANCE_TITRE": "Passe à bassin&nbsp;: puissance dissipée",
"INFO_PARALLELSTRUCTURE_TITRE": "Lois d'ouvrages",
"INFO_PARAMFIELD_GRAPH_TYPE": "Type de graphe",
"INFO_PARAMFIELD_IN_CALCULATION": "En calcul",
"INFO_PARAMFIELD_IN_CALCULATION_INITIAL_VALUE": "valeur initiale",
"INFO_PARAMFIELD_PARAMCALCULER": "calculer",
"INFO_PARAMFIELD_PARAMFIXE": "fixé",
"INFO_PARAMFIELD_PARAMLIE": "lié",
"INFO_PARAMFIELD_PARAMLIE_LABEL": "Paramètre lié",
"INFO_PARAMFIELD_PARAMVARIER": "varier",
"INFO_PARAMFIELD_PASVARIATION": "Avec un pas de",
"INFO_PARAMFIELD_VALEURMAXI": "À la valeur maximum",
......
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