Fix translator comment for Restore Wallet QInputDialog
, as suggested in #471 (review).
This also changes the window title name from Restore Name
to Restore Wallet
as it seems clearer.
QInputDialog
#629
Fix translator comment for Restore Wallet QInputDialog
, as suggested in #471 (review).
This also changes the window title name from Restore Name
to Restore Wallet
as it seems clearer.
430@@ -431,7 +431,10 @@ void BitcoinGUI::createActions()
431
432 bool wallet_name_ok;
433 //: Title of the Restore Wallet input dialog (where the wallet name is entered)
434- QString wallet_name = QInputDialog::getText(this, tr("Restore Name"), tr("Wallet Name:"), QLineEdit::Normal, "", &wallet_name_ok);
435+ QString title = tr("Restore Wallet");
Restore Name
to Restore Wallet
. If this is intended, please document in the PR description why you are doing this. The mentioned review comment doesn’t suggest this.
430@@ -431,7 +431,10 @@ void BitcoinGUI::createActions()
431
432 bool wallet_name_ok;
433 //: Title of the Restore Wallet input dialog (where the wallet name is entered)
434- QString wallet_name = QInputDialog::getText(this, tr("Restore Name"), tr("Wallet Name:"), QLineEdit::Normal, "", &wallet_name_ok);
435+ QString title = tr("Restore Wallet");
436+ //: Label of the Restore Wallet input dialog (where the wallet name is entered)
For the consistency, do you mind adding a full stop to the end of the translator comments?
(here and above)
make -C src translate
.
translator comments look good enough to me, maybe could do the following if you believe it’s an improvement?
0--- a/src/qt/bitcoingui.cpp
1+++ b/src/qt/bitcoingui.cpp
2@@ -430,9 +430,10 @@ void BitcoinGUI::createActions()
3 if (backup_file.isEmpty()) return;
4
5 bool wallet_name_ok;
6- //: Title of the Restore Wallet input dialog (where the wallet name is entered).
7+ /*: Title of pop-up window shown when the user is attempting to
8+ restore a wallet. */
9 QString title = tr("Restore Wallet");
10- //: Label of the Restore Wallet input dialog (where the wallet name is entered).
11+ //: Label of the input field where the name of the wallet is entered.
12 QString label = tr("Wallet Name");
13 QString wallet_name = QInputDialog::getText(this, title, label, QLineEdit::Normal, "", &wallet_name_ok);
14 if (!wallet_name_ok || wallet_name.isEmpty()) return;
This also changes the window title name
from `Restore Name` to `Restore Wallet`.
reACK 9d9a098530df9986039f64b2810b6375b715f196
Changes since my last review:
I feel the updated translator comments are an improvement and better clarify the purpose of the title and label Qstrings.
w0xlt
jarolrod
shaavan
hebasto
Labels
Translations