mirror of https://github.com/BTCPrivate/copay.git
Fix translate strings
This commit is contained in:
parent
0c0732abb7
commit
9048486c91
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('coinbaseController', function($scope, $timeout, $ionicModal, $ionicHistory, $log, coinbaseService, lodash, platformInfo, ongoingProcess, popupService, externalLinkService, gettextCatalog) {
|
angular.module('copayApp.controllers').controller('coinbaseController', function($scope, $timeout, $ionicModal, $ionicHistory, $log, coinbaseService, lodash, platformInfo, ongoingProcess, popupService, externalLinkService) {
|
||||||
|
|
||||||
var isNW = platformInfo.isNW;
|
var isNW = platformInfo.isNW;
|
||||||
var isCordova = platformInfo.isCordova;
|
var isCordova = platformInfo.isCordova;
|
||||||
|
@ -82,20 +82,20 @@ angular.module('copayApp.controllers').controller('coinbaseController', function
|
||||||
this.openSignupWindow = function() {
|
this.openSignupWindow = function() {
|
||||||
var url = coinbaseService.getSignupUrl();
|
var url = coinbaseService.getSignupUrl();
|
||||||
var optIn = true;
|
var optIn = true;
|
||||||
var title = gettextCatalog.getString('Sign Up for Coinbase');
|
var title = 'Sign Up for Coinbase';
|
||||||
var message = gettextCatalog.getString('This will open Coinbase.com, where you can create an account.');
|
var message = 'This will open Coinbase.com, where you can create an account.';
|
||||||
var okText = gettextCatalog.getString('Go to Coinbase');
|
var okText = 'Go to Coinbase';
|
||||||
var cancelText = gettextCatalog.getString('Back');
|
var cancelText = 'Back';
|
||||||
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.openSupportWindow = function() {
|
this.openSupportWindow = function() {
|
||||||
var url = coinbaseService.getSupportUrl();
|
var url = coinbaseService.getSupportUrl();
|
||||||
var optIn = true;
|
var optIn = true;
|
||||||
var title = gettextCatalog.getString('Coinbase Support');
|
var title = 'Coinbase Support';
|
||||||
var message = gettextCatalog.getString('You can email support@coinbase.com for direct support, or you can view their help center.');
|
var message = 'You can email support@coinbase.com for direct support, or you can view their help center.';
|
||||||
var okText = gettextCatalog.getString('Open Help Center');
|
var okText = 'Open Help Center';
|
||||||
var cancelText = gettextCatalog.getString('Go Back');
|
var cancelText = 'Go Back';
|
||||||
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
<div class="integration-onboarding-logo">
|
<div class="integration-onboarding-logo">
|
||||||
<img src="img/GCs-logo-cllb.png">
|
<img src="img/GCs-logo-cllb.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="integration-onboarding-description" translate>Gift Cards are only redeemable on Amazon.com (US website). Cards never expire and can be redeemed towards millions of items.</div>
|
<div class="integration-onboarding-description">Gift Cards are only redeemable on Amazon.com (US website). Cards never expire and can be redeemed towards millions of items.</div>
|
||||||
<div class="integration-onboarding-cta" ng-show="!showOauthForm">
|
<div class="integration-onboarding-cta" ng-show="!showOauthForm">
|
||||||
<button class="button button-standard button-primary" ui-sref="tabs.giftcards.amazon.amount" translate>Buy a Gift Card</button>
|
<button class="button button-standard button-primary" ui-sref="tabs.giftcards.amazon.amount">Buy a Gift Card</button>
|
||||||
<button class="button button-standard button-secondary" ng-click="openExternalLink('https://www.amazon.com')" translate>Visit Amazon.com →</button>
|
<button class="button button-standard button-secondary" ng-click="openExternalLink('https://www.amazon.com')">Visit Amazon.com →</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<ion-nav-bar class="bar-royal">
|
<ion-nav-bar class="bar-royal">
|
||||||
<ion-nav-back-button>
|
<ion-nav-back-button>
|
||||||
</ion-nav-back-button>
|
</ion-nav-back-button>
|
||||||
<ion-nav-title translate>Buy or Sell Bitcoin</ion-nav-title>
|
<ion-nav-title>Buy or Sell Bitcoin</ion-nav-title>
|
||||||
</ion-nav-bar>
|
</ion-nav-bar>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
|
@ -10,8 +10,8 @@
|
||||||
<i class="icon buy-and-sell-icon">
|
<i class="icon buy-and-sell-icon">
|
||||||
<img src="img/icon-bitcoin.svg"/>
|
<img src="img/icon-bitcoin.svg"/>
|
||||||
</i>
|
</i>
|
||||||
<div class="explain-heading" translate>Connect an Exchange</div>
|
<div class="explain-heading">Connect an Exchange</div>
|
||||||
<div class="explain-description" translate>Buy or sell bitcoin directly from your wallet by connecting your exchange accounts.</div>
|
<div class="explain-description">Buy or sell bitcoin directly from your wallet by connecting your exchange accounts.</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item item-divider"></div>
|
<div class="item item-divider"></div>
|
||||||
<div ng-repeat="service in services">
|
<div ng-repeat="service in services">
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
</ion-nav-bar>
|
</ion-nav-bar>
|
||||||
<ion-nav-buttons side="secondary">
|
<ion-nav-buttons side="secondary">
|
||||||
<button class="button button-clear button-small ng-hide" ng-show="!accessToken" ng-click="coinbase.toggleOauthForm()">
|
<button class="button button-clear button-small ng-hide" ng-show="!accessToken" ng-click="coinbase.toggleOauthForm()">
|
||||||
<span ng-hide="showOauthForm" translate>Enter Code</span>
|
<span ng-hide="showOauthForm">Enter Code</span>
|
||||||
<span ng-show="showOauthForm" translate>Restart</span>
|
<span ng-show="showOauthForm">Restart</span>
|
||||||
</button>
|
</button>
|
||||||
</ion-nav-buttons>
|
</ion-nav-buttons>
|
||||||
<ion-content scroll="false" class="ng-hide" ng-show="!accessToken">
|
<ion-content scroll="false" class="ng-hide" ng-show="!accessToken">
|
||||||
|
@ -15,11 +15,11 @@
|
||||||
<div class="integration-onboarding-logo">
|
<div class="integration-onboarding-logo">
|
||||||
<img src="img/coinbase-logo.png">
|
<img src="img/coinbase-logo.png">
|
||||||
</div>
|
</div>
|
||||||
<div class="integration-onboarding-description" ng-hide="showOauthForm" translate>Coinbase's exchange service is available in 33 countries, and can take 3-5 days to buy or sell bitcoin.</div>
|
<div class="integration-onboarding-description" ng-hide="showOauthForm">Coinbase's exchange service is available in 33 countries, and can take 3-5 days to buy or sell bitcoin.</div>
|
||||||
<div class="integration-onboarding-description" ng-show="showOauthForm" translate>If you have trouble, contact Coinbase support for direct assistance.</div>
|
<div class="integration-onboarding-description" ng-show="showOauthForm">If you have trouble, contact Coinbase support for direct assistance.</div>
|
||||||
<div class="integration-onboarding-cta" ng-show="!showOauthForm">
|
<div class="integration-onboarding-cta" ng-show="!showOauthForm">
|
||||||
<button class="button button-standard button-primary" ng-click="coinbase.openAuthenticateWindow()" translate>Connect Coinbase Account</button>
|
<button class="button button-standard button-primary" ng-click="coinbase.openAuthenticateWindow()">Connect Coinbase Account</button>
|
||||||
<button class="button button-standard button-secondary" ng-click="coinbase.openSignupWindow()" translate>Sign Up for Coinbase</button>
|
<button class="button button-standard button-secondary" ng-click="coinbase.openSignupWindow()">Sign Up for Coinbase</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-show="showOauthForm" class="integration-onboarding-oauthform">
|
<div ng-show="showOauthForm" class="integration-onboarding-oauthform">
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<input
|
<input
|
||||||
class="button button-standard button-primary"
|
class="button button-standard button-primary"
|
||||||
type="submit" value="Connect Coinbase Account" ng-disabled="oauthCodeForm.$invalid">
|
type="submit" value="Connect Coinbase Account" ng-disabled="oauthCodeForm.$invalid">
|
||||||
<button type="button" class="button button-standard button-secondary" ng-click="coinbase.openSupportWindow()" translate>Coinbase Support →</button>
|
<button type="button" class="button button-standard button-secondary" ng-click="coinbase.openSupportWindow()">Coinbase Support →</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<div class="title" translate>
|
<div class="title" translate>
|
||||||
Start sending bitcoin
|
Start sending bitcoin
|
||||||
</div>
|
</div>
|
||||||
<div class="subtitle" translate>
|
<div class="subtitle">
|
||||||
<span ng-show="hasWallets" translate>To get started, buy bitcoin or share your address. You can receive bitcoin from any wallet or service.</span>
|
<span ng-show="hasWallets" translate>To get started, buy bitcoin or share your address. You can receive bitcoin from any wallet or service.</span>
|
||||||
<span ng-show="!hasWallets" translate>To get started, you'll need to create a bitcoin wallet and get some bitcoin.</span>
|
<span ng-show="!hasWallets" translate>To get started, you'll need to create a bitcoin wallet and get some bitcoin.</span>
|
||||||
<div class="padding">
|
<div class="padding">
|
||||||
|
|
Loading…
Reference in New Issue