Clarify the warning displayed when encrypting HD wallet (#2002)

* Clarify the warning displayed when encrypting HD wallet

* `dashs` -> `funds`
This commit is contained in:
UdjinM6 2018-03-21 14:08:55 +03:00 committed by GitHub
parent c7e9ea9fba
commit b7bd96e2bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,17 +129,31 @@ void AskPassphraseDialog::accept()
{ {
if(model->setWalletEncrypted(true, newpass1)) if(model->setWalletEncrypted(true, newpass1))
{ {
if (model->hdEnabled()) {
QMessageBox::warning(this, tr("Wallet encrypted"), QMessageBox::warning(this, tr("Wallet encrypted"),
"<qt>" + "<qt>" +
tr("%1 will close now to finish the encryption process. " tr("%1 will close now to finish the encryption process. "
"Remember that encrypting your wallet cannot fully protect " "Remember that encrypting your wallet cannot fully protect "
"your dashs from being stolen by malware infecting your computer.").arg(tr(PACKAGE_NAME)) + "your funds from being stolen by malware infecting your computer.").arg(tr(PACKAGE_NAME)) +
"<br><br><b>" +
tr("IMPORTANT: Any previous backups you have made of your wallet file "
"should be replaced with the newly generated, encrypted wallet file. "
"Previous backups of the unencrypted wallet file contain the same HD seed and"
"still have full access to all your funds just like the new, encrypted wallet.") +
"</b></qt>");
} else {
QMessageBox::warning(this, tr("Wallet encrypted"),
"<qt>" +
tr("%1 will close now to finish the encryption process. "
"Remember that encrypting your wallet cannot fully protect "
"your funds from being stolen by malware infecting your computer.").arg(tr(PACKAGE_NAME)) +
"<br><br><b>" + "<br><br><b>" +
tr("IMPORTANT: Any previous backups you have made of your wallet file " tr("IMPORTANT: Any previous backups you have made of your wallet file "
"should be replaced with the newly generated, encrypted wallet file. " "should be replaced with the newly generated, encrypted wallet file. "
"For security reasons, previous backups of the unencrypted wallet file " "For security reasons, previous backups of the unencrypted wallet file "
"will become useless as soon as you start using the new, encrypted wallet.") + "will become useless as soon as you start using the new, encrypted wallet.") +
"</b></qt>"); "</b></qt>");
}
QApplication::quit(); QApplication::quit();
} }
else else