Skip to content

Commit ef3e1d7

Browse files
committed
qt: Improve URI/file handling message
This change: - fixes missing spaces after full stops - makes translation context bigger
1 parent a9d1b40 commit ef3e1d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/qt/paymentserver.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ void PaymentServer::handleURIOrFile(const QString& s)
235235
if (!IsValidDestinationString(recipient.address.toStdString())) {
236236
if (uri.hasQueryItem("r")) { // payment request
237237
Q_EMIT message(tr("URI handling"),
238-
tr("Cannot process payment request because BIP70 is not supported.")+
239-
tr("Due to widespread security flaws in BIP70 it's strongly recommended that any merchant instructions to switch wallets be ignored.")+
240-
tr("If you are receiving this error you should request the merchant provide a BIP21 compatible URI."),
238+
tr("Cannot process payment request because BIP70 is not supported.\n"
239+
"Due to widespread security flaws in BIP70 it's strongly recommended that any merchant instructions to switch wallets be ignored.\n"
240+
"If you are receiving this error you should request the merchant provide a BIP21 compatible URI."),
241241
CClientUIInterface::ICON_WARNING);
242242
}
243243
Q_EMIT message(tr("URI handling"), tr("Invalid payment address %1").arg(recipient.address),
@@ -258,9 +258,9 @@ void PaymentServer::handleURIOrFile(const QString& s)
258258
if (QFile::exists(s)) // payment request file
259259
{
260260
Q_EMIT message(tr("Payment request file handling"),
261-
tr("Cannot process payment request because BIP70 is not supported.")+
262-
tr("Due to widespread security flaws in BIP70 it's strongly recommended that any merchant instructions to switch wallets be ignored.")+
263-
tr("If you are receiving this error you should request the merchant provide a BIP21 compatible URI."),
261+
tr("Cannot process payment request because BIP70 is not supported.\n"
262+
"Due to widespread security flaws in BIP70 it's strongly recommended that any merchant instructions to switch wallets be ignored.\n"
263+
"If you are receiving this error you should request the merchant provide a BIP21 compatible URI."),
264264
CClientUIInterface::ICON_WARNING);
265265
}
266266
}

0 commit comments

Comments
 (0)