Skip to content

Commit 539d940

Browse files
committed
gui: fix passphrase labels/tooltip in createwalletdialog/askpassphrasedialog
UI improvements: - update remaining GUI wallet labels and tooltips from passwords to passphrases - improve grammar of labels in askpassphrase dialog and WalletController::closeWallet
1 parent 43aa9b0 commit 539d940

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/qt/askpassphrasedialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ AskPassphraseDialog::AskPassphraseDialog(Mode _mode, QWidget *parent, SecureStri
4444
switch(mode)
4545
{
4646
case Encrypt: // Ask passphrase x2
47-
ui->warningLabel->setText(tr("Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>ten or more random characters</b>, or <b>eight or more words</b>."));
47+
ui->warningLabel->setText(tr("Enter the new passphrase for the wallet.<br/>Please use a passphrase of <b>ten or more random characters</b>, or <b>eight or more words</b>."));
4848
ui->passLabel1->hide();
4949
ui->passEdit1->hide();
5050
setWindowTitle(tr("Encrypt wallet"));
@@ -67,7 +67,7 @@ AskPassphraseDialog::AskPassphraseDialog(Mode _mode, QWidget *parent, SecureStri
6767
break;
6868
case ChangePass: // Ask old passphrase + new passphrase x2
6969
setWindowTitle(tr("Change passphrase"));
70-
ui->warningLabel->setText(tr("Enter the old passphrase and new passphrase to the wallet."));
70+
ui->warningLabel->setText(tr("Enter the old passphrase and new passphrase for the wallet."));
7171
break;
7272
}
7373
textChanged();

src/qt/forms/askpassphrasedialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<item row="3" column="1">
9696
<widget class="QCheckBox" name="toggleShowPasswordButton">
9797
<property name="text">
98-
<string>Show password</string>
98+
<string>Show passphrase</string>
9999
</property>
100100
</widget>
101101
</item>

src/qt/forms/createwalletdialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</rect>
6363
</property>
6464
<property name="toolTip">
65-
<string>Encrypt the wallet. The wallet will be encrypted with a password of your choice.</string>
65+
<string>Encrypt the wallet. The wallet will be encrypted with a passphrase of your choice.</string>
6666
</property>
6767
<property name="text">
6868
<string>Encrypt Wallet</string>

src/qt/walletcontroller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void WalletController::closeWallet(WalletModel* wallet_model, QWidget* parent)
7575
{
7676
QMessageBox box(parent);
7777
box.setWindowTitle(tr("Close wallet"));
78-
box.setText(tr("Are you sure you wish to close wallet <i>%1</i>?").arg(GUIUtil::HtmlEscape(wallet_model->getDisplayName())));
78+
box.setText(tr("Are you sure you wish to close the wallet <i>%1</i>?").arg(GUIUtil::HtmlEscape(wallet_model->getDisplayName())));
7979
box.setInformativeText(tr("Closing the wallet for too long can result in having to resync the entire chain if pruning is enabled."));
8080
box.setStandardButtons(QMessageBox::Yes|QMessageBox::Cancel);
8181
box.setDefaultButton(QMessageBox::Yes);

0 commit comments

Comments
 (0)