aboutsummaryrefslogtreecommitdiff
path: root/src/webex
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-02-22 10:25:11 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-02-22 10:25:11 +0100
commit42eb17e7e021476227b846d45cc43409aa451b6e (patch)
tree2a962ee3100aae83c83d27b471d2199ac8954065 /src/webex
parentb15f40aea5adcfed4d7ed499ec01988955bdc929 (diff)
downloadwallet-core-42eb17e7e021476227b846d45cc43409aa451b6e.tar.xz
i18n fixes
Diffstat (limited to 'src/webex')
-rw-r--r--src/webex/pages/confirm-create-reserve.tsx6
-rw-r--r--src/webex/pages/popup.tsx19
2 files changed, 13 insertions, 12 deletions
diff --git a/src/webex/pages/confirm-create-reserve.tsx b/src/webex/pages/confirm-create-reserve.tsx
index 7a754374e..5be6fe351 100644
--- a/src/webex/pages/confirm-create-reserve.tsx
+++ b/src/webex/pages/confirm-create-reserve.tsx
@@ -231,9 +231,7 @@ class ExchangeSelection extends ImplicitStateComponent<ExchangeSelectionProps> {
<i18n.Translate wrap="p">
Using exchange provider <strong>{this.url()}</strong>.
The exchange provider will charge
- <span> </span>
- <span>{renderAmount(totalCost)}</span>
- <span> </span>
+ {" "}<span>{renderAmount(totalCost)}</span>{" "}
in fees.
</i18n.Translate>
{trustMessage}
@@ -371,7 +369,7 @@ class ExchangeSelection extends ImplicitStateComponent<ExchangeSelectionProps> {
<div>
<i18n.Translate wrap="p">
You are about to withdraw
- <strong>{renderAmount(this.props.amount)}</strong>
+ {" "}<strong>{renderAmount(this.props.amount)}</strong>{" "}
from your bank account into your wallet.
</i18n.Translate>
{this.selectingExchange() ? this.renderSelect() : this.renderConfirm()}
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx
index 6bba10141..6d0134b84 100644
--- a/src/webex/pages/popup.tsx
+++ b/src/webex/pages/popup.tsx
@@ -361,7 +361,7 @@ function formatHistoryItem(historyItem: HistoryRecord) {
return (
<i18n.Translate wrap="p">
Started to withdraw
- {" "}{renderAmount(d.requestedAmount)}<span> </span>
+ <span>{renderAmount(d.requestedAmount)}</span>
from <span>{exchange}</span> (<span>{pub}</span>).
</i18n.Translate>
);
@@ -369,7 +369,7 @@ function formatHistoryItem(historyItem: HistoryRecord) {
case "offer-contract": {
return (
<i18n.Translate wrap="p">
- Merchant <em>{abbrev(d.merchantName, 15)}</em> offered<span> </span>
+ Merchant <em>{abbrev(d.merchantName, 15)}</em> offered
contract <span>{abbrev(d.contractTermsHash)}</span>.
</i18n.Translate>
);
@@ -408,13 +408,16 @@ function formatHistoryItem(historyItem: HistoryRecord) {
const tipPageUrl = new URI(chrome.extension.getURL("/src/webex/pages/tip.html"));
const params = { tip_id: d.tipId, merchant_domain: d.merchantDomain };
const url = tipPageUrl.query(params).href();
+ const tipLink = <a href={url} onClick={openTab(url)}>{i18n.str`tip`}</a>;
+ // i18n: Tip
return (
- <i18n.Translate wrap="p">
- Merchant <span>{d.merchantDomain}</span> gave
- a <a href={url} onClick={openTab(url)}> tip</a> of <span>{renderAmount(d.amount)}</span>.
- <span> </span>
- { d.accepted ? null : <span>You did not accept the tip yet.</span> }
- </i18n.Translate>
+ <>
+ <i18n.Translate wrap="p">
+ Merchant <span>{d.merchantDomain}</span> gave
+ a <span>{tipLink}</span> of <span>{renderAmount(d.amount)}</span>.
+ </i18n.Translate>
+ <span> { d.accepted ? null : <i18n.Translate>You did not accept the tip yet.</i18n.Translate> }</span>
+ </>
);
}
default: