Removes translate for Glidera

This commit is contained in:
Gustavo Maximiliano Cortez 2015-09-12 23:49:14 -03:00
parent 1ba60ebcf8
commit 476bd3c1d3
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
10 changed files with 135 additions and 136 deletions

View File

@ -16,7 +16,7 @@
<div class="rect4"></div>
<div class="rect5"></div>
</div>
<span>{{buy.loading|translate}}</span>
<span>{{buy.loading}}</span>
</div>
</div>
@ -26,11 +26,11 @@
<i class="fi-info size-24 m10r"></i>
</div>
<div class="size-10">
<span class="text-light" translate>Daily buy limit</span>:
<span class="text-light">Daily buy limit</span>:
{{index.glideraLimits.dailyBuy|currency:'':2}} {{index.glideraLimits.currency}}
(remaining {{index.glideraLimits.dailyBuyRemaining|currency:'':2}} {{index.glideraLimits.currency}})
<br>
<span class="text-light" translate>Monthly buy limit</span>:
<span class="text-light">Monthly buy limit</span>:
{{index.glideraLimits.monthlyBuy|currency:'':2}} {{index.glideraLimits.currency}}
(remaining {{index.glideraLimits.monthlyBuyRemaining|currency:'':2}} {{index.glideraLimits.currency}})
</div>
@ -41,7 +41,7 @@
<div class="columns">
<div class="box-notification" ng-show="index.glideraLimits.transactDisabledPendingFirstTransaction">
<span class="text-warning size-14" translate>
<span class="text-warning size-14">
This operation was disabled because you have a pending first transaction
</span>
</div>
@ -54,10 +54,10 @@
<div ng-if="index.glideraToken"
ng-init="otherWallets = buy.otherWallets(index.glideraTestnet)"
ng-click="openWalletsModal(otherWallets)">
<label translate>Wallet</label>
<label>Wallet</label>
<div class="input">
<input type="text" id="address" name="address" ng-disabled="buy.selectedWalletId"
ng-attr-placeholder="{{'Choose your destination wallet'|translate}}"
ng-attr-placeholder="{{'Choose your destination wallet'}}"
ng-model="buy.selectedWalletName" required>
<a class="postfix size-12 m0 text-gray">
<i class="icon-wallet size-18"></i>
@ -65,15 +65,15 @@
</div>
</div>
<label><span translate>Amount in</span> {{showAlternative ? 'USD' : 'BTC'}}</label>
<label>Amount in {{showAlternative ? 'USD' : 'BTC'}}</label>
<div class="input">
<input ng-show="!showAlternative" type="number" id="qty"
name="qty" ng-attr-placeholder="{{'Amount'|translate}}"
name="qty" ng-attr-placeholder="{{'Amount'}}"
ng-minlength="0.00000001" ng-maxlength="10000000000"
ng-model="qty" autocomplete="off" ng-change="buy.getBuyPrice(index.glideraToken, {'qty': qty})">
<input ng-show="showAlternative" type="number" id="fiat"
name="fiat" ng-attr-placeholder="{{'Amount'|translate}}"
name="fiat" ng-attr-placeholder="{{'Amount'}}"
ng-model="fiat" autocomplete="off" ng-change="buy.getBuyPrice(index.glideraToken, {'fiat': fiat})">
<a ng-show="!showAlternative" class="postfix"
@ -87,7 +87,7 @@
<span ng-show="fiat">{{buy.buyPrice.qty}} BTC</span>
at {{buy.buyPrice.price}} {{buy.buyPrice.currency}}/BTC
</div>
<div class="text-center text-gray size-12 m20b" ng-show="!buy.gettingBuyPrice && !buy.buyPrice.qty" translate>
<div class="text-center text-gray size-12 m20b" ng-show="!buy.gettingBuyPrice && !buy.buyPrice.qty">
(Enter the amount to get the exchange rate)
</div>
@ -97,16 +97,16 @@
<input class="button black expand round"
ng-style="{'background-color':index.backgroundColor}"
type="submit" value="{{'Continue'|translate}}"
type="submit" value="{{'Continue'}}"
ng-disabled="index.glideraLimits.transactDisabledPendingFirstTransaction || !buy.buyPrice.qty ||
!buy.selectedWalletAddr || buy.loading">
</div>
</form>
</div>
<div ng-show="buy.show2faCodeInput && !buy.success">
<div class="m10t text-center" translate>
<div class="m10t text-center">
{{buy.buyPrice.subtotal|currency:'':2}} {{buy.buyPrice.currency}} &rarr; {{buy.buyPrice.qty}} BTC
<p class="m20t" translate>
<p class="m20t">
A SMS containing a confirmation code was sent to your phone. <br>
Please, enter the code below
</p>
@ -115,21 +115,21 @@
<input type="number" ng-model="twoFaCode" required>
<input class="button black expand round"
ng-style="{'background-color':index.backgroundColor}"
type="submit" value="{{'Buy'|translate}}" ng-disabled="buyForm.$invalid || buy.loading">
type="submit" value="{{'Buy'}}" ng-disabled="buyForm.$invalid || buy.loading">
</form>
<p class="m10t size-12 text-gray" translate>
<p class="m10t size-12 text-gray">
Fiat will be immediately withdrawn from your bank account. The bitcoins will be purchased and deposited to your wallet ({{index.walletName}}) in 2-4 business days.
</p>
</div>
</div>
<div class="box-notification" ng-show="buy.error && !buy.success">
<span class="text-warning size-14">
{{buy.error|translate}}
{{buy.error}}
</span>
</div>
<div class="text-center" ng-show="buy.success">
<h1 translate>Purchase initiated</h1>
<p class="text-gray" translate>
<h1>Purchase initiated</h1>
<p class="text-gray">
A transfer has been initiated from your bank account. Your bitcoins should arrive to your wallet in 2-4 business days.
</p>

View File

@ -17,8 +17,8 @@
<div class="rect4"></div>
<div class="rect5"></div>
</div>
<span ng-show="glidera.loading" translate>Connecting to Glidera...</span>
<span ng-show="index.glideraLoading">{{index.glideraLoading|translate}}</span>
<span ng-show="glidera.loading">Connecting to Glidera...</span>
<span ng-show="index.glideraLoading">{{index.glideraLoading}}</span>
</div>
</div>
@ -42,7 +42,7 @@
Retry
</button>
<div class="m20t size-12">
<a class="text-gray" ng-click="$root.go('preferencesGlidera')" translate>Preferences</a>
<a class="text-gray" ng-click="$root.go('preferencesGlidera')">Preferences</a>
</div>
</div>
</div>
@ -59,11 +59,11 @@
<img src="img/glidera-logo.png" ng-click="index.updateGlidera(index.glideraToken, index.glideraPermissions)" width="200">
</div>
<div class="text-center small-10 small-centered columns" ng-show="!showOauthForm">
<p class="m10b" translate>You can buy and sell Bitcoin with a US bank account directly in Copay.</p>
<p class="text-gray size-12" translate>Connect your Glidera account to get started</p>
<p class="m10b">You can buy and sell Bitcoin with a US bank account directly in Copay.</p>
<p class="text-gray size-12">Connect your Glidera account to get started</p>
<a class="button m20t light-gray outline round small"
ng-click="$root.openExternalLink(glidera.getAuthenticateUrl(), '_system'); showOauthForm = true" translate>
ng-click="$root.openExternalLink(glidera.getAuthenticateUrl(), '_system'); showOauthForm = true">
Connect to Glidera
</a>
<div>
@ -79,16 +79,16 @@
<form name="oauthCodeForm" ng-submit="glidera.submitOauthCode(code)" novalidate>
<label>OAuth Code</label>
<input type="text" ng-model="code" ng-disabled="glidera.loading"
ng-attr-placeholder="{{'Paste the authorization code here'|translate}}" required>
ng-attr-placeholder="{{'Paste the authorization code here'}}" required>
<input
class="button expand round"
ng-style="{'background-color':index.backgroundColor}"
type="submit" value="Get started" ng-disabled="oauthCodeForm.$invalid || glidera.loading">
</form>
<div>
<a href class="size-12 text-gray"
ng-click="showOauthForm = false; index.glideraError = null; glidera.error = null" translate>Go back</a>
</div>
<button class="button light-gray expand outline round"
ng-click="showOauthForm = false; index.glideraError = null; glidera.error = null">
<i class="fi-arrow-left"></i> <span class="tu">Back</span>
</button>
</div>
</div>
</div>
@ -100,7 +100,7 @@
<div class="sub-header" ng-click="$root.go('preferencesGlidera')">
<div class="left">
<div ng-show="!index.glideraPersonalInfo && !index.glideraEmail">
<h4 class="title p0i m10t m0" translate>Preferences</h4>
<h4 class="title p0i m10t m0">Preferences</h4>
</div>
<div ng-show="index.glideraPersonalInfo" class="size-12">
<b>
@ -124,13 +124,12 @@
<div class="text-center columns small-8 small-centered m30v size-12"
ng-show="index.glideraStatus && (!index.glideraStatus.userEmailIsSetup || !index.glideraStatus.userPhoneIsSetup
|| (!index.glideraStatus.userBankAccountIsSetup && index.glideraStatus.bankAccountState != 'VERIFIED'))">
<h4 class="text-bold" translate> Complete Setup</h4>
<span translate>Your Glidera account is not ready to transact. Please, verify it at <b>Glidera.io</b> </span>
<h4 class="text-bold"> Complete Setup</h4>
Your Glidera account is not ready to transact. Please, verify it at <b>Glidera.io</b>
<a class="button m20t light-gray outline round tiny"
ng-init="glideraUrl = index.glideraTestnet ? 'https://sandbox.glidera.io/login' :
'https://glidera.io/login'"
ng-click="$root.openExternalLink(glideraUrl)"
translate>
ng-click="$root.openExternalLink(glideraUrl)">
Go to Glidera
</a>
</div>
@ -142,7 +141,7 @@
(index.glideraStatus.userCanBuy || index.glideraStatus.userCanTransact)" class="line-b line-t p20 pointer"
ng-click="$root.go('buyGlidera')">
<i class="icon-buy-btc size-24 m5r"></i>
<span translate>Buy Bitcoin</span>
<span>Buy Bitcoin</span>
<span class="right text-gray">
<i class="icon-arrow-right3 size-24 right"></i>
</span>
@ -152,7 +151,7 @@
(index.glideraStatus.userCanSell || index.glideraStatus.userCanTransact)"
ng-click="$root.go('sellGlidera')">
<i class="icon-sell-btc size-24 m5r"></i>
<span translate>Sell Bitcoin</span>
<span>Sell Bitcoin</span>
<span class="right text-gray">
<i class="icon-arrow-right3 size-24 right"></i>
</span>
@ -160,9 +159,9 @@
</ul>
<div ng-show="index.glideraPermissions.transaction_history">
<h4 class="title m0" translate>Activity</h4>
<h4 class="title m0">Activity</h4>
<div ng-show="index.glideraTxs.length == 0 && !index.glideraLoadingHistory"
class="size-12 p10 text-center text-gray" translate>
class="size-12 p10 text-center text-gray">
No activity in your account
</div>
<div ng-repeat="tx in index.glideraTxs"
@ -170,8 +169,8 @@
class="row collapse last-transactions-content">
<div class="large-3 medium-3 small-3 columns">
<span class="label tu radius" ng-show="tx.type == 'BUY'"
ng-style="{'background-color':index.backgroundColor}" translate>Bought</span>
<span class="label tu gray radius" ng-show="tx.type == 'SELL'" translate>Sold</span>
ng-style="{'background-color':index.backgroundColor}">Bought</span>
<span class="label tu gray radius" ng-show="tx.type == 'SELL'">Sold</span>
</div>
<div class="large-4 medium-4 small-4 columns">

View File

@ -15,7 +15,7 @@
<div class="rect4"></div>
<div class="rect5"></div>
</div>
<span ng-show="glidera.loading" translate>Connecting to Glidera...</span>
<span ng-show="glidera.loading">Connecting to Glidera...</span>
</div>
</div>

View File

@ -1,15 +1,15 @@
<div class="m20tp text-center">
<div class="row">
<h1 class="text-center m20b p20h" translate>Are you sure you would like to log out of your Glidera account?</h1>
<p class="text-gray p20h" translate>You will need to log back in to buy or sell bitcoin in Copay.</p>
<h1 class="text-center m20b p20h">Are you sure you would like to log out of your Glidera account?</h1>
<p class="text-gray p20h">You will need to log back in to buy or sell bitcoin in Copay.</p>
<div class="large-6 medium-6 small-6 columns">
<button class="button light-gray expand outline round" ng-click="cancel()">
<i class="fi-arrow-left"></i> <span class="tu" translate>Back</span>
<i class="fi-arrow-left"></i> <span class="tu">Back</span>
</button>
</div>
<div class="large-6 medium-6 small-6 columns">
<button class="button warning expand round" ng-click="ok()">
<span translate>Log out</span>
<span>Log out</span>
</button>
</div>
</div>

View File

@ -2,11 +2,11 @@
<section class="left-small">
<a ng-click="cancel()">
<i class="icon-arrow-left3 icon-back"></i>
<span class="text-back" translate>Back</span>
<span class="text-back">Back</span>
</a>
</section>
<section class="middle tab-bar-section">
<h1 class="title ellipsis" ng-style="{'color':color}" translate>
<h1 class="title ellipsis" ng-style="{'color':color}">
Transaction
</h1>
</section>
@ -15,8 +15,8 @@
<div class="modal-content fix-modals-touch">
<div class="header-modal text-center">
<span class="label tu radius" ng-show="tx.type == 'BUY'"
ng-style="{'background-color':color}" translate>Bought</span>
<span class="label tu gray radius" ng-show="tx.type == 'SELL'" translate>Sold</span>
ng-style="{'background-color':color}">Bought</span>
<span class="label tu gray radius" ng-show="tx.type == 'SELL'">Sold</span>
<div class="size-42">
{{tx.subtotal|currency:'':2}} {{tx.currency}}
</div>
@ -27,34 +27,34 @@
</div>
</div>
<h4 class="title m0" translate>Details</h4>
<h4 class="title m0">Details</h4>
<ul class="no-bullet size-14 m0">
<li ng-show="tx.transactionDate" class="line-b p10 oh">
<span class="text-gray" translate>Date</span>
<span class="text-gray">Date</span>
<span class="right">{{tx.transactionDate | amCalendar}}</span>
</li>
<li ng-show="tx.price" class="line-b p10 oh">
<span class="text-gray" translate>Exchange rate</span>
<span class="text-gray">Exchange rate</span>
<span class="right">{{tx.price|currency:'':2}} {{tx.currency}}/BTC</span>
</li>
</ul>
<h4 class="title m0">&nbsp;</h4>
<ul class="no-bullet size-14 m0">
<li ng-show="tx.subtotal" class="line-b p10 oh">
<span class="text-gray" translate>Subtotal</span>
<span class="text-gray">Subtotal</span>
<span class="right">{{tx.subtotal|currency:'':2}} {{tx.currency}}</span>
</li>
<li ng-show="tx.fees" class="line-b p10 oh">
<span class="text-gray" translate>Fees</span>
<span class="text-gray">Fees</span>
<span class="right">{{tx.fees|currency:'':2}} {{tx.currency}}</span>
</li>
<li ng-show="tx.total" class="line-b p10 oh text-bold">
<span class="text-gray" translate>Total</span>
<span class="text-gray">Total</span>
<span class="right">{{tx.total|currency:'':2}} {{tx.currency}}</span>
</li>
</ul>

View File

@ -96,11 +96,11 @@
</span>
</li>
<li class="line-b p20" ng-show="!index.noFocusedWallet">
<span translate>Enable Glidera Service</span>
<span>Enable Glidera Service</span>
<switch id="glidera-enabled" name="glideraEnabled" ng-model="glideraEnabled" class="green right"></switch>
</li>
<li class="line-b p20" ng-show="!index.noFocusedWallet && glideraEnabled">
<span translate>Glidera Sandbox</span>
<span>Glidera Sandbox</span>
<switch id="glidera-testnet" name="glideraTestnet" ng-model="glideraTestnet" class="green right"></switch>
</li>
<li class="line-b p20" ng-click="$root.go('about')">

View File

@ -7,27 +7,27 @@
<div class="content preferences" ng-controller="preferencesGlideraController as glidera">
<ul ng-if="index.glideraToken" class="no-bullet m0 size-14">
<h4 class="title m0" translate>Permissions</h4>
<h4 class="title m0">Permissions</h4>
<li class="line-b p20">
<span translate>Email</span>
<span>Email</span>
<span class="right text-gray">
{{index.glideraPermissions.view_email_address}}
</span>
</li>
<li class="line-b p20">
<span translate>Personal Information</span>
<span>Personal Information</span>
<span class="right text-gray">
{{index.glideraPermissions.personal_info}}
</span>
</li>
<li class="line-b p20">
<span translate>Buy/Sell</span>
<span>Buy/Sell</span>
<span class="right text-gray">
{{index.glideraPermissions.transact}}
</span>
</li>
<li class="line-b p20">
<span translate>Transaction History</span>
<span>Transaction History</span>
<span class="right text-gray">
{{index.glideraPermissions.transaction_history}}
</span>
@ -37,15 +37,15 @@
<ul ng-if="index.glideraPermissions.view_email_address"
ng-init="glidera.getEmail(index.glideraToken)"
class="no-bullet m0 size-14">
<h4 class="title m0" translate>Email</h4>
<h4 class="title m0">Email</h4>
<li class="line-b p20">
<span translate>Email</span>
<span>Email</span>
<span class="right text-gray">
{{glidera.email.email}}
</span>
</li>
<li class="line-b p20">
<span translate>Active</span>
<span>Active</span>
<span class="right text-gray">
{{glidera.email.userEmailIsSetup}}
</span>
@ -55,76 +55,76 @@
<ul ng-if="index.glideraPermissions.personal_info"
ng-init="glidera.getPersonalInfo(index.glideraToken)"
class="no-bullet m0 size-14">
<h4 class="title m0" translate>Personal Information</h4>
<h4 class="title m0">Personal Information</h4>
<li class="line-b p20">
<span translate>First Name</span>
<span>First Name</span>
<span class="right text-gray">
{{glidera.personalInfo.firstName}}
</span>
</li>
<li class="line-b p20">
<span translate>Middle Name</span>
<span>Middle Name</span>
<span class="right text-gray">
{{glidera.personalInfo.middleName}}
</span>
</li>
<li class="line-b p20">
<span translate>Last Name</span>
<span>Last Name</span>
<span class="right text-gray">
{{glidera.personalInfo.lastName}}
</span>
</li>
<li class="line-b p20">
<span translate>Birth Date</span>
<span>Birth Date</span>
<span class="right text-gray">
{{glidera.personalInfo.birthDate}}
</span>
</li>
<li class="line-b p20">
<span translate>Address 1</span>
<span>Address 1</span>
<span class="right text-gray">
{{glidera.personalInfo.address1}}
</span>
</li>
<li class="line-b p20">
<span translate>Address 2</span>
<span>Address 2</span>
<span class="right text-gray">
{{glidera.personalInfo.address2}}
</span>
</li>
<li class="line-b p20">
<span translate>City</span>
<span>City</span>
<span class="right text-gray">
{{glidera.personalInfo.city}}
</span>
</li>
<li class="line-b p20">
<span translate>State</span>
<span>State</span>
<span class="right text-gray">
{{glidera.personalInfo.state}}
</span>
</li>
<li class="line-b p20">
<span translate>ZIP Code</span>
<span>ZIP Code</span>
<span class="right text-gray">
{{glidera.personalInfo.zipCode}}
</span>
</li>
<li class="line-b p20">
<span translate>Country</span>
<span>Country</span>
<span class="right text-gray">
{{glidera.personalInfo.countryCode}}
</span>
</li>
<li class="line-b p20">
<span translate>Occupation</span>
<span>Occupation</span>
<span class="right text-gray">
{{glidera.personalInfo.occupation}}
</span>
</li>
<li class="line-b p20">
<span translate>Basic Information State</span>
<span>Basic Information State</span>
<span class="right text-gray">
{{glidera.personalInfo.basicInfoState}}
</span>
@ -133,59 +133,59 @@
<ul ng-if="index.glideraToken" ng-init="glidera.getStatus(index.glideraToken)"
class="no-bullet m0 size-14">
<h4 class="title m0" translate>Status</h4>
<h4 class="title m0">Status</h4>
<li class="line-b p20">
<span translate>Buy/Sell</span>
<span>Buy/Sell</span>
<span class="right text-gray">
{{glidera.status.userCanTransact}}
</span>
</li>
<li class="line-b p20">
<span translate>Buy</span>
<span>Buy</span>
<span class="right text-gray">
{{glidera.status.userCanBuy}}
</span>
</li>
<li class="line-b p20">
<span translate>Sell</span>
<span>Sell</span>
<span class="right text-gray">
{{glidera.status.userCanSell}}
</span>
</li>
<li class="line-b p20">
<span translate>Email Is Setup</span>
<span>Email Is Setup</span>
<span class="right text-gray">
{{glidera.status.userEmailIsSetup}}
</span>
</li>
<li class="line-b p20">
<span translate>Phone Is Setup</span>
<span>Phone Is Setup</span>
<span class="right text-gray">
{{glidera.status.userPhoneIsSetup}}
</span>
</li>
<li class="line-b p20">
<span translate>Bank Account Is Setup</span>
<span>Bank Account Is Setup</span>
<span class="right text-gray">
{{glidera.status.userBankAccountIsSetup}}
</span>
</li>
<li class="line-b p20">
<span translate>Personal Information State</span>
<span>Personal Information State</span>
<span class="right text-gray">
{{glidera.status.personalInfoState}}
</span>
</li>
<li class="line-b p20">
<span translate>Bank Account State</span>
<span>Bank Account State</span>
<span class="right text-gray">
{{glidera.status.bankAccountState}}
</span>
</li>
<li class="line-b p20">
<span translate>Country</span>
<span>Country</span>
<span class="right text-gray">
{{glidera.status.country}}
</span>
@ -194,58 +194,58 @@
<ul ng-if="index.glideraToken" ng-init="glidera.getLimits(index.glideraToken)"
class="no-bullet m0 size-14">
<h4 class="title m0" translate>Limits</h4>
<h4 class="title m0">Limits</h4>
<li class="line-b p20">
<span translate>Daily Buy</span>
<span>Daily Buy</span>
<span class="right text-gray">
{{glidera.limits.dailyBuy|currency:'':2}} {{glidera.limits.currency}}
</span>
</li>
<li class="line-b p20">
<span translate>Daily Sell</span>
<span>Daily Sell</span>
<span class="right text-gray">
{{glidera.limits.dailySell|currency:'':2}} {{glidera.limits.currency}}
</span>
</li>
<li class="line-b p20">
<span translate>Monthly Buy</span>
<span>Monthly Buy</span>
<span class="right text-gray">
{{glidera.limits.monthlyBuy|currency:'':2}} {{glidera.limits.currency}}
</span>
</li>
<li class="line-b p20">
<span translate>Monthly Sell</span>
<span>Monthly Sell</span>
<span class="right text-gray">
{{glidera.limits.monthlySell|currency:'':2}} {{glidera.limits.currency}}
</span>
</li>
<li class="line-b p20">
<span translate>Daily Buy Remaining</span>
<span>Daily Buy Remaining</span>
<span class="right text-gray">
{{glidera.limits.dailyBuyRemaining|currency:'':2}} {{glidera.limits.currency}}
</span>
</li>
<li class="line-b p20">
<span translate>Daily Sell Remaining</span>
<span>Daily Sell Remaining</span>
<span class="right text-gray">
{{glidera.limits.dailySellRemaining|currency:'':2}} {{glidera.limits.currency}}
</span>
</li>
<li class="line-b p20">
<span translate>Monthly Buy Remaining</span>
<span>Monthly Buy Remaining</span>
<span class="right text-gray">
{{glidera.limits.monthlyBuyRemaining|currency:'':2}} {{glidera.limits.currency}}
</span>
</li>
<li class="line-b p20">
<span translate>Monthly Sell Remaining</span>
<span>Monthly Sell Remaining</span>
<span class="right text-gray">
{{glidera.limits.monthlySellRemaining|currency:'':2}} {{glidera.limits.currency}}
</span>
</li>
<li class="line-b p20">
<span translate>Buy/Sell Disabled (pending first transaction)</span>
<span>Buy/Sell Disabled (pending first transaction)</span>
<span class="right text-gray">
{{glidera.limits.transactDisabledPendingFirstTransaction}}
</span>
@ -253,11 +253,11 @@
</ul>
<ul class="no-bullet m0 size-14">
<h4 class="title m0" translate>Account</h4>
<h4 class="title m0">Account</h4>
<li class="line-b p20" ng-click="glidera.revokeToken(index.glideraTestnet)">
<i class="icon-arrow-right3 size-24 right text-gray"></i>
<span class="text-warning" translate>Log out</span>
<span class="text-warning">Log out</span>
</li>
</ul>

View File

@ -16,7 +16,7 @@
<div class="rect4"></div>
<div class="rect5"></div>
</div>
<span>{{sell.loading|translate}}</span>
<span>{{sell.loading}}</span>
</div>
</div>
@ -26,11 +26,11 @@
<i class="fi-info size-24 m10r"></i>
</div>
<div class="size-10">
<span class="text-light" translate>Daily sell limit</span>:
<span class="text-light">Daily sell limit</span>:
{{index.glideraLimits.dailySell|currency:'':2}} {{index.glideraLimits.currency}}
(remaining {{index.glideraLimits.dailySellRemaining|currency:'':2}} {{index.glideraLimits.currency}})
<br>
<span class="text-light" translate>Monthly sell limit</span>:
<span class="text-light">Monthly sell limit</span>:
{{index.glideraLimits.monthlySell|currency:'':2}} {{index.glideraLimits.currency}}
(remaining {{index.glideraLimits.monthlySellRemaining|currency:'':2}} {{index.glideraLimits.currency}})
</div>
@ -41,7 +41,7 @@
<div class="columns">
<div class="box-notification" ng-show="index.glideraLimits.transactDisabledPendingFirstTransaction">
<span class="text-warning size-14" translate>
<span class="text-warning size-14">
This operation was disabled because you have a pending first transaction
</span>
</div>
@ -53,10 +53,10 @@
<div ng-if="index.glideraToken"
ng-init="otherWallets = sell.otherWallets(index.glideraTestnet)"
ng-click="openWalletsModal(otherWallets)">
<label translate>Wallet</label>
<label>Wallet</label>
<div class="input">
<input type="text" id="address" name="address" ng-disabled="sell.selectedWalletId"
ng-attr-placeholder="{{'Choose your destination wallet'|translate}}"
ng-attr-placeholder="{{'Choose your destination wallet'}}"
ng-model="sell.selectedWalletName" required>
<a class="postfix size-12 m0 text-gray">
<i class="icon-wallet size-18"></i>
@ -64,15 +64,15 @@
</div>
</div>
<label><span translate>Amount in</span> {{showAlternative ? 'USD' : 'BTC'}}</label>
<label><span>Amount in</span> {{showAlternative ? 'USD' : 'BTC'}}</label>
<div class="input">
<input ng-show="!showAlternative" type="number" id="qty"
name="qty" ng-attr-placeholder="{{'Amount'|translate}}"
name="qty" ng-attr-placeholder="{{'Amount'}}"
ng-minlength="0.00000001" ng-maxlength="10000000000"
ng-model="qty" autocomplete="off" ng-change="sell.getSellPrice(index.glideraToken, {'qty': qty})">
<input ng-show="showAlternative" type="number" id="fiat"
name="fiat" ng-attr-placeholder="{{'Amount'|translate}}"
name="fiat" ng-attr-placeholder="{{'Amount'}}"
ng-model="fiat" autocomplete="off" ng-change="sell.getSellPrice(index.glideraToken, {'fiat': fiat})">
<a ng-show="!showAlternative" class="postfix"
@ -87,7 +87,7 @@
at {{sell.sellPrice.price|currency:'':2}} {{sell.sellPrice.currency}}/BTC
</div>
<div class="text-center text-gray size-12 m20b" ng-show="!sell.gettingSellPrice && !sell.sellPrice.qty" translate>
<div class="text-center text-gray size-12 m20b" ng-show="!sell.gettingSellPrice && !sell.sellPrice.qty">
(Enter the amount to get the exchange rate)
</div>
@ -97,16 +97,16 @@
<input class="button black expand round"
ng-style="{'background-color':index.backgroundColor}"
type="submit" value="{{'Continue'|translate}}"
type="submit" value="{{'Continue'}}"
ng-disabled="index.glideraLimits.transactDisabledPendingFirstTransaction || !sell.sellPrice.qty ||
!sell.selectedWalletId || sell.loading">
</div>
</form>
</div>
<div ng-show="sell.show2faCodeInput && !sell.success">
<div class="m10t text-center" translate>
<div class="m10t text-center">
{{sell.sellPrice.qty}} BTC &rarr; {{sell.sellPrice.subtotal|currency:'':2}} {{sell.sellPrice.currency}}
<p class="m20t" translate>
<p class="m20t">
A SMS containing a confirmation code was sent to your phone. <br>
Please, enter the code below
</p>
@ -115,21 +115,21 @@
<input type="number" ng-model="twoFaCode" required>
<input class="button black expand round"
ng-style="{'background-color':index.backgroundColor}"
type="submit" value="{{'Sell'|translate}}" ng-disabled="sellForm.$invalid || sell.loading">
type="submit" value="{{'Sell'}}" ng-disabled="sellForm.$invalid || sell.loading">
</form>
<p class="m10t size-12 text-gray" translate>
<p class="m10t size-12 text-gray">
Bitcoins will be immediately sent from your wallet to Glidera. Fiat will be deposited in your bank account in 4-6 business days.
</p>
</div>
</div>
<div class="box-notification" ng-show="sell.error && !sell.success">
<span class="text-warning size-14">
{{sell.error|translate}}
{{sell.error}}
</span>
</div>
<div class="text-center" ng-show="sell.success">
<h1 translate>Sale initiated</h1>
<p class="text-gray" translate>
<h1>Sale initiated</h1>
<p class="text-gray">
A transfer has been initiated to your bank account and should arrive in 4-6 business days.
</p>

View File

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('buyGlideraController',
function($scope, $timeout, $modal, profileService, addressService, glideraService, gettext, gettextCatalog, bwsError, lodash, isChromeApp) {
function($scope, $timeout, $modal, profileService, addressService, glideraService, bwsError, lodash, isChromeApp) {
var self = this;
this.show2faCodeInput = null;
@ -36,13 +36,13 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
$scope.selectWallet = function(walletId, walletName) {
if (!profileService.getClient(walletId).isComplete()) {
self.error = bwsError.msg({'code': 'WALLET_NOT_COMPLETE'}, gettextCatalog.getString('Could not choose the wallet'));
self.error = bwsError.msg({'code': 'WALLET_NOT_COMPLETE'}, 'Could not choose the wallet');
$modalInstance.dismiss('cancel');
return;
}
addressService.getAddress(walletId, false, function(err, walletAddr) {
if (err) {
self.error = bwsError.cb(err, gettext('Could not create address'));
self.error = bwsError.cb(err, 'Could not create address');
$modalInstance.dismiss('cancel');
return;
}
@ -87,7 +87,7 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
glideraService.buyPrice(token, price, function(err, buyPrice) {
self.gettingBuyPrice = false;
if (err) {
self.error = gettext('Could not get exchange information. Please, try again.');
self.error = 'Could not get exchange information. Please, try again.';
}
else {
self.buyPrice = buyPrice;
@ -97,12 +97,12 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
this.get2faCode = function(token) {
var self = this;
this.loading = gettext('Sending 2FA code...');
this.loading = 'Sending 2FA code...';
$timeout(function() {
glideraService.get2faCode(token, function(err, sent) {
self.loading = null;
if (err) {
self.error = gettext('Could not send confirmation code to your phone');
self.error = 'Could not send confirmation code to your phone';
}
else {
self.error = null;
@ -115,7 +115,7 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
this.sendRequest = function(token, permissions, twoFaCode) {
var self = this;
self.error = null;
self.loading = gettext('Buying bitcoin...');
self.loading = 'Buying bitcoin...';
var data = {
destinationAddress: self.selectedWalletAddr,
qty: self.buyPrice.qty,

View File

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('sellGlideraController',
function($scope, $timeout, $log, $modal, gettext, gettextCatalog, configService, profileService, addressService, feeService, glideraService, bwsError, lodash, isChromeApp) {
function($scope, $timeout, $log, $modal, configService, profileService, addressService, feeService, glideraService, bwsError, lodash, isChromeApp) {
var self = this;
var config = configService.getSync();
@ -40,7 +40,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
$scope.selectWallet = function(walletId, walletName) {
if (!profileService.getClient(walletId).isComplete()) {
self.error = bwsError.msg({'code': 'WALLET_NOT_COMPLETE'}, gettextCatalog.getString('Could not choose the wallet'));
self.error = bwsError.msg({'code': 'WALLET_NOT_COMPLETE'}, 'Could not choose the wallet');
$modalInstance.dismiss('cancel');
return;
}
@ -83,7 +83,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
glideraService.sellPrice(token, price, function(err, sellPrice) {
self.gettingSellPrice = false;
if (err) {
self.error = gettext('Could not get exchange information. Please, try again.');
self.error = 'Could not get exchange information. Please, try again.';
}
else {
self.error = null;
@ -94,12 +94,12 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
this.get2faCode = function(token) {
var self = this;
this.loading = gettext('Sending 2FA code...');
this.loading = 'Sending 2FA code...';
$timeout(function() {
glideraService.get2faCode(token, function(err, sent) {
self.loading = null;
if (err) {
self.error = gettext('Could not send confirmation code to your phone');
self.error = 'Could not send confirmation code to your phone';
}
else {
self.show2faCodeInput = sent;
@ -112,18 +112,18 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
var self = this;
self.error = null;
this.loading = gettext('Selling Bitcoin...');
this.loading = 'Selling Bitcoin...';
$timeout(function() {
addressService.getAddress(fc.credentials.walletId, null, function(err, refundAddress) {
if (!refundAddress) {
self.loading = null;
self.error = bwsError.msg(err, gettext('Could not create address'));
self.error = bwsError.msg(err, 'Could not create address');
return;
}
glideraService.getSellAddress(token, function(error, sellAddress) {
if (!sellAddress) {
self.loading = null;
self.error = gettext('Could not get the destination bitcoin address');
self.error = 'Could not get the destination bitcoin address';
return;
}
var amount = parseInt((self.sellPrice.qty * 100000000).toFixed(0));
@ -144,7 +144,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
$log.error(err);
$timeout(function() {
self.loading = null;
self.error = bwsError.msg(err, gettextCatalog.getString('Error'));
self.error = bwsError.msg(err, 'Error');
}, 1);
return;
}
@ -201,7 +201,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
fc.signTxProposal(txp, function(err, signedTx) {
profileService.lockFC();
if (err) {
err = bwsError.msg(err, gettextCatalog.getString('Could not accept payment'));
err = bwsError.msg(err, 'Could not accept payment');
return cb(err);
}
else {
@ -209,7 +209,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
return cb(null, txp, signedTx.raw);
} else {
return cb(gettext('The transaction could not be signed'));
return cb('The transaction could not be signed');
}
}
});