From 97d8229e5877a19c06d12ca37a7ecadf78291a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Barbeau?= Date: Wed, 8 Jul 2020 13:46:04 -0400 Subject: [PATCH] locale(layers): datasource unavailable or missing permissions --- .../geo/src/lib/datasource/shared/datasource.service.ts | 6 +++--- packages/geo/src/locale/en.geo.json | 3 ++- packages/geo/src/locale/fr.geo.json | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/geo/src/lib/datasource/shared/datasource.service.ts b/packages/geo/src/lib/datasource/shared/datasource.service.ts index c4602b8b80..c47520d702 100644 --- a/packages/geo/src/lib/datasource/shared/datasource.service.ts +++ b/packages/geo/src/lib/datasource/shared/datasource.service.ts @@ -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', @@ -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' @@ -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', diff --git a/packages/geo/src/locale/en.geo.json b/packages/geo/src/locale/en.geo.json index 610e52faba..e8f20ab266 100644 --- a/packages/geo/src/locale/en.geo.json +++ b/packages/geo/src/locale/en.geo.json @@ -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": { diff --git a/packages/geo/src/locale/fr.geo.json b/packages/geo/src/locale/fr.geo.json index 3db78a9fab..2eef63c98c 100644 --- a/packages/geo/src/locale/fr.geo.json +++ b/packages/geo/src/locale/fr.geo.json @@ -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": {