Skip to content
Snippets Groups Projects
Commit 717a6340 authored by toto's avatar toto
Browse files

fix: parametric section generation select: replace x,y by abscissa/water depth

refs #496
parent 95eff526
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!178Resolve "Courbe de remous: visualiser les profils de sections"
......@@ -2,6 +2,7 @@ import { Component, Input } from '@angular/core';
import { Router } from '@angular/router';
import { FormulaireDefinition } from 'app/formulaire/definition/form-definition';
import { FormulaireService } from 'app/services/formulaire.service';
import { I18nService } from 'app/services/internationalisation.service';
import { fv } from 'app/util';
import { formattedValue } from 'jalhyd';
......@@ -31,11 +32,14 @@ export class SelectSectionDetailsComponent {
constructor(
private formulaireService: FormulaireService,
private router: Router
private router: Router,
private intlService: I18nService
) { }
public pointLabel(p: any): string {
return "x : " + formattedValue(p.x, 1) + " y : " + fv(p.z);
const abs = this.intlService.localizeText("INFO_REMOUSRESULTS_ABSCISSE");
const tirant = this.intlService.localizeText("INFO_REMOUSRESULTS_TIRANT");
return abs + " : " + formattedValue(p.x, 1) + " - " + tirant + " : " + fv(p.z);
}
/**
......
......@@ -577,7 +577,7 @@
"INFO_REMOUSRESULTS_ABSCISSE": "Abscissa",
"INFO_REMOUSRESULTS_BERGE": "Embankment",
"INFO_REMOUSRESULTS_FOND": "Bottom",
"INFO_REMOUSRESULTS_TIRANT": "Water depth (m)",
"INFO_REMOUSRESULTS_TIRANT": "Water depth",
"INFO_REMOUSRESULTS_TIRANTCRITIQUE": "Critical water level",
"INFO_REMOUSRESULTS_TIRANTNORMAL": "Normal water level",
"INFO_REPORT_BUG_BODY": "This is an issue report.\n\nPlease describe quickly the issue you encountered, and the steps you followed:\n\n\n\n\n--- Current session state - do not modify text below ---\n------------------------------------------------------------------------\n\n",
......
......@@ -578,7 +578,7 @@
"INFO_REMOUSRESULTS_ABSCISSE": "Abscisse",
"INFO_REMOUSRESULTS_BERGE": "Berge",
"INFO_REMOUSRESULTS_FOND": "Fond",
"INFO_REMOUSRESULTS_TIRANT": "Tirant d'eau (m)",
"INFO_REMOUSRESULTS_TIRANT": "Tirant d'eau",
"INFO_REMOUSRESULTS_TIRANTCRITIQUE": "Tirant d'eau critique",
"INFO_REMOUSRESULTS_TIRANTNORMAL": "Tirant d'eau normal",
"INFO_REPORT_BUG_BODY": "Ceci est un rapport d'erreur.\n\nMerci de décrire rapidement ci-dessous le problème rencontré, et les étapes qui vous y ont mené:\n\n\n\n\n--- État de la session en cours - ne pas modifier le texte ci-dessous ---\n--------------------------------------------------------------------------------------------\n\n",
......
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