From 7f37021f24fccae87bae206a99700518ecc862a0 Mon Sep 17 00:00:00 2001 From: Vladimir Airikh Date: Mon, 28 Nov 2022 20:11:36 +0300 Subject: [PATCH] TILES-4794 fixed copyright (#567) Co-authored-by: Vladimir-Ayrikh --- src/DGAttribution/lang/ar.js | 1 - src/DGAttribution/lang/cs.js | 3 +-- src/DGAttribution/lang/en.js | 3 +-- src/DGAttribution/lang/es.js | 3 +-- src/DGAttribution/lang/it.js | 3 +-- src/DGAttribution/lang/ru.js | 1 - src/DGAttribution/src/DGAttribution.js | 8 +------- src/DGAttribution/templates/copyright.dust | 5 ----- src/DGAttribution/test/DGAttributionSpec.js | 17 +---------------- src/DGProjectDetector/src/DGProjectDetector.js | 11 +---------- 10 files changed, 7 insertions(+), 48 deletions(-) diff --git a/src/DGAttribution/lang/ar.js b/src/DGAttribution/lang/ar.js index 8a9d609a7..1eb7a2785 100644 --- a/src/DGAttribution/lang/ar.js +++ b/src/DGAttribution/lang/ar.js @@ -1,7 +1,6 @@ DG.Control.Attribution.Dictionary.ar = { license_agreement: 'إتفاقية ترخيص', work_on: 'يعمل بتطبيق 2GIS', - work_on_with_osm: 'API 2GIS', open_on: 'Open in 2GIS', route_on: 'Route on 2GIS' }; diff --git a/src/DGAttribution/lang/cs.js b/src/DGAttribution/lang/cs.js index 69d062ca8..58298c31c 100644 --- a/src/DGAttribution/lang/cs.js +++ b/src/DGAttribution/lang/cs.js @@ -1,5 +1,4 @@ DG.Control.Attribution.Dictionary.cs = { license_agreement: 'Licenční smlouva', - work_on: 'Pracuje na API 2GIS', - work_on_with_osm: 'API 2GIS' + work_on: 'Pracuje na API 2GIS' }; diff --git a/src/DGAttribution/lang/en.js b/src/DGAttribution/lang/en.js index 01511561b..f3ae2f003 100644 --- a/src/DGAttribution/lang/en.js +++ b/src/DGAttribution/lang/en.js @@ -1,5 +1,4 @@ DG.Control.Attribution.Dictionary.en = { license_agreement: 'License agreement', - work_on: 'Uses 2GIS API', - work_on_with_osm: '2GIS API' + work_on: 'Uses 2GIS API' }; diff --git a/src/DGAttribution/lang/es.js b/src/DGAttribution/lang/es.js index 1cd7af378..57d34f49a 100644 --- a/src/DGAttribution/lang/es.js +++ b/src/DGAttribution/lang/es.js @@ -1,5 +1,4 @@ DG.Control.Attribution.Dictionary.es = { license_agreement : 'Acuerdo de licencia', - work_on: '2GIS API', - work_on_with_osm: '2GIS API' + work_on: '2GIS API' }; diff --git a/src/DGAttribution/lang/it.js b/src/DGAttribution/lang/it.js index f3e979919..ff4bad046 100644 --- a/src/DGAttribution/lang/it.js +++ b/src/DGAttribution/lang/it.js @@ -1,5 +1,4 @@ DG.Control.Attribution.Dictionary.it = { license_agreement : 'Accordo di licenza', - work_on: '2GIS API', - work_on_with_osm: '2GIS API' + work_on: '2GIS API' }; diff --git a/src/DGAttribution/lang/ru.js b/src/DGAttribution/lang/ru.js index 435df1e31..b4baecedf 100644 --- a/src/DGAttribution/lang/ru.js +++ b/src/DGAttribution/lang/ru.js @@ -1,7 +1,6 @@ DG.Control.Attribution.Dictionary.ru = { license_agreement: 'Лицензионное соглашение', work_on: 'Работает на API 2ГИС', - work_on_with_osm: 'API 2ГИС', open_on: 'Открыть в 2ГИС', route_on: 'Доехать с 2ГИС' }; diff --git a/src/DGAttribution/src/DGAttribution.js b/src/DGAttribution/src/DGAttribution.js index 1a0acda77..c47d8c663 100644 --- a/src/DGAttribution/src/DGAttribution.js +++ b/src/DGAttribution/src/DGAttribution.js @@ -127,13 +127,9 @@ DG.Control.Attribution.include({ } }, - _update: function(lang, osm, countryCode) { + _update: function(lang, countryCode) { if (!this._map) { return; } - if (typeof osm !== 'undefined') { - this._osm = osm; - } - if (typeof countryCode !== 'undefined') { this._countryCode = countryCode; } @@ -194,10 +190,8 @@ DG.Control.Attribution.include({ var isHideButton = btn.label == 'open_on' || btn.label == 'route_on' || this._logotype; return { - 'osm': this._osm, 'logotype': isHideButton, 'work_on': this.t('work_on'), - 'work_on_with_osm': this.t('work_on_with_osm'), 'lang': lang, 'copyright_apilink': this._getLink('copyright_apilink'), 'copyright_license': this._getLink('copyright_license'), diff --git a/src/DGAttribution/templates/copyright.dust b/src/DGAttribution/templates/copyright.dust index 1ae458a0a..3407435c3 100644 --- a/src/DGAttribution/templates/copyright.dust +++ b/src/DGAttribution/templates/copyright.dust @@ -1,12 +1,7 @@