From 9b645f90c89a9c9bd454eb720ba80277c5bbe19e Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 31 Aug 2016 13:38:11 -0700 Subject: [PATCH] Remove Android requirement from install flow // FREEBIE --- _locales/en/messages.json | 18 ++++++++++++++++++ js/views/install_view.js | 7 ++++--- options.html | 1 - 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index b4ca335a..0223928b 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -168,6 +168,24 @@ } } }, + "installSignalLinks": { + "message": "First, install Signal on your Android or iPhone.
We'll link your devices and keep your messages in sync.", + "description": "Prompt the user to install Signal on their phone before linking", + "placeholders": { + "play_store": { + "content": "$1", + "example": "href='http://example.com'" + }, + "app_store": { + "content": "$1", + "example": "href='http://example.com'" + } + } + }, + "installGotIt": { + "message": "Got it", + "description": "Button for the user to confirm that they have Signal installed." + }, "installIHaveSignalButton": { "message": "I have Signal for Android", "description": "Button for the user to confirm that they have Signal for Android" diff --git a/js/views/install_view.js b/js/views/install_view.js index dc713f00..3cfdfd96 100644 --- a/js/views/install_view.js +++ b/js/views/install_view.js @@ -8,14 +8,15 @@ Whisper.InstallView = Whisper.View.extend({ templateName: 'install_flow_template', render_attributes: function() { - var installSignalHref = 'https://play.google.com/store/apps/details?id=org.thoughtcrime.securesms'; + var playStoreHref = 'https://play.google.com/store/apps/details?id=org.thoughtcrime.securesms'; + var appStoreHref = 'https://itunes.apple.com/us/app/signal-private-messenger/id874139669'; var twitterHref = 'https://twitter.com/whispersystems'; return { installWelcome: i18n('installWelcome'), installTagline: i18n('installTagline'), installGetStartedButton: i18n('installGetStartedButton'), - installSignalLink: this.i18n_with_link('installSignalLink', installSignalHref), - installIHaveSignalButton: i18n('installIHaveSignalButton'), + installSignalLink: this.i18n_with_link('installSignalLinks', playStoreHref, appStoreHref), + installIHaveSignalButton: i18n('installGotIt'), installFollowUs: this.i18n_with_link('installFollowUs', twitterHref), installAndroidInstructions: i18n('installAndroidInstructions'), installLinkingWithNumber: i18n('installLinkingWithNumber'), diff --git a/options.html b/options.html index 58d431ca..dc0f28e2 100644 --- a/options.html +++ b/options.html @@ -26,7 +26,6 @@