|
2 | 2 | // Distributed under the MIT software license, see the accompanying
|
3 | 3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
4 | 4 |
|
| 5 | +#if defined(HAVE_CONFIG_H) |
| 6 | +#include "config/bitcoin-config.h" |
| 7 | +#endif |
| 8 | + |
5 | 9 | #include "bitcoingui.h"
|
6 | 10 |
|
7 | 11 | #include "bitcoinunits.h"
|
@@ -105,7 +109,7 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *n
|
105 | 109 | {
|
106 | 110 | GUIUtil::restoreWindowGeometry("nWindow", QSize(850, 550), this);
|
107 | 111 |
|
108 |
| - QString windowTitle = tr("Bitcoin Core") + " - "; |
| 112 | + QString windowTitle = tr(PACKAGE_NAME) + " - "; |
109 | 113 | #ifdef ENABLE_WALLET
|
110 | 114 | /* if compiled with wallet support, -disablewallet can still disable the wallet */
|
111 | 115 | enableWallet = !GetBoolArg("-disablewallet", false);
|
@@ -303,14 +307,14 @@ void BitcoinGUI::createActions()
|
303 | 307 | quitAction->setStatusTip(tr("Quit application"));
|
304 | 308 | quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
|
305 | 309 | quitAction->setMenuRole(QAction::QuitRole);
|
306 |
| - aboutAction = new QAction(platformStyle->TextColorIcon(":/icons/about"), tr("&About Bitcoin Core"), this); |
307 |
| - aboutAction->setStatusTip(tr("Show information about Bitcoin Core")); |
| 310 | + aboutAction = new QAction(platformStyle->TextColorIcon(":/icons/about"), tr("&About %1").arg(tr(PACKAGE_NAME)), this); |
| 311 | + aboutAction->setStatusTip(tr("Show information about %1").arg(tr(PACKAGE_NAME))); |
308 | 312 | aboutAction->setMenuRole(QAction::AboutRole);
|
309 | 313 | aboutQtAction = new QAction(platformStyle->TextColorIcon(":/icons/about_qt"), tr("About &Qt"), this);
|
310 | 314 | aboutQtAction->setStatusTip(tr("Show information about Qt"));
|
311 | 315 | aboutQtAction->setMenuRole(QAction::AboutQtRole);
|
312 | 316 | optionsAction = new QAction(platformStyle->TextColorIcon(":/icons/options"), tr("&Options..."), this);
|
313 |
| - optionsAction->setStatusTip(tr("Modify configuration options for Bitcoin Core")); |
| 317 | + optionsAction->setStatusTip(tr("Modify configuration options for %1").arg(tr(PACKAGE_NAME))); |
314 | 318 | optionsAction->setMenuRole(QAction::PreferencesRole);
|
315 | 319 | toggleHideAction = new QAction(platformStyle->TextColorIcon(":/icons/about"), tr("&Show / Hide"), this);
|
316 | 320 | toggleHideAction->setStatusTip(tr("Show or hide the main Window"));
|
@@ -340,7 +344,7 @@ void BitcoinGUI::createActions()
|
340 | 344 |
|
341 | 345 | showHelpMessageAction = new QAction(platformStyle->TextColorIcon(":/icons/info"), tr("&Command-line options"), this);
|
342 | 346 | showHelpMessageAction->setMenuRole(QAction::NoRole);
|
343 |
| - showHelpMessageAction->setStatusTip(tr("Show the Bitcoin Core help message to get a list with possible Bitcoin command-line options")); |
| 347 | + showHelpMessageAction->setStatusTip(tr("Show the %1 help message to get a list with possible Bitcoin command-line options").arg(tr(PACKAGE_NAME))); |
344 | 348 |
|
345 | 349 | connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
|
346 | 350 | connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));
|
@@ -518,7 +522,7 @@ void BitcoinGUI::createTrayIcon(const NetworkStyle *networkStyle)
|
518 | 522 | {
|
519 | 523 | #ifndef Q_OS_MAC
|
520 | 524 | trayIcon = new QSystemTrayIcon(this);
|
521 |
| - QString toolTip = tr("Bitcoin Core client") + " " + networkStyle->getTitleAddText(); |
| 525 | + QString toolTip = tr("%1 client").arg(tr(PACKAGE_NAME)) + " " + networkStyle->getTitleAddText(); |
522 | 526 | trayIcon->setToolTip(toolTip);
|
523 | 527 | trayIcon->setIcon(networkStyle->getTrayAndWindowIcon());
|
524 | 528 | trayIcon->show();
|
|
0 commit comments