From c88bcce9987d4b5cc8123002485a928ff4191e94 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 4 Jun 2017 17:56:55 +0200 Subject: some UI fixes --- src/i18n/de.po | 96 +++++++++++++++--------------- src/i18n/en-US.po | 94 ++++++++++++++--------------- src/i18n/fr.po | 94 ++++++++++++++--------------- src/i18n/it.po | 94 ++++++++++++++--------------- src/i18n/strings.ts | 16 ++--- src/i18n/taler-wallet-webex.pot | 94 ++++++++++++++--------------- src/webex/pages/confirm-contract.tsx | 14 ++++- src/webex/pages/confirm-create-reserve.tsx | 28 +++++---- src/webex/pages/payback.tsx | 4 +- src/webex/pages/popup.tsx | 19 +++--- src/webex/pages/tree.tsx | 20 ++++--- src/webex/renderHtml.tsx | 12 ++++ 12 files changed, 306 insertions(+), 279 deletions(-) (limited to 'src') diff --git a/src/i18n/de.po b/src/i18n/de.po index 79f6a6e1e..6fa2e657f 100644 --- a/src/i18n/de.po +++ b/src/i18n/de.po @@ -42,13 +42,13 @@ msgstr "" msgid "Exchanges in the wallet:" msgstr "" -#: src/webex/pages/confirm-contract.tsx:142 +#: src/webex/pages/confirm-contract.tsx:154 #, c-format msgid "You have insufficient funds of the requested currency in your wallet." msgstr "" #. tslint:disable-next-line:max-line-length -#: src/webex/pages/confirm-contract.tsx:144 +#: src/webex/pages/confirm-contract.tsx:156 #, c-format msgid "" "You do not have any funds from an exchange that is accepted by this " @@ -56,67 +56,67 @@ msgid "" "wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:204 +#: src/webex/pages/confirm-create-reserve.tsx:206 #, fuzzy, c-format -msgid "Withdrawal fees: %1$s" +msgid "Withdrawal fees:" msgstr "Abheben bei %1$s" -#: src/webex/pages/confirm-create-reserve.tsx:205 +#: src/webex/pages/confirm-create-reserve.tsx:207 #, c-format -msgid "Rounding loss: %1$s" +msgid "Rounding loss:" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:206 +#: src/webex/pages/confirm-create-reserve.tsx:208 #, c-format msgid "Earliest expiration (for deposit): %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:211 +#: src/webex/pages/confirm-create-reserve.tsx:213 #, c-format msgid "# Coins" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:212 +#: src/webex/pages/confirm-create-reserve.tsx:214 #, c-format msgid "Value" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:213 +#: src/webex/pages/confirm-create-reserve.tsx:215 #, fuzzy, c-format msgid "Withdraw Fee" msgstr "Abheben bei %1$s" -#: src/webex/pages/confirm-create-reserve.tsx:214 +#: src/webex/pages/confirm-create-reserve.tsx:216 #, c-format msgid "Refresh Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:215 +#: src/webex/pages/confirm-create-reserve.tsx:217 #, c-format msgid "Deposit Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:268 +#: src/webex/pages/confirm-create-reserve.tsx:270 #, c-format msgid "Select" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:284 +#: src/webex/pages/confirm-create-reserve.tsx:286 #, c-format msgid "Error: URL may not be relative" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:352 +#: src/webex/pages/confirm-create-reserve.tsx:354 #, c-format msgid "The exchange is trusted by the wallet.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:358 +#: src/webex/pages/confirm-create-reserve.tsx:360 #, c-format msgid "The exchange is audited by a trusted auditor.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:364 +#: src/webex/pages/confirm-create-reserve.tsx:366 #, c-format msgid "" "Warning: The exchange is neither directly trusted nor audited by a trusted " @@ -124,7 +124,7 @@ msgid "" "If you withdraw from this exchange, it will be trusted in the future.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:373 +#: src/webex/pages/confirm-create-reserve.tsx:375 #, c-format msgid "" "Using exchange provider%1$s.\n" @@ -132,156 +132,156 @@ msgid "" " %2$s in fees.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:387 +#: src/webex/pages/confirm-create-reserve.tsx:389 #, c-format msgid "" "Waiting for a response from\n" " %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:398 +#: src/webex/pages/confirm-create-reserve.tsx:400 #, c-format msgid "A problem occured, see below. %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:404 +#: src/webex/pages/confirm-create-reserve.tsx:406 #, c-format msgid "" "Information about fees will be available when an exchange provider is " "selected." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:416 +#: src/webex/pages/confirm-create-reserve.tsx:418 #, c-format msgid "Accept fees and withdraw" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:421 +#: src/webex/pages/confirm-create-reserve.tsx:423 #, c-format msgid "Change Exchange Provider" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:477 +#: src/webex/pages/confirm-create-reserve.tsx:479 #, c-format msgid "You are about to withdraw %1$s from your bank account into your wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:560 +#: src/webex/pages/confirm-create-reserve.tsx:562 #, c-format msgid "" "Oops, something went wrong. The wallet responded with error status (%1$s)." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:571 +#: src/webex/pages/confirm-create-reserve.tsx:573 #, c-format msgid "Checking URL, please wait ..." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:585 +#: src/webex/pages/confirm-create-reserve.tsx:587 #, c-format msgid "Can't parse amount: %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:592 +#: src/webex/pages/confirm-create-reserve.tsx:594 #, c-format msgid "Can't parse wire_types: %1$s" msgstr "" #. TODO:generic error reporting function or component. -#: src/webex/pages/confirm-create-reserve.tsx:612 +#: src/webex/pages/confirm-create-reserve.tsx:614 #, c-format msgid "Fatal error: \"%1$s\"." msgstr "" -#: src/webex/pages/popup.tsx:161 +#: src/webex/pages/popup.tsx:160 #, c-format msgid "Balance" msgstr "Saldo" -#: src/webex/pages/popup.tsx:164 +#: src/webex/pages/popup.tsx:163 #, c-format msgid "History" msgstr "Verlauf" -#: src/webex/pages/popup.tsx:167 +#: src/webex/pages/popup.tsx:166 #, c-format msgid "Debug" msgstr "Debug" -#: src/webex/pages/popup.tsx:243 +#: src/webex/pages/popup.tsx:242 #, c-format msgid "help" msgstr "" -#: src/webex/pages/popup.tsx:248 +#: src/webex/pages/popup.tsx:247 #, fuzzy, c-format msgid "" "You have no balance to show. Need some\n" " %1$s getting started?\n" msgstr "Sie haben kein Digitalgeld. Wollen Sie %1$s? abheben?" -#: src/webex/pages/popup.tsx:265 +#: src/webex/pages/popup.tsx:264 #, c-format msgid "%1$s incoming\n" msgstr "" -#: src/webex/pages/popup.tsx:278 +#: src/webex/pages/popup.tsx:277 #, c-format msgid "%1$s being spent\n" msgstr "" -#: src/webex/pages/popup.tsx:304 +#: src/webex/pages/popup.tsx:303 #, c-format msgid "Error: could not retrieve balance information." msgstr "" -#: src/webex/pages/popup.tsx:343 +#: src/webex/pages/popup.tsx:342 #, fuzzy, c-format msgid "" "Bank requested reserve (%1$s) for\n" " %2$s.\n" msgstr "Bank bestätig anlegen der Reserve (%1$s) bei %2$s" -#: src/webex/pages/popup.tsx:354 +#: src/webex/pages/popup.tsx:353 #, fuzzy, c-format msgid "" "Started to withdraw\n" " %1$s from%2$s(%3$s).\n" msgstr "Reserve (%1$s) mit %2$s bei %3$s erzeugt" -#: src/webex/pages/popup.tsx:364 +#: src/webex/pages/popup.tsx:363 #, c-format msgid "Merchant%1$soffered contract%2$s;\n" msgstr "" -#: src/webex/pages/popup.tsx:374 +#: src/webex/pages/popup.tsx:373 #, fuzzy, c-format msgid "Withdrew%1$sfrom%2$s(%3$s).\n" msgstr "Reserve (%1$s) mit %2$s bei %3$s erzeugt" -#: src/webex/pages/popup.tsx:384 +#: src/webex/pages/popup.tsx:383 #, fuzzy, c-format msgid "" "Paid%1$sto merchant%2$s.\n" " (%3$s)\n" msgstr "Reserve (%1$s) mit %2$s bei %3$s erzeugt" -#: src/webex/pages/popup.tsx:393 +#: src/webex/pages/popup.tsx:392 #, c-format msgid "Unknown event (%1$s)" msgstr "" -#: src/webex/pages/popup.tsx:436 +#: src/webex/pages/popup.tsx:435 #, c-format msgid "Error: could not retrieve event history" msgstr "" -#: src/webex/pages/popup.tsx:470 +#: src/webex/pages/popup.tsx:469 #, c-format msgid "Your wallet has no events recorded." msgstr "Ihre Geldbörse verzeichnet keine Vorkommnisse." -#: src/webex/renderHtml.tsx:49 +#: src/webex/renderHtml.tsx:51 #, fuzzy, c-format msgid "The merchant%1$swants to enter a contract over%2$s with you.\n" msgstr "" @@ -289,13 +289,13 @@ msgstr "" " möchte einen Vertrag über %2$s\n" " mit Ihnen abschließen." -#: src/webex/renderHtml.tsx:54 +#: src/webex/renderHtml.tsx:56 #, fuzzy, c-format msgid "You are about to purchase:" msgstr "Sie sind dabei, Folgendes zu kaufen:" #, fuzzy -#~ msgid "Withdraw fees:" +#~ msgid "Withdrawal fees: %1$s" #~ msgstr "Abheben bei %1$s" #~ msgid "Confirm Payment" diff --git a/src/i18n/en-US.po b/src/i18n/en-US.po index 2e97531f5..ab6e9d36d 100644 --- a/src/i18n/en-US.po +++ b/src/i18n/en-US.po @@ -42,13 +42,13 @@ msgstr "" msgid "Exchanges in the wallet:" msgstr "" -#: src/webex/pages/confirm-contract.tsx:142 +#: src/webex/pages/confirm-contract.tsx:154 #, c-format msgid "You have insufficient funds of the requested currency in your wallet." msgstr "" #. tslint:disable-next-line:max-line-length -#: src/webex/pages/confirm-contract.tsx:144 +#: src/webex/pages/confirm-contract.tsx:156 #, c-format msgid "" "You do not have any funds from an exchange that is accepted by this " @@ -56,67 +56,67 @@ msgid "" "wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:204 +#: src/webex/pages/confirm-create-reserve.tsx:206 #, c-format -msgid "Withdrawal fees: %1$s" +msgid "Withdrawal fees:" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:205 +#: src/webex/pages/confirm-create-reserve.tsx:207 #, c-format -msgid "Rounding loss: %1$s" +msgid "Rounding loss:" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:206 +#: src/webex/pages/confirm-create-reserve.tsx:208 #, c-format msgid "Earliest expiration (for deposit): %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:211 +#: src/webex/pages/confirm-create-reserve.tsx:213 #, c-format msgid "# Coins" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:212 +#: src/webex/pages/confirm-create-reserve.tsx:214 #, c-format msgid "Value" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:213 +#: src/webex/pages/confirm-create-reserve.tsx:215 #, c-format msgid "Withdraw Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:214 +#: src/webex/pages/confirm-create-reserve.tsx:216 #, c-format msgid "Refresh Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:215 +#: src/webex/pages/confirm-create-reserve.tsx:217 #, c-format msgid "Deposit Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:268 +#: src/webex/pages/confirm-create-reserve.tsx:270 #, c-format msgid "Select" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:284 +#: src/webex/pages/confirm-create-reserve.tsx:286 #, c-format msgid "Error: URL may not be relative" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:352 +#: src/webex/pages/confirm-create-reserve.tsx:354 #, c-format msgid "The exchange is trusted by the wallet.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:358 +#: src/webex/pages/confirm-create-reserve.tsx:360 #, c-format msgid "The exchange is audited by a trusted auditor.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:364 +#: src/webex/pages/confirm-create-reserve.tsx:366 #, c-format msgid "" "Warning: The exchange is neither directly trusted nor audited by a trusted " @@ -124,7 +124,7 @@ msgid "" "If you withdraw from this exchange, it will be trusted in the future.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:373 +#: src/webex/pages/confirm-create-reserve.tsx:375 #, c-format msgid "" "Using exchange provider%1$s.\n" @@ -132,161 +132,161 @@ msgid "" " %2$s in fees.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:387 +#: src/webex/pages/confirm-create-reserve.tsx:389 #, c-format msgid "" "Waiting for a response from\n" " %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:398 +#: src/webex/pages/confirm-create-reserve.tsx:400 #, c-format msgid "A problem occured, see below. %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:404 +#: src/webex/pages/confirm-create-reserve.tsx:406 #, c-format msgid "" "Information about fees will be available when an exchange provider is " "selected." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:416 +#: src/webex/pages/confirm-create-reserve.tsx:418 #, c-format msgid "Accept fees and withdraw" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:421 +#: src/webex/pages/confirm-create-reserve.tsx:423 #, c-format msgid "Change Exchange Provider" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:477 +#: src/webex/pages/confirm-create-reserve.tsx:479 #, c-format msgid "You are about to withdraw %1$s from your bank account into your wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:560 +#: src/webex/pages/confirm-create-reserve.tsx:562 #, c-format msgid "" "Oops, something went wrong. The wallet responded with error status (%1$s)." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:571 +#: src/webex/pages/confirm-create-reserve.tsx:573 #, c-format msgid "Checking URL, please wait ..." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:585 +#: src/webex/pages/confirm-create-reserve.tsx:587 #, c-format msgid "Can't parse amount: %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:592 +#: src/webex/pages/confirm-create-reserve.tsx:594 #, c-format msgid "Can't parse wire_types: %1$s" msgstr "" #. TODO:generic error reporting function or component. -#: src/webex/pages/confirm-create-reserve.tsx:612 +#: src/webex/pages/confirm-create-reserve.tsx:614 #, c-format msgid "Fatal error: \"%1$s\"." msgstr "" -#: src/webex/pages/popup.tsx:161 +#: src/webex/pages/popup.tsx:160 #, c-format msgid "Balance" msgstr "" -#: src/webex/pages/popup.tsx:164 +#: src/webex/pages/popup.tsx:163 #, c-format msgid "History" msgstr "" -#: src/webex/pages/popup.tsx:167 +#: src/webex/pages/popup.tsx:166 #, c-format msgid "Debug" msgstr "" -#: src/webex/pages/popup.tsx:243 +#: src/webex/pages/popup.tsx:242 #, c-format msgid "help" msgstr "" -#: src/webex/pages/popup.tsx:248 +#: src/webex/pages/popup.tsx:247 #, c-format msgid "" "You have no balance to show. Need some\n" " %1$s getting started?\n" msgstr "" -#: src/webex/pages/popup.tsx:265 +#: src/webex/pages/popup.tsx:264 #, c-format msgid "%1$s incoming\n" msgstr "" -#: src/webex/pages/popup.tsx:278 +#: src/webex/pages/popup.tsx:277 #, c-format msgid "%1$s being spent\n" msgstr "" -#: src/webex/pages/popup.tsx:304 +#: src/webex/pages/popup.tsx:303 #, c-format msgid "Error: could not retrieve balance information." msgstr "" -#: src/webex/pages/popup.tsx:343 +#: src/webex/pages/popup.tsx:342 #, c-format msgid "" "Bank requested reserve (%1$s) for\n" " %2$s.\n" msgstr "" -#: src/webex/pages/popup.tsx:354 +#: src/webex/pages/popup.tsx:353 #, c-format msgid "" "Started to withdraw\n" " %1$s from%2$s(%3$s).\n" msgstr "" -#: src/webex/pages/popup.tsx:364 +#: src/webex/pages/popup.tsx:363 #, c-format msgid "Merchant%1$soffered contract%2$s;\n" msgstr "" -#: src/webex/pages/popup.tsx:374 +#: src/webex/pages/popup.tsx:373 #, c-format msgid "Withdrew%1$sfrom%2$s(%3$s).\n" msgstr "" -#: src/webex/pages/popup.tsx:384 +#: src/webex/pages/popup.tsx:383 #, c-format msgid "" "Paid%1$sto merchant%2$s.\n" " (%3$s)\n" msgstr "" -#: src/webex/pages/popup.tsx:393 +#: src/webex/pages/popup.tsx:392 #, c-format msgid "Unknown event (%1$s)" msgstr "" -#: src/webex/pages/popup.tsx:436 +#: src/webex/pages/popup.tsx:435 #, c-format msgid "Error: could not retrieve event history" msgstr "" -#: src/webex/pages/popup.tsx:470 +#: src/webex/pages/popup.tsx:469 #, c-format msgid "Your wallet has no events recorded." msgstr "" -#: src/webex/renderHtml.tsx:49 +#: src/webex/renderHtml.tsx:51 #, c-format msgid "The merchant%1$swants to enter a contract over%2$s with you.\n" msgstr "" -#: src/webex/renderHtml.tsx:54 +#: src/webex/renderHtml.tsx:56 #, c-format msgid "You are about to purchase:" msgstr "" diff --git a/src/i18n/fr.po b/src/i18n/fr.po index c6fddd9ce..b08b98b83 100644 --- a/src/i18n/fr.po +++ b/src/i18n/fr.po @@ -42,13 +42,13 @@ msgstr "" msgid "Exchanges in the wallet:" msgstr "" -#: src/webex/pages/confirm-contract.tsx:142 +#: src/webex/pages/confirm-contract.tsx:154 #, c-format msgid "You have insufficient funds of the requested currency in your wallet." msgstr "" #. tslint:disable-next-line:max-line-length -#: src/webex/pages/confirm-contract.tsx:144 +#: src/webex/pages/confirm-contract.tsx:156 #, c-format msgid "" "You do not have any funds from an exchange that is accepted by this " @@ -56,67 +56,67 @@ msgid "" "wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:204 +#: src/webex/pages/confirm-create-reserve.tsx:206 #, c-format -msgid "Withdrawal fees: %1$s" +msgid "Withdrawal fees:" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:205 +#: src/webex/pages/confirm-create-reserve.tsx:207 #, c-format -msgid "Rounding loss: %1$s" +msgid "Rounding loss:" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:206 +#: src/webex/pages/confirm-create-reserve.tsx:208 #, c-format msgid "Earliest expiration (for deposit): %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:211 +#: src/webex/pages/confirm-create-reserve.tsx:213 #, c-format msgid "# Coins" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:212 +#: src/webex/pages/confirm-create-reserve.tsx:214 #, c-format msgid "Value" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:213 +#: src/webex/pages/confirm-create-reserve.tsx:215 #, c-format msgid "Withdraw Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:214 +#: src/webex/pages/confirm-create-reserve.tsx:216 #, c-format msgid "Refresh Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:215 +#: src/webex/pages/confirm-create-reserve.tsx:217 #, c-format msgid "Deposit Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:268 +#: src/webex/pages/confirm-create-reserve.tsx:270 #, c-format msgid "Select" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:284 +#: src/webex/pages/confirm-create-reserve.tsx:286 #, c-format msgid "Error: URL may not be relative" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:352 +#: src/webex/pages/confirm-create-reserve.tsx:354 #, c-format msgid "The exchange is trusted by the wallet.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:358 +#: src/webex/pages/confirm-create-reserve.tsx:360 #, c-format msgid "The exchange is audited by a trusted auditor.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:364 +#: src/webex/pages/confirm-create-reserve.tsx:366 #, c-format msgid "" "Warning: The exchange is neither directly trusted nor audited by a trusted " @@ -124,7 +124,7 @@ msgid "" "If you withdraw from this exchange, it will be trusted in the future.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:373 +#: src/webex/pages/confirm-create-reserve.tsx:375 #, c-format msgid "" "Using exchange provider%1$s.\n" @@ -132,161 +132,161 @@ msgid "" " %2$s in fees.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:387 +#: src/webex/pages/confirm-create-reserve.tsx:389 #, c-format msgid "" "Waiting for a response from\n" " %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:398 +#: src/webex/pages/confirm-create-reserve.tsx:400 #, c-format msgid "A problem occured, see below. %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:404 +#: src/webex/pages/confirm-create-reserve.tsx:406 #, c-format msgid "" "Information about fees will be available when an exchange provider is " "selected." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:416 +#: src/webex/pages/confirm-create-reserve.tsx:418 #, c-format msgid "Accept fees and withdraw" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:421 +#: src/webex/pages/confirm-create-reserve.tsx:423 #, c-format msgid "Change Exchange Provider" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:477 +#: src/webex/pages/confirm-create-reserve.tsx:479 #, c-format msgid "You are about to withdraw %1$s from your bank account into your wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:560 +#: src/webex/pages/confirm-create-reserve.tsx:562 #, c-format msgid "" "Oops, something went wrong. The wallet responded with error status (%1$s)." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:571 +#: src/webex/pages/confirm-create-reserve.tsx:573 #, c-format msgid "Checking URL, please wait ..." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:585 +#: src/webex/pages/confirm-create-reserve.tsx:587 #, c-format msgid "Can't parse amount: %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:592 +#: src/webex/pages/confirm-create-reserve.tsx:594 #, c-format msgid "Can't parse wire_types: %1$s" msgstr "" #. TODO:generic error reporting function or component. -#: src/webex/pages/confirm-create-reserve.tsx:612 +#: src/webex/pages/confirm-create-reserve.tsx:614 #, c-format msgid "Fatal error: \"%1$s\"." msgstr "" -#: src/webex/pages/popup.tsx:161 +#: src/webex/pages/popup.tsx:160 #, c-format msgid "Balance" msgstr "" -#: src/webex/pages/popup.tsx:164 +#: src/webex/pages/popup.tsx:163 #, c-format msgid "History" msgstr "" -#: src/webex/pages/popup.tsx:167 +#: src/webex/pages/popup.tsx:166 #, c-format msgid "Debug" msgstr "" -#: src/webex/pages/popup.tsx:243 +#: src/webex/pages/popup.tsx:242 #, c-format msgid "help" msgstr "" -#: src/webex/pages/popup.tsx:248 +#: src/webex/pages/popup.tsx:247 #, c-format msgid "" "You have no balance to show. Need some\n" " %1$s getting started?\n" msgstr "" -#: src/webex/pages/popup.tsx:265 +#: src/webex/pages/popup.tsx:264 #, c-format msgid "%1$s incoming\n" msgstr "" -#: src/webex/pages/popup.tsx:278 +#: src/webex/pages/popup.tsx:277 #, c-format msgid "%1$s being spent\n" msgstr "" -#: src/webex/pages/popup.tsx:304 +#: src/webex/pages/popup.tsx:303 #, c-format msgid "Error: could not retrieve balance information." msgstr "" -#: src/webex/pages/popup.tsx:343 +#: src/webex/pages/popup.tsx:342 #, c-format msgid "" "Bank requested reserve (%1$s) for\n" " %2$s.\n" msgstr "" -#: src/webex/pages/popup.tsx:354 +#: src/webex/pages/popup.tsx:353 #, c-format msgid "" "Started to withdraw\n" " %1$s from%2$s(%3$s).\n" msgstr "" -#: src/webex/pages/popup.tsx:364 +#: src/webex/pages/popup.tsx:363 #, c-format msgid "Merchant%1$soffered contract%2$s;\n" msgstr "" -#: src/webex/pages/popup.tsx:374 +#: src/webex/pages/popup.tsx:373 #, c-format msgid "Withdrew%1$sfrom%2$s(%3$s).\n" msgstr "" -#: src/webex/pages/popup.tsx:384 +#: src/webex/pages/popup.tsx:383 #, c-format msgid "" "Paid%1$sto merchant%2$s.\n" " (%3$s)\n" msgstr "" -#: src/webex/pages/popup.tsx:393 +#: src/webex/pages/popup.tsx:392 #, c-format msgid "Unknown event (%1$s)" msgstr "" -#: src/webex/pages/popup.tsx:436 +#: src/webex/pages/popup.tsx:435 #, c-format msgid "Error: could not retrieve event history" msgstr "" -#: src/webex/pages/popup.tsx:470 +#: src/webex/pages/popup.tsx:469 #, c-format msgid "Your wallet has no events recorded." msgstr "" -#: src/webex/renderHtml.tsx:49 +#: src/webex/renderHtml.tsx:51 #, c-format msgid "The merchant%1$swants to enter a contract over%2$s with you.\n" msgstr "" -#: src/webex/renderHtml.tsx:54 +#: src/webex/renderHtml.tsx:56 #, c-format msgid "You are about to purchase:" msgstr "" diff --git a/src/i18n/it.po b/src/i18n/it.po index c6fddd9ce..b08b98b83 100644 --- a/src/i18n/it.po +++ b/src/i18n/it.po @@ -42,13 +42,13 @@ msgstr "" msgid "Exchanges in the wallet:" msgstr "" -#: src/webex/pages/confirm-contract.tsx:142 +#: src/webex/pages/confirm-contract.tsx:154 #, c-format msgid "You have insufficient funds of the requested currency in your wallet." msgstr "" #. tslint:disable-next-line:max-line-length -#: src/webex/pages/confirm-contract.tsx:144 +#: src/webex/pages/confirm-contract.tsx:156 #, c-format msgid "" "You do not have any funds from an exchange that is accepted by this " @@ -56,67 +56,67 @@ msgid "" "wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:204 +#: src/webex/pages/confirm-create-reserve.tsx:206 #, c-format -msgid "Withdrawal fees: %1$s" +msgid "Withdrawal fees:" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:205 +#: src/webex/pages/confirm-create-reserve.tsx:207 #, c-format -msgid "Rounding loss: %1$s" +msgid "Rounding loss:" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:206 +#: src/webex/pages/confirm-create-reserve.tsx:208 #, c-format msgid "Earliest expiration (for deposit): %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:211 +#: src/webex/pages/confirm-create-reserve.tsx:213 #, c-format msgid "# Coins" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:212 +#: src/webex/pages/confirm-create-reserve.tsx:214 #, c-format msgid "Value" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:213 +#: src/webex/pages/confirm-create-reserve.tsx:215 #, c-format msgid "Withdraw Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:214 +#: src/webex/pages/confirm-create-reserve.tsx:216 #, c-format msgid "Refresh Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:215 +#: src/webex/pages/confirm-create-reserve.tsx:217 #, c-format msgid "Deposit Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:268 +#: src/webex/pages/confirm-create-reserve.tsx:270 #, c-format msgid "Select" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:284 +#: src/webex/pages/confirm-create-reserve.tsx:286 #, c-format msgid "Error: URL may not be relative" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:352 +#: src/webex/pages/confirm-create-reserve.tsx:354 #, c-format msgid "The exchange is trusted by the wallet.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:358 +#: src/webex/pages/confirm-create-reserve.tsx:360 #, c-format msgid "The exchange is audited by a trusted auditor.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:364 +#: src/webex/pages/confirm-create-reserve.tsx:366 #, c-format msgid "" "Warning: The exchange is neither directly trusted nor audited by a trusted " @@ -124,7 +124,7 @@ msgid "" "If you withdraw from this exchange, it will be trusted in the future.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:373 +#: src/webex/pages/confirm-create-reserve.tsx:375 #, c-format msgid "" "Using exchange provider%1$s.\n" @@ -132,161 +132,161 @@ msgid "" " %2$s in fees.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:387 +#: src/webex/pages/confirm-create-reserve.tsx:389 #, c-format msgid "" "Waiting for a response from\n" " %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:398 +#: src/webex/pages/confirm-create-reserve.tsx:400 #, c-format msgid "A problem occured, see below. %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:404 +#: src/webex/pages/confirm-create-reserve.tsx:406 #, c-format msgid "" "Information about fees will be available when an exchange provider is " "selected." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:416 +#: src/webex/pages/confirm-create-reserve.tsx:418 #, c-format msgid "Accept fees and withdraw" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:421 +#: src/webex/pages/confirm-create-reserve.tsx:423 #, c-format msgid "Change Exchange Provider" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:477 +#: src/webex/pages/confirm-create-reserve.tsx:479 #, c-format msgid "You are about to withdraw %1$s from your bank account into your wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:560 +#: src/webex/pages/confirm-create-reserve.tsx:562 #, c-format msgid "" "Oops, something went wrong. The wallet responded with error status (%1$s)." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:571 +#: src/webex/pages/confirm-create-reserve.tsx:573 #, c-format msgid "Checking URL, please wait ..." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:585 +#: src/webex/pages/confirm-create-reserve.tsx:587 #, c-format msgid "Can't parse amount: %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:592 +#: src/webex/pages/confirm-create-reserve.tsx:594 #, c-format msgid "Can't parse wire_types: %1$s" msgstr "" #. TODO:generic error reporting function or component. -#: src/webex/pages/confirm-create-reserve.tsx:612 +#: src/webex/pages/confirm-create-reserve.tsx:614 #, c-format msgid "Fatal error: \"%1$s\"." msgstr "" -#: src/webex/pages/popup.tsx:161 +#: src/webex/pages/popup.tsx:160 #, c-format msgid "Balance" msgstr "" -#: src/webex/pages/popup.tsx:164 +#: src/webex/pages/popup.tsx:163 #, c-format msgid "History" msgstr "" -#: src/webex/pages/popup.tsx:167 +#: src/webex/pages/popup.tsx:166 #, c-format msgid "Debug" msgstr "" -#: src/webex/pages/popup.tsx:243 +#: src/webex/pages/popup.tsx:242 #, c-format msgid "help" msgstr "" -#: src/webex/pages/popup.tsx:248 +#: src/webex/pages/popup.tsx:247 #, c-format msgid "" "You have no balance to show. Need some\n" " %1$s getting started?\n" msgstr "" -#: src/webex/pages/popup.tsx:265 +#: src/webex/pages/popup.tsx:264 #, c-format msgid "%1$s incoming\n" msgstr "" -#: src/webex/pages/popup.tsx:278 +#: src/webex/pages/popup.tsx:277 #, c-format msgid "%1$s being spent\n" msgstr "" -#: src/webex/pages/popup.tsx:304 +#: src/webex/pages/popup.tsx:303 #, c-format msgid "Error: could not retrieve balance information." msgstr "" -#: src/webex/pages/popup.tsx:343 +#: src/webex/pages/popup.tsx:342 #, c-format msgid "" "Bank requested reserve (%1$s) for\n" " %2$s.\n" msgstr "" -#: src/webex/pages/popup.tsx:354 +#: src/webex/pages/popup.tsx:353 #, c-format msgid "" "Started to withdraw\n" " %1$s from%2$s(%3$s).\n" msgstr "" -#: src/webex/pages/popup.tsx:364 +#: src/webex/pages/popup.tsx:363 #, c-format msgid "Merchant%1$soffered contract%2$s;\n" msgstr "" -#: src/webex/pages/popup.tsx:374 +#: src/webex/pages/popup.tsx:373 #, c-format msgid "Withdrew%1$sfrom%2$s(%3$s).\n" msgstr "" -#: src/webex/pages/popup.tsx:384 +#: src/webex/pages/popup.tsx:383 #, c-format msgid "" "Paid%1$sto merchant%2$s.\n" " (%3$s)\n" msgstr "" -#: src/webex/pages/popup.tsx:393 +#: src/webex/pages/popup.tsx:392 #, c-format msgid "Unknown event (%1$s)" msgstr "" -#: src/webex/pages/popup.tsx:436 +#: src/webex/pages/popup.tsx:435 #, c-format msgid "Error: could not retrieve event history" msgstr "" -#: src/webex/pages/popup.tsx:470 +#: src/webex/pages/popup.tsx:469 #, c-format msgid "Your wallet has no events recorded." msgstr "" -#: src/webex/renderHtml.tsx:49 +#: src/webex/renderHtml.tsx:51 #, c-format msgid "The merchant%1$swants to enter a contract over%2$s with you.\n" msgstr "" -#: src/webex/renderHtml.tsx:54 +#: src/webex/renderHtml.tsx:56 #, c-format msgid "You are about to purchase:" msgstr "" diff --git a/src/i18n/strings.ts b/src/i18n/strings.ts index f21122542..242fecf5f 100644 --- a/src/i18n/strings.ts +++ b/src/i18n/strings.ts @@ -39,10 +39,10 @@ strings['de'] = { "You do not have any funds from an exchange that is accepted by this merchant. None of the exchanges accepted by the merchant is known to your wallet.": [ "" ], - "Withdrawal fees: %1$s": [ + "Withdrawal fees:": [ "Abheben bei %1$s" ], - "Rounding loss: %1$s": [ + "Rounding loss:": [ "" ], "Earliest expiration (for deposit): %1$s": [ @@ -195,10 +195,10 @@ strings['en-US'] = { "You do not have any funds from an exchange that is accepted by this merchant. None of the exchanges accepted by the merchant is known to your wallet.": [ "" ], - "Withdrawal fees: %1$s": [ + "Withdrawal fees:": [ "" ], - "Rounding loss: %1$s": [ + "Rounding loss:": [ "" ], "Earliest expiration (for deposit): %1$s": [ @@ -351,10 +351,10 @@ strings['fr'] = { "You do not have any funds from an exchange that is accepted by this merchant. None of the exchanges accepted by the merchant is known to your wallet.": [ "" ], - "Withdrawal fees: %1$s": [ + "Withdrawal fees:": [ "" ], - "Rounding loss: %1$s": [ + "Rounding loss:": [ "" ], "Earliest expiration (for deposit): %1$s": [ @@ -507,10 +507,10 @@ strings['it'] = { "You do not have any funds from an exchange that is accepted by this merchant. None of the exchanges accepted by the merchant is known to your wallet.": [ "" ], - "Withdrawal fees: %1$s": [ + "Withdrawal fees:": [ "" ], - "Rounding loss: %1$s": [ + "Rounding loss:": [ "" ], "Earliest expiration (for deposit): %1$s": [ diff --git a/src/i18n/taler-wallet-webex.pot b/src/i18n/taler-wallet-webex.pot index c6fddd9ce..b08b98b83 100644 --- a/src/i18n/taler-wallet-webex.pot +++ b/src/i18n/taler-wallet-webex.pot @@ -42,13 +42,13 @@ msgstr "" msgid "Exchanges in the wallet:" msgstr "" -#: src/webex/pages/confirm-contract.tsx:142 +#: src/webex/pages/confirm-contract.tsx:154 #, c-format msgid "You have insufficient funds of the requested currency in your wallet." msgstr "" #. tslint:disable-next-line:max-line-length -#: src/webex/pages/confirm-contract.tsx:144 +#: src/webex/pages/confirm-contract.tsx:156 #, c-format msgid "" "You do not have any funds from an exchange that is accepted by this " @@ -56,67 +56,67 @@ msgid "" "wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:204 +#: src/webex/pages/confirm-create-reserve.tsx:206 #, c-format -msgid "Withdrawal fees: %1$s" +msgid "Withdrawal fees:" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:205 +#: src/webex/pages/confirm-create-reserve.tsx:207 #, c-format -msgid "Rounding loss: %1$s" +msgid "Rounding loss:" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:206 +#: src/webex/pages/confirm-create-reserve.tsx:208 #, c-format msgid "Earliest expiration (for deposit): %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:211 +#: src/webex/pages/confirm-create-reserve.tsx:213 #, c-format msgid "# Coins" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:212 +#: src/webex/pages/confirm-create-reserve.tsx:214 #, c-format msgid "Value" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:213 +#: src/webex/pages/confirm-create-reserve.tsx:215 #, c-format msgid "Withdraw Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:214 +#: src/webex/pages/confirm-create-reserve.tsx:216 #, c-format msgid "Refresh Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:215 +#: src/webex/pages/confirm-create-reserve.tsx:217 #, c-format msgid "Deposit Fee" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:268 +#: src/webex/pages/confirm-create-reserve.tsx:270 #, c-format msgid "Select" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:284 +#: src/webex/pages/confirm-create-reserve.tsx:286 #, c-format msgid "Error: URL may not be relative" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:352 +#: src/webex/pages/confirm-create-reserve.tsx:354 #, c-format msgid "The exchange is trusted by the wallet.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:358 +#: src/webex/pages/confirm-create-reserve.tsx:360 #, c-format msgid "The exchange is audited by a trusted auditor.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:364 +#: src/webex/pages/confirm-create-reserve.tsx:366 #, c-format msgid "" "Warning: The exchange is neither directly trusted nor audited by a trusted " @@ -124,7 +124,7 @@ msgid "" "If you withdraw from this exchange, it will be trusted in the future.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:373 +#: src/webex/pages/confirm-create-reserve.tsx:375 #, c-format msgid "" "Using exchange provider%1$s.\n" @@ -132,161 +132,161 @@ msgid "" " %2$s in fees.\n" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:387 +#: src/webex/pages/confirm-create-reserve.tsx:389 #, c-format msgid "" "Waiting for a response from\n" " %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:398 +#: src/webex/pages/confirm-create-reserve.tsx:400 #, c-format msgid "A problem occured, see below. %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:404 +#: src/webex/pages/confirm-create-reserve.tsx:406 #, c-format msgid "" "Information about fees will be available when an exchange provider is " "selected." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:416 +#: src/webex/pages/confirm-create-reserve.tsx:418 #, c-format msgid "Accept fees and withdraw" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:421 +#: src/webex/pages/confirm-create-reserve.tsx:423 #, c-format msgid "Change Exchange Provider" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:477 +#: src/webex/pages/confirm-create-reserve.tsx:479 #, c-format msgid "You are about to withdraw %1$s from your bank account into your wallet." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:560 +#: src/webex/pages/confirm-create-reserve.tsx:562 #, c-format msgid "" "Oops, something went wrong. The wallet responded with error status (%1$s)." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:571 +#: src/webex/pages/confirm-create-reserve.tsx:573 #, c-format msgid "Checking URL, please wait ..." msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:585 +#: src/webex/pages/confirm-create-reserve.tsx:587 #, c-format msgid "Can't parse amount: %1$s" msgstr "" -#: src/webex/pages/confirm-create-reserve.tsx:592 +#: src/webex/pages/confirm-create-reserve.tsx:594 #, c-format msgid "Can't parse wire_types: %1$s" msgstr "" #. TODO:generic error reporting function or component. -#: src/webex/pages/confirm-create-reserve.tsx:612 +#: src/webex/pages/confirm-create-reserve.tsx:614 #, c-format msgid "Fatal error: \"%1$s\"." msgstr "" -#: src/webex/pages/popup.tsx:161 +#: src/webex/pages/popup.tsx:160 #, c-format msgid "Balance" msgstr "" -#: src/webex/pages/popup.tsx:164 +#: src/webex/pages/popup.tsx:163 #, c-format msgid "History" msgstr "" -#: src/webex/pages/popup.tsx:167 +#: src/webex/pages/popup.tsx:166 #, c-format msgid "Debug" msgstr "" -#: src/webex/pages/popup.tsx:243 +#: src/webex/pages/popup.tsx:242 #, c-format msgid "help" msgstr "" -#: src/webex/pages/popup.tsx:248 +#: src/webex/pages/popup.tsx:247 #, c-format msgid "" "You have no balance to show. Need some\n" " %1$s getting started?\n" msgstr "" -#: src/webex/pages/popup.tsx:265 +#: src/webex/pages/popup.tsx:264 #, c-format msgid "%1$s incoming\n" msgstr "" -#: src/webex/pages/popup.tsx:278 +#: src/webex/pages/popup.tsx:277 #, c-format msgid "%1$s being spent\n" msgstr "" -#: src/webex/pages/popup.tsx:304 +#: src/webex/pages/popup.tsx:303 #, c-format msgid "Error: could not retrieve balance information." msgstr "" -#: src/webex/pages/popup.tsx:343 +#: src/webex/pages/popup.tsx:342 #, c-format msgid "" "Bank requested reserve (%1$s) for\n" " %2$s.\n" msgstr "" -#: src/webex/pages/popup.tsx:354 +#: src/webex/pages/popup.tsx:353 #, c-format msgid "" "Started to withdraw\n" " %1$s from%2$s(%3$s).\n" msgstr "" -#: src/webex/pages/popup.tsx:364 +#: src/webex/pages/popup.tsx:363 #, c-format msgid "Merchant%1$soffered contract%2$s;\n" msgstr "" -#: src/webex/pages/popup.tsx:374 +#: src/webex/pages/popup.tsx:373 #, c-format msgid "Withdrew%1$sfrom%2$s(%3$s).\n" msgstr "" -#: src/webex/pages/popup.tsx:384 +#: src/webex/pages/popup.tsx:383 #, c-format msgid "" "Paid%1$sto merchant%2$s.\n" " (%3$s)\n" msgstr "" -#: src/webex/pages/popup.tsx:393 +#: src/webex/pages/popup.tsx:392 #, c-format msgid "Unknown event (%1$s)" msgstr "" -#: src/webex/pages/popup.tsx:436 +#: src/webex/pages/popup.tsx:435 #, c-format msgid "Error: could not retrieve event history" msgstr "" -#: src/webex/pages/popup.tsx:470 +#: src/webex/pages/popup.tsx:469 #, c-format msgid "Your wallet has no events recorded." msgstr "" -#: src/webex/renderHtml.tsx:49 +#: src/webex/renderHtml.tsx:51 #, c-format msgid "The merchant%1$swants to enter a contract over%2$s with you.\n" msgstr "" -#: src/webex/renderHtml.tsx:54 +#: src/webex/renderHtml.tsx:56 #, c-format msgid "You are about to purchase:" msgstr "" diff --git a/src/webex/pages/confirm-contract.tsx b/src/webex/pages/confirm-contract.tsx index c4692cbf2..fa71b1028 100644 --- a/src/webex/pages/confirm-contract.tsx +++ b/src/webex/pages/confirm-contract.tsx @@ -107,6 +107,12 @@ interface ContractPromptState { payDisabled: boolean; alreadyPaid: boolean; exchanges: null|ExchangeRecord[]; + /** + * Don't request updates to proposal state while + * this is set to true, to avoid UI flickering + * when pressing pay. + */ + holdCheck: boolean; } class ContractPrompt extends React.Component { @@ -118,6 +124,7 @@ class ContractPrompt extends React.Component this.checkPayment(), 500); + if (this.state.holdCheck) { + return; + } const payStatus = await wxApi.checkPay(this.props.proposalId); if (payStatus === "insufficient-balance") { const msgInsufficient = i18n.str`You have insufficient funds of the requested currency in your wallet.`; @@ -160,11 +171,11 @@ class ContractPrompt extends React.Component this.checkPayment(), 500); } async doPayment() { const proposal = this.state.proposal; + this.setState({holdCheck: true}); if (!proposal) { return; } @@ -178,6 +189,7 @@ class ContractPrompt extends React.Component {countByPub[denom.denomPub] + "x"} - {amountToPretty(denom.value)} - {amountToPretty(denom.feeWithdraw)} - {amountToPretty(denom.feeRefresh)} - {amountToPretty(denom.feeDeposit)} + {renderAmount(denom.value)} + {renderAmount(denom.feeWithdraw)} + {renderAmount(denom.feeRefresh)} + {renderAmount(denom.feeDeposit)} ); } @@ -187,22 +189,22 @@ function renderReserveCreationDetails(rci: ReserveCreationInfo|null) { {rci!.wireFees.feesForType[s].map((f) => ( {moment.unix(f.endStamp).format("llll")} - {amountToPretty(f.wireFee)} - {amountToPretty(f.closingFee)} + {renderAmount(f.wireFee)} + {renderAmount(f.closingFee)} ))} , ]; } - const withdrawFeeStr = amountToPretty(rci.withdrawFee); - const overheadStr = amountToPretty(rci.overhead); + const withdrawFee = renderAmount(rci.withdrawFee); + const overhead = renderAmount(rci.overhead); return (

Overview

-

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

-

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

+

{i18n.str`Withdrawal fees:`} {withdrawFee}

+

{i18n.str`Rounding loss:`} {overhead}

{i18n.str`Earliest expiration (for deposit): ${moment.unix(rci.earliestDepositExpiration).fromNow()}`}

Coin Fees

@@ -374,7 +376,7 @@ class ExchangeSelection extends ImplicitStateComponent { Using exchange provider {this.url()}. The exchange provider will charge {" "} - {amountToPretty(totalCost)} + {renderAmount(totalCost)} {" "} in fees. @@ -476,7 +478,7 @@ class ExchangeSelection extends ImplicitStateComponent {
{"You are about to withdraw "} - {amountToPretty(this.props.amount)} + {renderAmount(this.props.amount)} {" from your bank account into your wallet."} {this.selectingExchange() ? this.renderSelect() : this.renderConfirm()} diff --git a/src/webex/pages/payback.tsx b/src/webex/pages/payback.tsx index 4aadf5add..51ad8612c 100644 --- a/src/webex/pages/payback.tsx +++ b/src/webex/pages/payback.tsx @@ -24,7 +24,7 @@ /** * Imports. */ -import { amountToPretty } from "../../helpers"; +import { renderAmount } from "../renderHtml"; import { ReserveRecord, } from "../../types"; @@ -73,7 +73,7 @@ class Payback extends ImplicitStateComponent {
{reserves.map((r) => (
-

Reserve for ${amountToPretty(r.current_amount!)}

+

Reserve for ${renderAmount(r.current_amount!)}

  • Exchange: ${r.exchange_base_url}
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index 54e4f3e2d..ee9c8023f 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -25,7 +25,6 @@ /** * Imports. */ -import { amountToPretty } from "../../helpers"; import * as i18n from "../../i18n"; import { AmountJson, @@ -36,7 +35,7 @@ import { WalletBalanceEntry, } from "../../types"; -import { abbrev } from "../renderHtml"; +import { abbrev, renderAmount } from "../renderHtml"; import * as React from "react"; import * as ReactDOM from "react-dom"; @@ -258,15 +257,15 @@ class WalletBalanceView extends React.Component { let incoming: JSX.Element | undefined; let payment: JSX.Element | undefined; - console.log("available: ", entry.pendingIncoming ? amountToPretty(entry.available) : null); - console.log("incoming: ", entry.pendingIncoming ? amountToPretty(entry.pendingIncoming) : null); + console.log("available: ", entry.pendingIncoming ? renderAmount(entry.available) : null); + console.log("incoming: ", entry.pendingIncoming ? renderAmount(entry.pendingIncoming) : null); if (Amounts.isNonZero(entry.pendingIncoming)) { incoming = ( {"+"} - {amountToPretty(entry.pendingIncoming)} + {renderAmount(entry.pendingIncoming)} {" "} incoming @@ -278,7 +277,7 @@ class WalletBalanceView extends React.Component { payment = ( - {amountToPretty(entry.pendingPayment)} + {renderAmount(entry.pendingPayment)} {" "} being spent @@ -344,7 +343,7 @@ function formatHistoryItem(historyItem: HistoryRecord) { Bank requested reserve ({abbrev(d.reservePub)}) for {" "} - {amountToPretty(d.requestedAmount)}. + {renderAmount(d.requestedAmount)}. ); case "confirm-reserve": { @@ -354,7 +353,7 @@ function formatHistoryItem(historyItem: HistoryRecord) { return ( Started to withdraw - {" "}{amountToPretty(d.requestedAmount)}{" "} + {" "}{renderAmount(d.requestedAmount)}{" "} from {exchange} ({pub}). ); @@ -369,7 +368,7 @@ function formatHistoryItem(historyItem: HistoryRecord) { } case "depleted-reserve": { const exchange = d.exchangeBaseUrl ? (new URI(d.exchangeBaseUrl)).host() : "??"; - const amount = amountToPretty(d.requestedAmount); + const amount = renderAmount(d.requestedAmount); const pub = abbrev(d.reservePub); return ( @@ -383,7 +382,7 @@ function formatHistoryItem(historyItem: HistoryRecord) { const fulfillmentLinkElem = view product; return ( - Paid {amountToPretty(d.amount)} to merchant {merchantElem}. + Paid {renderAmount(d.amount)} to merchant {merchantElem}. {" "} ({fulfillmentLinkElem}) diff --git a/src/webex/pages/tree.tsx b/src/webex/pages/tree.tsx index 3eafbbeb4..ad1693fb5 100644 --- a/src/webex/pages/tree.tsx +++ b/src/webex/pages/tree.tsx @@ -21,7 +21,7 @@ */ -import { amountToPretty, getTalerStampDate } from "../../helpers"; +import { getTalerStampDate } from "../../helpers"; import { CoinRecord, CoinStatus, @@ -42,6 +42,8 @@ import { refresh, } from "../wxApi"; +import { renderAmount } from "../renderHtml"; + import * as React from "react"; import * as ReactDOM from "react-dom"; @@ -57,8 +59,8 @@ class ReserveView extends React.Component {
  • Key: {r.reserve_pub}
  • Created: {(new Date(r.created * 1000).toString())}
  • -
  • Current: {r.current_amount ? amountToPretty(r.current_amount!) : "null"}
  • -
  • Requested: {amountToPretty(r.requested_amount)}
  • +
  • Current: {r.current_amount ? renderAmount(r.current_amount!) : "null"}
  • +
  • Requested: {renderAmount(r.requested_amount)}
  • Confirmed: {r.confirmed}
@@ -135,7 +137,7 @@ class CoinView extends React.Component {
  • Key: {c.coinPub}
  • -
  • Current amount: {amountToPretty(c.currentAmount)}
  • +
  • Current amount: {renderAmount(c.currentAmount)}
  • Denomination:
  • Suspended: {(c.suspended || false).toString()}
  • Status: {CoinStatus[c.status]}
  • @@ -304,11 +306,11 @@ class DenominationList extends ImplicitStateComponent {
    • Offered: {d.isOffered ? "yes" : "no"}
    • -
    • Value: {amountToPretty(d.value)}
    • -
    • Withdraw fee: {amountToPretty(d.feeWithdraw)}
    • -
    • Refresh fee: {amountToPretty(d.feeRefresh)}
    • -
    • Deposit fee: {amountToPretty(d.feeDeposit)}
    • -
    • Refund fee: {amountToPretty(d.feeRefund)}
    • +
    • Value: {renderAmount(d.value)}
    • +
    • Withdraw fee: {renderAmount(d.feeWithdraw)}
    • +
    • Refresh fee: {renderAmount(d.feeRefresh)}
    • +
    • Deposit fee: {renderAmount(d.feeDeposit)}
    • +
    • Refund fee: {renderAmount(d.feeRefund)}
    • Start: {getTalerStampDate(d.stampStart)!.toString()}
    • Withdraw expiration: {getTalerStampDate(d.stampExpireWithdraw)!.toString()}
    • Legal expiration: {getTalerStampDate(d.stampExpireLegal)!.toString()}
    • diff --git a/src/webex/renderHtml.tsx b/src/webex/renderHtml.tsx index 4dd7baded..51f9019ef 100644 --- a/src/webex/renderHtml.tsx +++ b/src/webex/renderHtml.tsx @@ -27,6 +27,8 @@ import { amountToPretty } from "../helpers"; import * as i18n from "../i18n"; import { + AmountJson, + Amounts, ContractTerms, } from "../types"; @@ -62,6 +64,16 @@ export function renderContractTerms(contractTerms: ContractTerms): JSX.Element { } +/** + * Render amount as HTML, which non-breaking space between + * decimal value and currency. + */ +export function renderAmount(amount: AmountJson) { + const x = amount.value + amount.fraction / Amounts.fractionalBase; + return {x} {amount.currency}; +} + + /** * Abbreviate a string to a given length, and show the full * string on hover as a tooltip. -- cgit v1.2.3