diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-02-20 17:17:36 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-02-20 17:17:36 +0100 |
commit | a4e6966241d418b8df05ddd7fc5556ce3c6c97af (patch) | |
tree | eb83652a64c128abd715c2ed7a33546ab6174385 /src/webex | |
parent | 0ad2935a1f6436d62251f30e826c9c78bfd49525 (diff) | |
download | wallet-core-a4e6966241d418b8df05ddd7fc5556ce3c6c97af.tar.xz |
i18n fixes
Diffstat (limited to 'src/webex')
-rw-r--r-- | src/webex/pages/confirm-contract.tsx | 12 | ||||
-rw-r--r-- | src/webex/pages/confirm-create-reserve.tsx | 10 |
2 files changed, 14 insertions, 8 deletions
diff --git a/src/webex/pages/confirm-contract.tsx b/src/webex/pages/confirm-contract.tsx index b851bf1d2..0aaed4837 100644 --- a/src/webex/pages/confirm-contract.tsx +++ b/src/webex/pages/confirm-contract.tsx @@ -84,7 +84,7 @@ class Details extends React.Component<DetailProps, DetailState> { <div> <button className="linky" onClick={() => this.setState({collapsed: true} as any)}> - show less details + i18n.str`show fewer details` </button> <div> {i18n.str`Accepted exchanges:`} @@ -338,7 +338,7 @@ class ContractPrompt extends React.Component<ContractPromptProps, ContractPrompt <div> {(this.state.alreadyPaid ? <p className="okaybox"> - You already paid for this, clicking "Confirm payment" will not cost money again. + {i18n.str`You already paid for this, clicking "Confirm payment" will not cost money again.`} </p> : <p />)} {(this.state.checkPayError ? <p className="errorbox">{this.state.checkPayError}</p> : <p />)} @@ -352,15 +352,15 @@ class ContractPrompt extends React.Component<ContractPromptProps, ContractPrompt <p>There was an error paying (attempt #{this.state.payAttempt}):</p> <pre>{JSON.stringify(this.state.confirmPayError)}</pre> { this.state.abortStarted - ? <span>Aborting payment ...</span> + ? <span>{i18n.str`Aborting payment ...`}</span> : this.state.abortDone - ? <span>Payment aborted!</span> + ? <span>{i18n.str`Payment aborted!`}</span> : <> <button className="pure-button" onClick={() => this.doPayment()}> - Retry Payment + {i18n.str`Retry Payment`} </button> <button className="pure-button" onClick={() => this.abortPayment()}> - Abort Payment + {i18n.str`Abort Payment`} </button> </> } diff --git a/src/webex/pages/confirm-create-reserve.tsx b/src/webex/pages/confirm-create-reserve.tsx index d83c56665..3c5bb5752 100644 --- a/src/webex/pages/confirm-create-reserve.tsx +++ b/src/webex/pages/confirm-create-reserve.tsx @@ -278,18 +278,22 @@ class ExchangeSelection extends ImplicitStateComponent<ExchangeSelectionProps> { if (rci.versionMatch.currentCmp === -1) { return ( <p className="errorbox"> + <i18n.Translate wrap="span"> Your wallet (protocol version <span>{rci.walletVersion}</span>) might be outdated.<span> </span> The exchange has a higher, incompatible protocol version (<span>{rci.exchangeVersion}</span>). + </i18n.Translate> </p> ); } if (rci.versionMatch.currentCmp === 1) { return ( <p className="errorbox"> + <i18n.Translate wrap="span"> The chosen exchange (protocol version <span>{rci.exchangeVersion}</span> might be outdated.<span> </span> The exchange has a lower, incompatible protocol version than your wallet (protocol version <span>{rci.walletVersion}</span>). + </i18n.Translate> </p> ); } @@ -330,13 +334,15 @@ class ExchangeSelection extends ImplicitStateComponent<ExchangeSelectionProps> { console.log(exchanges); return ( <div> - Please select an exchange. You can review the details before after your selection. + i18n.str`Please select an exchange. You can review the details before after your selection.` {this.props.suggestedExchangeUrl && ( <div> <h2>Bank Suggestion</h2> <button className="pure-button button-success" onClick={() => this.select(this.props.suggestedExchangeUrl)}> + <i18n.Translate wrap="span"> Select <strong>{this.props.suggestedExchangeUrl}</strong> + </i18n.Translate> </button> </div> )} @@ -352,7 +358,7 @@ class ExchangeSelection extends ImplicitStateComponent<ExchangeSelectionProps> { </div> )} - <h2>Manual Selection</h2> + <h2>i18n.str`Manual Selection`</h2> <ManualSelection initialUrl={this.url() || ""} onSelect={(url: string) => this.select(url)} /> </div> ); |