Browse Source

allow translation of "options" used in the --help message / split translation of RPC console welcome message and remove the need to take care of "<br>" / remove some spaces in strings and misc other stuff related to translations

0.8
Philip Kaufmann 12 years ago
parent
commit
8b4d653663
  1. 2
      src/qt/bitcoin.cpp
  2. 2
      src/qt/forms/messagepage.ui
  3. 6
      src/qt/rpcconsole.cpp
  4. 2
      src/qt/verifymessagedialog.cpp

2
src/qt/bitcoin.cpp

@ -149,7 +149,7 @@ HelpMessageBox::HelpMessageBox(QWidget *parent): @@ -149,7 +149,7 @@ HelpMessageBox::HelpMessageBox(QWidget *parent):
header = tr("Bitcoin-Qt") + " " + tr("version") + " " +
QString::fromStdString(FormatFullVersion()) + "\n\n" +
tr("Usage:") + "\n" +
" bitcoin-qt [options] " + "\n";
" bitcoin-qt [" + tr("options") + "] " + "\n";
coreOptions = QString::fromStdString(HelpMessage());
uiOptions = tr("UI options") + ":\n" +
" -lang=<lang> " + tr("Set language, for example \"de_DE\" (default: system locale)") + "\n" +

2
src/qt/forms/messagepage.ui

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Sign Message Dialog</string>
<string>Sign Message</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>

6
src/qt/rpcconsole.cpp

@ -207,9 +207,9 @@ void RPCConsole::clear() @@ -207,9 +207,9 @@ void RPCConsole::clear()
"b { color: #006060; } "
);
message(CMD_REPLY, tr("Welcome to the Bitcoin RPC console.<br>"
"Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.<br>"
"Type <b>help</b> for an overview of available commands."), true);
message(CMD_REPLY, (tr("Welcome to the Bitcoin RPC console.") + "<br>" +
tr("Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.") + "<br>" +
tr("Type <b>help</b> for an overview of available commands.")), true);
}
void RPCConsole::message(int category, const QString &message, bool html)

2
src/qt/verifymessagedialog.cpp

@ -25,7 +25,7 @@ VerifyMessageDialog::VerifyMessageDialog(AddressTableModel *addressModel, QWidge @@ -25,7 +25,7 @@ VerifyMessageDialog::VerifyMessageDialog(AddressTableModel *addressModel, QWidge
#if (QT_VERSION >= 0x040700)
/* Do not move this to the XML file, Qt before 4.7 will choke on it */
ui->lnSig->setPlaceholderText(tr("Enter Bitcoin signature"));
ui->lnAddress->setPlaceholderText(tr("Click \"Apply\" to obtain address"));
ui->lnAddress->setPlaceholderText(tr("Click \"Verify Message\" to obtain address"));
#endif
GUIUtil::setupAddressWidget(ui->lnAddress, this);

Loading…
Cancel
Save