Show Google Play Store CTA when on an iOS device in Android only country (Fixes #15328) (#15332)

This commit is contained in:
Alex Gibson 2024-10-18 17:26:06 +01:00 коммит произвёл GitHub
Родитель af9dbf5887
Коммит c502315cac
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 27 добавлений и 8 удалений

Просмотреть файл

@ -16,10 +16,20 @@
{% if heading %}
<h2 class="u-title-lg">{{ heading }}</h2>
{% endif %}
<p class="vpn-pricing-desktop-instruction u-body-lg">{{ ftl('vpn-pricing-scan-qrcode-to-download') }}</p>
<p class="vpn-pricing-desktop-instruction u-body-lg">
{% if android_sub_only %}
{{ ftl('vpn-pricing-scan-qrcode-to-download-android', fallback='vpn-pricing-scan-qrcode-to-download') }}
{% else %}
{{ ftl('vpn-pricing-scan-qrcode-to-download') }}
{% endif %}
</p>
<ol class="vpn-pricing-mobile-steps u-body-lg">
<li><span>{{ ftl('vpn-pricing-sign-up-on-your-mobile-device') }}</span></li>
{% if android_sub_only %}
<li><span>{{ ftl('vpn-pricing-sign-up-on-your-android-device', fallback='vpn-pricing-sign-up-on-your-mobile-device') }}</span></li>
{% else %}
<li><span>{{ ftl('vpn-pricing-sign-up-on-your-mobile-device') }}</span></li>
{% endif %}
<li><span>{{ ftl('vpn-pricing-connect-up-to-platforms', fallback='vpn-pricing-connect-up-to', devices=connect_devices) }}</span></li>
<li><span>{{ ftl('vpn-pricing-access', servers=connect_servers, countries=connect_countries) }}</span></li>
</ol>
@ -50,12 +60,19 @@
</ul>
<p class="vpn-pricing-mobile-button">
<a class="ga-product-download ios-cta mzp-c-button mzp-t-product mzp-t-xl" href="{{ ios_url }}" data-cta-text="Play Store" data-cta-type="mozilla_vpn">
{{ ftl('vpn-pricing-download-the-app') }}
</a>
<a class="ga-product-download android-cta mzp-c-button mzp-t-product mzp-t-xl" href="{{ android_url }}" data-cta-text="App Store" data-cta-type="mozilla_vpn">
{{ ftl('vpn-pricing-download-the-app') }}
</a>
{# In countries where people can only subscribe using the Google Play Store, we always link to that even for iOS. See #15328. #}
{% if android_sub_only %}
<a class="ga-product-download mzp-c-button mzp-t-product mzp-t-xl" href="{{ android_url }}" data-cta-text="Play Store" data-cta-type="mozilla_vpn">
{{ ftl('vpn-pricing-download-the-app') }}
</a>
{% else %}
<a class="ga-product-download ios-cta mzp-c-button mzp-t-product mzp-t-xl" href="{{ ios_url }}" data-cta-text="App Store" data-cta-type="mozilla_vpn">
{{ ftl('vpn-pricing-download-the-app') }}
</a>
<a class="ga-product-download android-cta mzp-c-button mzp-t-product mzp-t-xl" href="{{ android_url }}" data-cta-text="Play Store" data-cta-type="mozilla_vpn">
{{ ftl('vpn-pricing-download-the-app') }}
</a>
{% endif %}
</p>
</div>
<div class="mzp-c-split-media mzp-l-split-h-center">

Просмотреть файл

@ -63,5 +63,7 @@ vpn-pricing-if-already-subscribed = If youre already subscribed to { -brand-n
## Mobile only subscription copy
vpn-pricing-scan-qrcode-to-download = To download the app, scan the QR Code with your mobile device or tablet
vpn-pricing-scan-qrcode-to-download-android = To download the app, scan the QR Code with your Android device or tablet
vpn-pricing-sign-up-on-your-mobile-device = Sign up for a { -brand-name-mozilla-vpn } subscription on your mobile device
vpn-pricing-sign-up-on-your-android-device = Sign up for a { -brand-name-mozilla-vpn } subscription on your Android device
vpn-pricing-download-the-app = Download the app