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.
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");
you're changing the window title name from 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.
Done.
<s>LGTM</s> ACK d7207dff67d42bc06a3ca6534fe510a4936bc439
A small nit: I would suggest mentioning the title's renaming in the commit message as well.
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)
ACK d7207dff67d42bc06a3ca6534fe510a4936bc439, verified using make -C src translate.
#629 (review) and #629#pullrequestreview-1043371169 were addressed in https://github.com/bitcoin-core/gui/pull/629/commits/643e27e80310528db367eb514e1bee3b3332facd.
translator comments look good enough to me, maybe could do the following if you believe it's an improvement?
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -430,9 +430,10 @@ void BitcoinGUI::createActions()
if (backup_file.isEmpty()) return;
bool wallet_name_ok;
- //: Title of the Restore Wallet input dialog (where the wallet name is entered).
+ /*: Title of pop-up window shown when the user is attempting to
+ restore a wallet. */
QString title = tr("Restore Wallet");
- //: Label of the Restore Wallet input dialog (where the wallet name is entered).
+ //: Label of the input field where the name of the wallet is entered.
QString label = tr("Wallet Name");
QString wallet_name = QInputDialog::getText(this, title, label, QLineEdit::Normal, "", &wallet_name_ok);
if (!wallet_name_ok || wallet_name.isEmpty()) return;
This also changes the window title name
from `Restore Name` to `Restore Wallet`.
#629#pullrequestreview-1045949325 addressed in https://github.com/bitcoin-core/gui/pull/629/commits/9d9a098530df9986039f64b2810b6375b715f196
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.