diff --git a/config.template.js b/config.template.js index 93e9bfe..9c29543 100644 --- a/config.template.js +++ b/config.template.js @@ -30,6 +30,8 @@ //BR.conf.profilesUrl = 'file://YOUR_PATH_TO/profiles2/'; } + BR.conf.privacyPolicyUrl = '/privacypolicy.html'; + // Set the initial position and zoom level of the map BR.conf.initialMapLocation = [50.99, 9.86]; BR.conf.initialMapZoom = 5; diff --git a/index.html b/index.html index da35227..53c3e8f 100644 --- a/index.html +++ b/index.html @@ -292,7 +292,7 @@ data files.

- Privacy PolicyPrivacy Policy, = 400 ? i18next.t('map.attribution-osm-long') : i18next.t('map.attribution-osm-short'); + var privacyPolicyUrl = BR.conf.privacyPolicyUrl || 'https://brouter.de/privacypolicy.html'; map.attributionControl.setPrefix( '© ' + osmAttribution + @@ -40,7 +41,9 @@ BR.Map = { ' · ' + i18next.t('map.copyright') + '' + - ' · ' + + ' · ' + i18next.t('map.privacy') + '' ); diff --git a/js/index.js b/js/index.js index 66096a8..1256073 100644 --- a/js/index.js +++ b/js/index.js @@ -426,7 +426,9 @@ }, function(err, t) { jqueryI18next.init(i18next, $); - $('html').localize(); + $('html').localize({ + privacyPolicyUrl: BR.conf.privacyPolicyUrl || 'https://brouter.de/privacypolicy.html' + }); mapContext = BR.Map.initMap(); verifyTouchStyle(mapContext); diff --git a/locales/en.json b/locales/en.json index 8cd6a5d..d5c103b 100644 --- a/locales/en.json +++ b/locales/en.json @@ -8,7 +8,7 @@ "data": "Data:", "data-description": "This is based on OpenStreetMap. It is usually updated daily, see dates of data files.", "description": "Online service of the BRouter routing engine. For the offline Android app and more information see brouter.de", - "details": "Privacy Policy, \nCredits,\nChangelog and\nmore info on the client.", + "details": "Privacy Policy, \nCredits,\nChangelog and\nmore info on the client.", "support": "General discussions/questions, support", "title": "About" },