aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorchromatic <[email protected]>2021-08-13 11:59:09 -0700
committerPatrick Lodder <[email protected]>2021-08-14 01:56:07 +0200
commitc2a0bd289049cb1458fe44fd1563ee3faca8ff7d (patch)
tree2c70015a3c371fbe1494468a2595805349fe2d1b /src
parentfix typo (diff)
downloaddiscoin-c2a0bd289049cb1458fe44fd1563ee3faca8ff7d.tar.xz
discoin-c2a0bd289049cb1458fe44fd1563ee3faca8ff7d.zip
qt: translate more user-exposed strings
Diffstat (limited to 'src')
-rw-r--r--src/qt/bitcoin.cpp2
-rw-r--r--src/qt/intro.cpp2
-rw-r--r--src/qt/rpcconsole.cpp2
-rw-r--r--src/qt/transactiondesc.cpp4
-rw-r--r--src/qt/utilitydialog.cpp4
5 files changed, 7 insertions, 7 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index b16a55f4d..2a4e9c444 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -517,7 +517,7 @@ void BitcoinApplication::shutdownResult(int retval)
void BitcoinApplication::handleRunawayException(const QString &message)
{
- QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Dogecoin can no longer continue safely and will quit.") + QString("\n\n") + message);
+ QMessageBox::critical(0, BitcoinGUI::tr("Runaway exception"), BitcoinGUI::tr("A fatal error occurred. Dogecoin can no longer continue safely and will quit.") + QString("\n\n") + message);
::exit(EXIT_FAILURE);
}
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp
index 5eef52637..61876bf00 100644
--- a/src/qt/intro.cpp
+++ b/src/qt/intro.cpp
@@ -261,7 +261,7 @@ void Intro::on_dataDirectory_textChanged(const QString &dataDirStr)
void Intro::on_ellipsisButton_clicked()
{
- QString dir = QDir::toNativeSeparators(QFileDialog::getExistingDirectory(0, "Choose data directory", ui->dataDirectory->text()));
+ QString dir = QDir::toNativeSeparators(QFileDialog::getExistingDirectory(0, tr("Choose data directory"), ui->dataDirectory->text()));
if(!dir.isEmpty())
ui->dataDirectory->setText(dir);
}
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 16b86ab1f..bcce55f0d 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -840,7 +840,7 @@ void RPCConsole::on_lineEdit_returnPressed()
throw std::runtime_error("Invalid command line");
}
} catch (const std::exception& e) {
- QMessageBox::critical(this, "Error", QString("Error: ") + QString::fromStdString(e.what()));
+ QMessageBox::critical(this, tr("Error"), QString("Error: ") + QString::fromStdString(e.what()));
return;
}
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
index d823f6273..fa02501dc 100644
--- a/src/qt/transactiondesc.cpp
+++ b/src/qt/transactiondesc.cpp
@@ -192,9 +192,9 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
strHTML += GUIUtil::HtmlEscape(wallet->mapAddressBook[address].name) + " ";
strHTML += GUIUtil::HtmlEscape(CBitcoinAddress(address).ToString());
if(toSelf == ISMINE_SPENDABLE)
- strHTML += " (own address)";
+ strHTML += " (" + tr("own address") + ")";
else if(toSelf & ISMINE_WATCH_ONLY)
- strHTML += " (watch-only)";
+ strHTML += " (" + tr("watch-only") + ")";
strHTML += "<br>";
}
}
diff --git a/src/qt/utilitydialog.cpp b/src/qt/utilitydialog.cpp
index 085523dc0..50c3b3abe 100644
--- a/src/qt/utilitydialog.cpp
+++ b/src/qt/utilitydialog.cpp
@@ -217,7 +217,7 @@ void PaperWalletDialog::setClientModel(ClientModel *_clientModel)
// FIXME: This cannot be the right way of doing something on open
if (_clientModel && _clientModel->getNetworkActive()) {
- QMessageBox::critical(this, "Warning: Network Activity Detected", tr("It is recommended to disconnect from the internet before printing paper wallets. Even though paper wallets are generated on your local computer, it is still possible to unknowingly have malware that transmits your screen to a remote location. It is also recommended to print to a local printer vs a network printer since that network traffic can be monitored. Some advanced printers also store copies of each printed document. Proceed with caution relative to the amount of value you plan to store on each address."), QMessageBox::Ok, QMessageBox::Ok);
+ QMessageBox::critical(this, tr("Warning: Network Activity Detected"), tr("It is recommended to disconnect from the internet before printing paper wallets. Even though paper wallets are generated on your local computer, it is still possible to unknowingly have malware that transmits your screen to a remote location. It is also recommended to print to a local printer vs a network printer since that network traffic can be monitored. Some advanced printers also store copies of each printed document. Proceed with caution relative to the amount of value you plan to store on each address."), QMessageBox::Ok, QMessageBox::Ok);
}
}
@@ -361,7 +361,7 @@ void PaperWalletDialog::on_printButton_clicked()
QPainter painter;
if (!painter.begin(&printer)) { // failed to open file
- QMessageBox::critical(this, "Printing Error", tr("failed to open file, is it writable?"), QMessageBox::Ok, QMessageBox::Ok);
+ QMessageBox::critical(this, tr("Printing Error"), tr("failed to open file, is it writable?"), QMessageBox::Ok, QMessageBox::Ok);
return;
}