fix history rendering issue caused by i18n

This commit is contained in:
Florian Dold 2017-10-17 12:06:47 +02:00
parent 0305b2c2f7
commit 4955454440
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
7 changed files with 30 additions and 30 deletions

View File

@ -266,12 +266,12 @@ msgstr "Bank bestätig anlegen der Reserve (%1$s) bei %2$s"
#, fuzzy, c-format
msgid ""
"Started to withdraw\n"
" %1$s from%2$s(%3$s).\n"
" %1$s%2$sfrom%3$s(%4$s).\n"
msgstr "Reserve (%1$s) mit %2$s bei %3$s erzeugt"
#: src/webex/pages/popup.tsx:368
#, fuzzy, c-format
msgid "Merchant%1$soffered contract%2$s.\n"
msgid "Merchant%1$soffered%2$scontract%3$s.\n"
msgstr ""
"%1$s\n"
" möchte einen Vertrag über %2$s\n"
@ -286,7 +286,7 @@ msgstr "Reserve (%1$s) mit %2$s bei %3$s erzeugt"
#, fuzzy, c-format
msgid ""
"Paid%1$sto merchant%2$s.\n"
" (%3$s)\n"
"%3$s(%4$s)\n"
msgstr "Reserve (%1$s) mit %2$s bei %3$s erzeugt"
#: src/webex/pages/popup.tsx:399

View File

@ -266,12 +266,12 @@ msgstr ""
#, c-format
msgid ""
"Started to withdraw\n"
" %1$s from%2$s(%3$s).\n"
" %1$s%2$sfrom%3$s(%4$s).\n"
msgstr ""
#: src/webex/pages/popup.tsx:368
#, c-format
msgid "Merchant%1$soffered contract%2$s.\n"
msgid "Merchant%1$soffered%2$scontract%3$s.\n"
msgstr ""
#: src/webex/pages/popup.tsx:379
@ -283,7 +283,7 @@ msgstr ""
#, c-format
msgid ""
"Paid%1$sto merchant%2$s.\n"
" (%3$s)\n"
"%3$s(%4$s)\n"
msgstr ""
#: src/webex/pages/popup.tsx:399

View File

@ -266,12 +266,12 @@ msgstr ""
#, c-format
msgid ""
"Started to withdraw\n"
" %1$s from%2$s(%3$s).\n"
" %1$s%2$sfrom%3$s(%4$s).\n"
msgstr ""
#: src/webex/pages/popup.tsx:368
#, c-format
msgid "Merchant%1$soffered contract%2$s.\n"
msgid "Merchant%1$soffered%2$scontract%3$s.\n"
msgstr ""
#: src/webex/pages/popup.tsx:379
@ -283,7 +283,7 @@ msgstr ""
#, c-format
msgid ""
"Paid%1$sto merchant%2$s.\n"
" (%3$s)\n"
"%3$s(%4$s)\n"
msgstr ""
#: src/webex/pages/popup.tsx:399

View File

@ -266,12 +266,12 @@ msgstr ""
#, c-format
msgid ""
"Started to withdraw\n"
" %1$s from%2$s(%3$s).\n"
" %1$s%2$sfrom%3$s(%4$s).\n"
msgstr ""
#: src/webex/pages/popup.tsx:368
#, c-format
msgid "Merchant%1$soffered contract%2$s.\n"
msgid "Merchant%1$soffered%2$scontract%3$s.\n"
msgstr ""
#: src/webex/pages/popup.tsx:379
@ -283,7 +283,7 @@ msgstr ""
#, c-format
msgid ""
"Paid%1$sto merchant%2$s.\n"
" (%3$s)\n"
"%3$s(%4$s)\n"
msgstr ""
#: src/webex/pages/popup.tsx:399

View File

@ -153,16 +153,16 @@ strings['de'] = {
"Bank requested reserve (%1$s) for\n %2$s.\n": [
"Bank bestätig anlegen der Reserve (%1$s) bei %2$s"
],
"Started to withdraw\n %1$s from%2$s(%3$s).\n": [
"Started to withdraw\n %1$s%2$sfrom%3$s(%4$s).\n": [
"Reserve (%1$s) mit %2$s bei %3$s erzeugt"
],
"Merchant%1$soffered contract%2$s.\n": [
"Merchant%1$soffered%2$scontract%3$s.\n": [
"%1$s\n möchte einen Vertrag über %2$s\n mit Ihnen abschließen."
],
"Withdrew%1$sfrom%2$s(%3$s).\n": [
"Reserve (%1$s) mit %2$s bei %3$s erzeugt"
],
"Paid%1$sto merchant%2$s.\n (%3$s)\n": [
"Paid%1$sto merchant%2$s.\n%3$s(%4$s)\n": [
"Reserve (%1$s) mit %2$s bei %3$s erzeugt"
],
"Merchant%1$sgave a refund over%2$s.\n": [
@ -339,16 +339,16 @@ strings['en-US'] = {
"Bank requested reserve (%1$s) for\n %2$s.\n": [
""
],
"Started to withdraw\n %1$s from%2$s(%3$s).\n": [
"Started to withdraw\n %1$s%2$sfrom%3$s(%4$s).\n": [
""
],
"Merchant%1$soffered contract%2$s.\n": [
"Merchant%1$soffered%2$scontract%3$s.\n": [
""
],
"Withdrew%1$sfrom%2$s(%3$s).\n": [
""
],
"Paid%1$sto merchant%2$s.\n (%3$s)\n": [
"Paid%1$sto merchant%2$s.\n%3$s(%4$s)\n": [
""
],
"Merchant%1$sgave a refund over%2$s.\n": [
@ -525,16 +525,16 @@ strings['fr'] = {
"Bank requested reserve (%1$s) for\n %2$s.\n": [
""
],
"Started to withdraw\n %1$s from%2$s(%3$s).\n": [
"Started to withdraw\n %1$s%2$sfrom%3$s(%4$s).\n": [
""
],
"Merchant%1$soffered contract%2$s.\n": [
"Merchant%1$soffered%2$scontract%3$s.\n": [
""
],
"Withdrew%1$sfrom%2$s(%3$s).\n": [
""
],
"Paid%1$sto merchant%2$s.\n (%3$s)\n": [
"Paid%1$sto merchant%2$s.\n%3$s(%4$s)\n": [
""
],
"Merchant%1$sgave a refund over%2$s.\n": [
@ -711,16 +711,16 @@ strings['it'] = {
"Bank requested reserve (%1$s) for\n %2$s.\n": [
""
],
"Started to withdraw\n %1$s from%2$s(%3$s).\n": [
"Started to withdraw\n %1$s%2$sfrom%3$s(%4$s).\n": [
""
],
"Merchant%1$soffered contract%2$s.\n": [
"Merchant%1$soffered%2$scontract%3$s.\n": [
""
],
"Withdrew%1$sfrom%2$s(%3$s).\n": [
""
],
"Paid%1$sto merchant%2$s.\n (%3$s)\n": [
"Paid%1$sto merchant%2$s.\n%3$s(%4$s)\n": [
""
],
"Merchant%1$sgave a refund over%2$s.\n": [

View File

@ -266,12 +266,12 @@ msgstr ""
#, c-format
msgid ""
"Started to withdraw\n"
" %1$s from%2$s(%3$s).\n"
" %1$s%2$sfrom%3$s(%4$s).\n"
msgstr ""
#: src/webex/pages/popup.tsx:368
#, c-format
msgid "Merchant%1$soffered contract%2$s.\n"
msgid "Merchant%1$soffered%2$scontract%3$s.\n"
msgstr ""
#: src/webex/pages/popup.tsx:379
@ -283,7 +283,7 @@ msgstr ""
#, c-format
msgid ""
"Paid%1$sto merchant%2$s.\n"
" (%3$s)\n"
"%3$s(%4$s)\n"
msgstr ""
#: src/webex/pages/popup.tsx:399

View File

@ -358,7 +358,7 @@ function formatHistoryItem(historyItem: HistoryRecord) {
return (
<i18n.Translate wrap="p">
Started to withdraw
{" "}{renderAmount(d.requestedAmount)}{" "}
{" "}{renderAmount(d.requestedAmount)}<span> </span>
from <span>{exchange}</span> (<span>{pub}</span>).
</i18n.Translate>
);
@ -367,7 +367,7 @@ function formatHistoryItem(historyItem: HistoryRecord) {
const link = chrome.extension.getURL("view-contract.html");
return (
<i18n.Translate wrap="p">
Merchant <em>{abbrev(d.merchantName, 15)}</em> offered{" "}
Merchant <em>{abbrev(d.merchantName, 15)}</em> offered<span> </span>
contract <a href={link}>{abbrev(d.contractTermsHash)}</a>.
</i18n.Translate>
);
@ -389,7 +389,7 @@ function formatHistoryItem(historyItem: HistoryRecord) {
return (
<i18n.Translate wrap="p">
Paid <span>{renderAmount(d.amount)}</span> to merchant <span>{merchantElem}</span>.
{" "}
<span> </span>
(<span>{fulfillmentLinkElem}</span>)
</i18n.Translate>
);