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

Tooltips on calculator icon buttons

parent 500b2020
No related branches found
No related tags found
No related merge requests found
......@@ -4,13 +4,21 @@
<div class="hyd-window-btns">
<!-- bouton d'aide -->
<mat-icon *ngIf="enableHelpButton" (click)="openHelp()" color="accent">help</mat-icon>
<mat-icon *ngIf="enableHelpButton" (click)="openHelp()" color="accent" [title]="uitextOpenHelp">
help
</mat-icon>
<!-- bouton de duplication -->
<mat-icon id="clone-calc" (click)="cloneCalculator()">content_copy</mat-icon>
<mat-icon id="clone-calc" (click)="cloneCalculator()" [title]="uitextCloneCalculator">
content_copy
</mat-icon>
<!-- bouton de sauvegarde -->
<mat-icon id="save-calc" (click)="saveCalculator()">file_download</mat-icon>
<mat-icon id="save-calc" (click)="saveCalculator()" [title]="uitextSaveCalculator">
file_download
</mat-icon>
<!-- bouton de fermeture -->
<mat-icon id="close-calc" (click)="closeCalculator()">close</mat-icon>
<mat-icon id="close-calc" (click)="closeCalculator()" [title]="uitextCloseCalculator">
close
</mat-icon>
</div>
<!-- titre -->
......
......@@ -178,6 +178,22 @@ export class GenericCalculatorComponent extends BaseComponent implements OnInit,
return this.intlService.localizeText("INFO_CALCULATOR_RESULTS_GENERATE_PAB");
}
public get uitextOpenHelp() {
return this.intlService.localizeText("INFO_CALCULATOR_OPEN_HELP");
}
public get uitextCloneCalculator() {
return this.intlService.localizeText("INFO_CALCULATOR_CLONE");
}
public get uitextSaveCalculator() {
return this.intlService.localizeText("INFO_CALCULATOR_SAVE");
}
public get uitextCloseCalculator() {
return this.intlService.localizeText("INFO_CALCULATOR_CLOSE");
}
/**
* Triggered at calculator instanciation
*/
......
......@@ -46,9 +46,13 @@
"ERROR_STRUCTURE_Q_TROP_ELEVE": "The flow passing through the other devices is too high: the requested parameter is not calculable.",
"INFO_CALCULATOR_CALC_NAME": "Calculator name",
"INFO_CALCULATOR_CALCULER": "Compute",
"INFO_CALCULATOR_CLONE": "Duplicate",
"INFO_CALCULATOR_CLOSE": "Close",
"INFO_CALCULATOR_OPEN_HELP": "Help",
"INFO_CALCULATOR_PARAMFIXES": "Fixed parameters",
"INFO_CALCULATOR_RESULTS_GENERATE_PAB": "Generate a fish ladder",
"INFO_CALCULATOR_RESULTS_TITLE": "Results",
"INFO_CALCULATOR_SAVE": "Save",
"INFO_CALCULATOR_VALEURS": "Values",
"INFO_CLOISONS_TITRE_COURT": "Cross walls",
"INFO_CLOISONS_TITRE": "Fish ladder: Cross walls",
......
......@@ -46,9 +46,13 @@
"ERROR_STRUCTURE_Q_TROP_ELEVE": "Le débit passant par les autres ouvrages est trop élevé: le paramètre demandé n'est pas calculable.",
"INFO_CALCULATOR_CALC_NAME": "Nom du module de calcul",
"INFO_CALCULATOR_CALCULER": "Calculer",
"INFO_CALCULATOR_CLONE": "Dupliquer",
"INFO_CALCULATOR_CLOSE": "Fermer",
"INFO_CALCULATOR_OPEN_HELP": "Aide",
"INFO_CALCULATOR_PARAMFIXES": "Paramètres fixés",
"INFO_CALCULATOR_RESULTS_GENERATE_PAB": "Générer une passe à bassins",
"INFO_CALCULATOR_RESULTS_TITLE": "Résultats",
"INFO_CALCULATOR_SAVE": "Enregistrer",
"INFO_CALCULATOR_VALEURS": "Valeurs",
"INFO_CLOISONS_TITRE_COURT": "Cloisons",
"INFO_CLOISONS_TITRE": "Passe à bassins&nbsp;: Cloisons",
......
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