buy.bitcoin.com service translatable

This commit is contained in:
Sebastiaan Pasma 2018-09-13 15:21:29 +02:00
commit 829c8f958e
No known key found for this signature in database
GPG key ID: 9A2B0C8B95A1D26F
5 changed files with 45 additions and 28 deletions

View file

@ -476,6 +476,22 @@ msgstr ""
msgid "Buy Bitcoin"
msgstr ""
#: www/views/buyandsell.html:5
msgid "Buy or Sell Bitcoin"
msgstr ""
#: www/views/buyandsell.html:13
msgid "Connect an Exchange"
msgstr ""
#: www/views/buyandsell.html:14
msgid "Buy or sell bitcoin directly from your wallet by connecting your exchange accounts."
msgstr ""
#: src/js/services/buy-bitcoin-com.service.js:14
msgid "Buy Bitcoin With Credit Card"
msgstr ""
#: www/views/mercadoLibre.html:22
#: www/views/mercadoLibre.html:50
msgid "Buy a Gift Card"

View file

@ -1207,7 +1207,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
});
})
.run(function($rootScope, $state, $location, $log, $timeout, startupService, ionicToast, fingerprintService, $ionicHistory, $ionicPlatform, $window, appConfigService, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService, configService, emailService, /* plugins START HERE => */ buydotbitcoindotcomService, pushNotificationsService, glideraService, amazonService, bitpayCardService, applicationService, mercadoLibreService, rateService) {
.run(function($rootScope, $state, $location, $log, $timeout, startupService, ionicToast, fingerprintService, $ionicHistory, $ionicPlatform, $window, appConfigService, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService, configService, emailService, /* plugins START HERE => */ buyBitcoinComService, pushNotificationsService, glideraService, amazonService, bitpayCardService, applicationService, mercadoLibreService, rateService) {
$ionicPlatform.ready(function() {

View file

@ -0,0 +1,25 @@
'use strict';
(function() {
angular
.module('bitcoincom.services')
.factory('buyBitcoinComService', buyBitcoinComService);
function buyBitcoinComService($http, $log, $window, $filter, platformInfo, storageService, buyAndSellService, gettextCatalog) {
var service = {};
service.register = function() {
buyAndSellService.register({
name: 'buydotbitcoindotcom',
logo: 'img/bitcoin-com-logo-grey.png',
location: gettextCatalog.getString('Buy Bitcoin With Credit Card'),
sref: 'tabs.buyandsell.bitcoindotcom'
});
};
service.register();
return service;
}
})();

View file

@ -1,24 +0,0 @@
'use strict';
angular.module('copayApp.services').factory('buydotbitcoindotcomService', function($http, $log, $window, $filter, platformInfo, storageService, buyAndSellService, lodash, configService, txFormatService) {
var root = {};
var credentials = {};
var isCordova = platformInfo.isCordova;
root.init = function(cb) {
};
var register = function() {
buyAndSellService.register({
name: 'buydotbitcoindotcom',
logo: 'img/bitcoin-com-logo-grey.png',
location: 'Buy Bitcoin With Credit Card',
sref: 'tabs.buyandsell.bitcoindotcom'
});
};
register();
return root;
});

View file

@ -2,7 +2,7 @@
<ion-nav-bar class="bar-royal">
<ion-nav-back-button>
</ion-nav-back-button>
<ion-nav-title>Buy or Sell Bitcoin</ion-nav-title>
<ion-nav-title translate>Buy or Sell Bitcoin</ion-nav-title>
</ion-nav-bar>
<ion-content>
<div class="list">
@ -10,8 +10,8 @@
<i class="icon buy-and-sell-icon">
<img src="img/icon-bitcoin.svg"/>
</i>
<div class="explain-heading">Connect an Exchange</div>
<div class="explain-description">Buy or sell bitcoin directly from your wallet by connecting your exchange accounts.</div>
<div class="explain-heading" translate>Connect an Exchange</div>
<div class="explain-description" translate>Buy or sell bitcoin directly from your wallet by connecting your exchange accounts.</div>
</div>
<div class="item item-divider"></div>
<div ng-repeat="service in services">