This repository was archived by the owner on Mar 15, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,7 +116,10 @@ define('apps',
116116 var device = capabilities . device_type ( ) ;
117117 if ( product . payment_required && ! capabilities . navPay && ! settings . simulate_nav_pay ) {
118118 reasons . push ( gettext ( 'Your device does not support payments.' ) ) ;
119+ } else if ( product . payment_required && ! product . price ) {
120+ reasons . push ( gettext ( 'This app is unavailable for purchase in your region.' ) ) ;
119121 }
122+
120123 if ( ! capabilities . webApps ) {
121124 reasons . push ( gettext ( 'Your browser or device is not web-app compatible.' ) ) ;
122125 } else if ( ! _ . contains ( product . device_types , device ) ) {
Original file line number Diff line number Diff line change 11{% macro market_button(app, classes, data_attrs) %}
2- {% set price = app.price_locale if app.price and app.price != '0.00' else _('Free') %}
2+
3+ {% if app.payment_required and not app.price %}
4+ {% An app would otherwise cost money in another region but there is no tier in the user's region. %}
5+ {# L10n: This app is unavailable for purchase. %}
6+ {% set price = _('Unavailable') %}
7+ {% else %}
8+ {% set price = app.price_locale if app.price and app.price != '0.00' else _('Free') %}
9+ {% endif %}
10+
311 {% set classes = classes or [] %}
412 < button class ="button product install {{ classes|join(' ') }} {{ 'incompatible' if app_incompat(app) }} "
5- {{ data_attrs|make_data_attrs }}
6- {{ 'disabled' if app_incompat(app) }}>
13+ {{ data_attrs|make_data_attrs }}
14+ {{ 'disabled' if app_incompat(app) }}>
715 {{ _('Install') if app.user.installed or app.user.purchased else price }}
816 </ button >
917{% endmacro %}
You can’t perform that action at this time.
0 commit comments