From 7731ddd098d48fc54cd86b72d432493fe75399e4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 23 Nov 2016 01:14:45 +0100 Subject: translations --- src/pages/confirm-create-reserve.tsx | 59 ++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 29 deletions(-) (limited to 'src/pages/confirm-create-reserve.tsx') diff --git a/src/pages/confirm-create-reserve.tsx b/src/pages/confirm-create-reserve.tsx index 81a90650c..77a18a8a8 100644 --- a/src/pages/confirm-create-reserve.tsx +++ b/src/pages/confirm-create-reserve.tsx @@ -102,15 +102,15 @@ function renderReserveCreationDetails(rci: ReserveCreationInfo|null) { return (
-

{`Withdrawal fees: ${withdrawFeeStr}`}

-

{`Rounding loss: ${overheadStr}`}

+

{i18n`Withdrawal fees: ${withdrawFeeStr}`}

+

{i18n`Rounding loss: ${overheadStr}`}

- - - - - + + + + + {uniq.map(row)} @@ -143,7 +143,7 @@ function WithdrawFee(props: {reserveCreationInfo: ReserveCreationInfo|null}): JS if (props.reserveCreationInfo) { let {overhead, withdrawFee} = props.reserveCreationInfo; let totalCost = Amounts.add(overhead, withdrawFee).amount; - return

Withdraw fees: {amountToPretty(totalCost)}

; + return

{i18n`Withdraw fees:`} {amountToPretty(totalCost)}

; } return

; } @@ -177,7 +177,7 @@ class ExchangeSelection extends ImplicitStateComponent { return ( ); } @@ -191,7 +191,7 @@ class ExchangeSelection extends ImplicitStateComponent { onInput={(e) => this.onUrlChanged((e.target as HTMLInputElement).value)}/>
{this.renderStatus()} -

Detailed Fee Structure

+

{i18n`Detailed Fee Structure`}

{renderReserveCreationDetails(this.reserveCreationInfo())} ) } @@ -208,33 +208,35 @@ class ExchangeSelection extends ImplicitStateComponent { renderFeeStatus() { if (this.reserveCreationInfo()) { return ( -

+ The exchange provider will charge {" "} - {this.renderFee()} + {this.renderFee()} {" "} in fees. -

+ ); } if (this.url() && !this.statusString()) { let shortName = URI(this.url()!).host(); - return

- Waiting for a response from - {" "} - {shortName} -

; + return ( + + Waiting for a response from + {" "} + {shortName} + + ); } if (this.statusString()) { return (

- A problem occured, see below. + {i18n`A problem occured, see below.`}

); } return (

- Information about fees will be available when an exchange provider is selected. + {i18n`Information about fees will be available when an exchange provider is selected.`}

); } @@ -242,16 +244,16 @@ class ExchangeSelection extends ImplicitStateComponent { render(): JSX.Element { return (
-

+ {"You are about to withdraw "} {amountToPretty(this.props.amount)} {" from your bank account into your wallet."} -

+ {this.renderFeeStatus()}
{this.renderAdvanced()} @@ -340,8 +342,7 @@ class ExchangeSelection extends ImplicitStateComponent { } else { this.reset(); this.statusString( - `Oops, something went wrong.` + - `The wallet responded with error status (${rawResp.error}).`); + i18n`Oops, something went wrong. The wallet responded with error status (${rawResp.error}).`); this.detailCollapsed(false); } }; @@ -367,7 +368,7 @@ class ExchangeSelection extends ImplicitStateComponent { if (this.statusString()) { return

{this.statusString()}

; } else if (!this.reserveCreationInfo()) { - return

Checking URL, please wait ...

; + return

{i18n`Checking URL, please wait ...`}

; } return ""; } @@ -381,7 +382,7 @@ export async function main() { try { amount = AmountJson.checked(JSON.parse(query.amount)); } catch (e) { - throw Error(`Can't parse amount: ${e.message}`); + throw Error(i18n`Can't parse amount: ${e.message}`); } const callback_url = query.callback_url; const bank_url = query.bank_url; @@ -389,7 +390,7 @@ export async function main() { try { wt_types = JSON.parse(query.wt_types); } catch (e) { - throw Error(`Can't parse wire_types: ${e.message}`); + throw Error(i18n`Can't parse wire_types: ${e.message}`); } const suggestedExchangeUrl = await getSuggestedExchange(amount.currency); @@ -406,7 +407,7 @@ export async function main() { } catch (e) { // TODO: provide more context information, maybe factor it out into a // TODO:generic error reporting function or component. - document.body.innerText = `Fatal error: "${e.message}".`; + document.body.innerText = i18n`Fatal error: "${e.message}".`; console.error(`got error "${e.message}"`, e); } } -- cgit v1.2.3
# CoinsValueWithdraw FeeRefresh FeeDeposit fee{i18n`# Coins`}{i18n`Value`}{i18n`Withdraw Fee`}{i18n`Refresh Fee`}{i18n`Deposit Fee`}