Skip to content

Commit

Permalink
locale(layers): datasource unavailable or missing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Jul 8, 2020
1 parent 5ccd693 commit 97d8229
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/geo/src/lib/datasource/shared/datasource.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class DataSourceService {
this.capabilitiesService.getWMSOptions(context).pipe(
catchError(e => {
const title = this.languageService.translate.instant(
'igo.core.errors.uncaught.title'
'igo.geo.dataSource.unavailableTitle'
);
const message = this.languageService.translate.instant(
'igo.geo.dataSource.unavailable',
Expand All @@ -173,7 +173,7 @@ export class DataSourceService {
catchError(e => {
e.error.toDisplay = true;
e.error.title = this.languageService.translate.instant(
'igo.core.errors.uncaught.title'
'igo.geo.dataSource.unavailableTitle'
);
e.error.message = this.languageService.translate.instant(
'igo.geo.dataSource.optionsApiUnavailable'
Expand Down Expand Up @@ -209,7 +209,7 @@ export class DataSourceService {
}),
catchError(() => {
const title = this.languageService.translate.instant(
'igo.core.errors.uncaught.title'
'igo.geo.dataSource.unavailableTitle'
);
const message = this.languageService.translate.instant(
'igo.geo.dataSource.unavailable',
Expand Down
3 changes: 2 additions & 1 deletion packages/geo/src/locale/en.geo.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"title": "Basemaps"
},
"dataSource": {
"unavailableTitle": "Layer unavailable",
"optionsApiUnavailable": "Layer information could not be retrieved. Some layers may not present the correct information.",
"unavailable": "The layer '{{value}}' is unavailable at the moment."
"unavailable": "The layer '{{value}}' is unavailable at the moment or you don't have the required permissions."
},
"dropGeoFile": {
"invalid": {
Expand Down
3 changes: 2 additions & 1 deletion packages/geo/src/locale/fr.geo.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"title": "Fonds de carte"
},
"dataSource": {
"unavailableTitle": "Couche indisponible",
"optionsApiUnavailable": "L'information sur les couches n'a pas pu être récupérée. Certaines couches pourraient ne pas présenter la bonne information.",
"unavailable": "La couche '{{value}}' est indisponible pour le moment."
"unavailable": "La couche '{{value}}' est indisponible pour le moment ou vous n'avez pas les permissions requises."
},
"dropGeoFile": {
"invalid": {
Expand Down

0 comments on commit 97d8229

Please sign in to comment.