From 96b2b42ba7503a15c4bb87fe443c607e186cb66a Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 25 Dec 2019 16:54:14 -0500 Subject: [PATCH] Make link to privacy notice in splash screen translatable (closes #7171) --- data/core.yaml | 3 ++- dist/locales/en.json | 3 ++- modules/ui/splash.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/data/core.yaml b/data/core.yaml index e1bd84f65..3fd1e0841 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -803,7 +803,8 @@ en: welcome: Welcome to the iD OpenStreetMap editor text: "iD is a friendly but powerful tool for contributing to the world's best free world map. This is version {version}. For more information see {website} and report bugs at {github}." privacy_update: "Our privacy policy has recently been updated." - privacy: "{updateMessage} By using this software, you agree to do so in accordance with the iD privacy policy, which can be found {here}." + privacy_policy: iD privacy policy + privacy: "{updateMessage} By using this software, you agree to do so in accordance with the {privacyLink}." walkthrough: "Start the Walkthrough" start: "Edit now" source_switch: diff --git a/dist/locales/en.json b/dist/locales/en.json index 97f7c0eea..e11e4d815 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -1005,7 +1005,8 @@ "welcome": "Welcome to the iD OpenStreetMap editor", "text": "iD is a friendly but powerful tool for contributing to the world's best free world map. This is version {version}. For more information see {website} and report bugs at {github}.", "privacy_update": "Our privacy policy has recently been updated.", - "privacy": "{updateMessage} By using this software, you agree to do so in accordance with the iD privacy policy, which can be found {here}.", + "privacy_policy": "iD privacy policy", + "privacy": "{updateMessage} By using this software, you agree to do so in accordance with the {privacyLink}.", "walkthrough": "Start the Walkthrough", "start": "Edit now" }, diff --git a/modules/ui/splash.js b/modules/ui/splash.js index b73ef229e..8807b4ed8 100644 --- a/modules/ui/splash.js +++ b/modules/ui/splash.js @@ -54,7 +54,8 @@ export function uiSplash(context) { .append('p') .html(t('splash.privacy', { updateMessage: updateMessage, - here: 'here' + privacyLink: '' + + t('splash.privacy_policy') + '' })); let buttonWrap = introModal