Options also translatable
This commit is contained in:
parent
8c124fba19
commit
4f4bee27f1
3 changed files with 14 additions and 4 deletions
|
|
@ -201,6 +201,16 @@ msgstr ""
|
||||||
msgid "Price Display"
|
msgid "Price Display"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-settings.js:19
|
||||||
|
#: www/views/preferencesPriceDisplay.html:12
|
||||||
|
msgid "Fiat"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/js/controllers/tab-settings.js:19
|
||||||
|
#: www/views/preferencesPriceDisplay.html:15
|
||||||
|
msgid "Cryptocurrency"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/js/controllers/buyAmazon.js:98
|
#: src/js/controllers/buyAmazon.js:98
|
||||||
msgid "Amazon.com is not available at this moment. Please try back later."
|
msgid "Amazon.com is not available at this moment. Please try back later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
|
||||||
isoCode: config.wallet.settings.alternativeIsoCode
|
isoCode: config.wallet.settings.alternativeIsoCode
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay;
|
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay === 'crypto' ? gettextCatalog.getString('Cryptocurrency') : gettextCatalog.getString('Fiat');
|
||||||
|
|
||||||
// TODO move this to a generic service
|
// TODO move this to a generic service
|
||||||
bitpayAccountService.getAccounts(function(err, data) {
|
bitpayAccountService.getAccounts(function(err, data) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<ion-view id="settings-pricedisplay" class="settings" show-tabs>
|
<ion-view id="settings-pricedisplay" class="settings" show-tabs>
|
||||||
<ion-nav-bar class="bar-royal">
|
<ion-nav-bar class="bar-royal">
|
||||||
<ion-nav-title>
|
<ion-nav-title>
|
||||||
{{'Price display'|translate}}
|
{{'Price Display'|translate}}
|
||||||
</ion-nav-title>
|
</ion-nav-title>
|
||||||
<ion-nav-back-button>
|
<ion-nav-back-button>
|
||||||
</ion-nav-back-button>
|
</ion-nav-back-button>
|
||||||
|
|
@ -9,10 +9,10 @@
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="price-display">
|
<div class="price-display">
|
||||||
<ion-radio class="capitalize" ng-value="'fiat'" ng-model="selectedPriceDisplay" ng-click="save(selectedPriceDisplay)">
|
<ion-radio class="capitalize" ng-value="'fiat'" ng-model="selectedPriceDisplay" ng-click="save(selectedPriceDisplay)">
|
||||||
fiat
|
<span translate>Fiat</span>
|
||||||
</ion-radio>
|
</ion-radio>
|
||||||
<ion-radio class="capitalize" ng-value="'crypto'" ng-model="selectedPriceDisplay" ng-click="save(selectedPriceDisplay)">
|
<ion-radio class="capitalize" ng-value="'crypto'" ng-model="selectedPriceDisplay" ng-click="save(selectedPriceDisplay)">
|
||||||
cryptocurrency
|
<span translate>Cryptocurrency</span>
|
||||||
</ion-radio>
|
</ion-radio>
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue