Skip to content

Commit

Permalink
locale(filter): Various tooltip and translation (#472)
Browse files Browse the repository at this point in the history
* refactor(*) Various tooltip and translation

* typo

* typo

* typo
  • Loading branch information
pelord authored and mbarbeau committed Oct 21, 2019
1 parent 7e76ab4 commit bd75c67
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
</div>

<div class="igo-col igo-col-90 igo-col-100-m" *ngIf="(currentFilter.operator !== 'Intersects' && currentFilter.operator !== 'Contains' && currentFilter.operator !== 'Within')">
<mat-select [disabled]="!currentFilter.active" [(ngModel)]="currentFilter.operator" (selectionChange)="changeOperator(currentFilter)">
<mat-select
tooltip-position="below" matTooltipShowDelay="500" [matTooltip]="'igo.geo.filter.selectOperator' | translate"
[disabled]="!currentFilter.active" [(ngModel)]="currentFilter.operator" (selectionChange)="changeOperator(currentFilter)">
<mat-option *ngFor="let operator of ogcFilterOperators | keyvalue" [value]="operator.key">{{('igo.geo.operators.'+ operator.key) | translate}}</mat-option>
</mat-select>
</div>
Expand Down Expand Up @@ -164,7 +166,9 @@

<!-- PropertySpatial -->
<div class="igo-col igo-col-90 igo-col-100-m" *ngIf="(currentFilter.operator === 'Intersects' || currentFilter.operator === 'Contains' || currentFilter.operator === 'Within')">
<mat-select [disabled]="!currentFilter.active" [(ngModel)]="currentFilter.operator" (selectionChange)="changeOperator(currentFilter)">
<mat-select
matTooltipShowDelay="500" [matTooltip]="'igo.geo.filter.selectOperator' | translate" tooltip-position="below"
[disabled]="!currentFilter.active" [(ngModel)]="currentFilter.operator" (selectionChange)="changeOperator(currentFilter)">
<mat-option *ngFor="let operator of ogcFilterOperators | keyvalue" [value]="operator.key">{{('igo.geo.operators.'+ operator.key) | translate}}</mat-option>
</mat-select>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ <h4 (click)="toggleLegendOnClick()" matLine class="igo-layer-title" [matTooltip]
</button>

<button
tooltip-position="below"
matTooltipShowDelay="500"
[matTooltip]= "'igo.geo.layer.moreOptions' | translate"
mat-icon-button
color="primary"
igoCollapse
Expand Down
6 changes: 4 additions & 2 deletions packages/geo/src/locale/en.geo.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
"filterBy": "Filter by",
"advancedOgcFilters": "Advanced filters",
"placeholder": "Enter a value",
"placeholderSnrc": "Ex: 21L14"
"placeholderSnrc": "Ex: 21L14",
"selectOperator" : "Select an operator"
},
"spatialSelector": {
"fixedExtent": "Fixed extent",
Expand All @@ -105,11 +106,12 @@
"hideLayer": "Hide Layer",
"lowerLayer": "Bring layer backward",
"loadingLegendText": "Loading legend",
"filterPlaceholder": "Filter",
"filterPlaceholder": "Filter the layers list",
"noLegendText": "No legend available for this layer",
"noLegendScale": "No legend available for this scale",
"opacity": "Opacity",
"raiseLayer": "Bring layer forward",
"moreOptions": "More options",
"removeLayer": "Remove this layer from the map",
"showFeaturesList": "Show features list",
"showLayer": "Show Layer",
Expand Down
12 changes: 7 additions & 5 deletions packages/geo/src/locale/fr.geo.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
"filterBy": "Filtrer par",
"advancedOgcFilters": "Filtres avancés",
"placeholder": "Saisir une valeur",
"placeholderSnrc": "Ex: 21L14"
"placeholderSnrc": "Ex: 21L14",
"selectOperator" : "Choisir un opérateur"
},
"spatialSelector": {
"fixedExtent": "Étendue fixe",
Expand All @@ -105,21 +106,22 @@
"hideLayer": "Masquer la couche",
"lowerLayer": "Mettre en arrière",
"loadingLegendText": "Chargement de la légende",
"filterPlaceholder": "Filtre",
"filterPlaceholder": "Filtre la liste de couches",
"noLegendText": "Aucune légende disponible pour cette couche",
"noLegendScale": "Aucune légende disponible pour cette échelle",
"opacity": "Opacité",
"raiseLayer": "Mettre en avant",
"moreOptions": "Options sur la couche",
"removeLayer": "Retirer la couche de la carte",
"showFeaturesList": "Afficher la liste des entités",
"showLayer": "Afficher la couche",
"subsetLayersListKeyword": "Limiter l'affichage de la liste selon le titre ou par type (wms, wfs,...)",
"deleteKeyword": "Supprimer le mot-clé",
"subsetLayersListOnlyVisible": "Conserver les couches visibles",
"subsetLayersListOnlyInRange": "Conserver les couches qui sont dans la plage de résolution active",
"sortAlphabetically": "Trier la liste des couches alphabétiquement",
"subsetLayersListOnlyInRange": "Conserver les couches de la plage d'échelle active",
"sortAlphabetically": "Trier la liste des couches en ordre alphabétique",
"sortMapOrder": "Replacer les couches selon l'ordre cartographique",
"resetLayersList": "Supprimer le filtre appliqué à la liste",
"resetLayersList": "Rétablir l'affichage de l'ensemble des couches",
"trackFeature": "Suivre l'entité"
},
"download": {
Expand Down

0 comments on commit bd75c67

Please sign in to comment.