Change init resource to darkcoin

This commit is contained in:
vertoe 2014-12-11 14:29:22 +01:00
parent 80c4636840
commit c1aae9e3bd

View File

@ -74,7 +74,7 @@ static void InitMessage(const std::string &message)
*/ */
static std::string Translate(const char* psz) static std::string Translate(const char* psz)
{ {
return QCoreApplication::translate("bitcoin-core", psz).toStdString(); return QCoreApplication::translate("darkcoin-core", psz).toStdString();
} }
/** Set up translations */ /** Set up translations */
@ -139,7 +139,7 @@ void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, cons
} }
#endif #endif
/** Class encapsulating Bitcoin Core startup and shutdown. /** Class encapsulating Darkcoin Core startup and shutdown.
* Allows running startup and shutdown in a different thread from the UI thread. * Allows running startup and shutdown in a different thread from the UI thread.
*/ */
class BitcoinCore: public QObject class BitcoinCore: public QObject
@ -423,7 +423,7 @@ void BitcoinApplication::initializeResult(int retval)
} }
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
// Now that initialization/startup is done, process any command-line // Now that initialization/startup is done, process any command-line
// bitcoin: URIs or payment requests: // darkcoin: URIs or payment requests:
connect(paymentServer, SIGNAL(receivedPaymentRequest(SendCoinsRecipient)), connect(paymentServer, SIGNAL(receivedPaymentRequest(SendCoinsRecipient)),
window, SLOT(handlePaymentRequest(SendCoinsRecipient))); window, SLOT(handlePaymentRequest(SendCoinsRecipient)));
connect(window, SIGNAL(receivedURI(QString)), connect(window, SIGNAL(receivedURI(QString)),
@ -445,7 +445,7 @@ void BitcoinApplication::shutdownResult(int retval)
void BitcoinApplication::handleRunawayException(const QString &message) void BitcoinApplication::handleRunawayException(const QString &message)
{ {
QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Bitcoin can no longer continue safely and will quit.") + QString("\n\n") + message); QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Darkcoin can no longer continue safely and will quit.") + QString("\n\n") + message);
::exit(1); ::exit(1);
} }
@ -475,7 +475,7 @@ int main(int argc, char *argv[])
QTextCodec::setCodecForCStrings(QTextCodec::codecForTr()); QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
#endif #endif
Q_INIT_RESOURCE(bitcoin); Q_INIT_RESOURCE(darkcoin);
GUIUtil::SubstituteFonts(); GUIUtil::SubstituteFonts();
@ -521,14 +521,14 @@ int main(int argc, char *argv[])
/// - Do not call GetDataDir(true) before this step finishes /// - Do not call GetDataDir(true) before this step finishes
if (!boost::filesystem::is_directory(GetDataDir(false))) if (!boost::filesystem::is_directory(GetDataDir(false)))
{ {
QMessageBox::critical(0, QObject::tr("Bitcoin"), QMessageBox::critical(0, QObject::tr("Darkcoin"),
QObject::tr("Error: Specified data directory \"%1\" does not exist.").arg(QString::fromStdString(mapArgs["-datadir"]))); QObject::tr("Error: Specified data directory \"%1\" does not exist.").arg(QString::fromStdString(mapArgs["-datadir"])));
return 1; return 1;
} }
try { try {
ReadConfigFile(mapArgs, mapMultiArgs); ReadConfigFile(mapArgs, mapMultiArgs);
} catch(std::exception &e) { } catch(std::exception &e) {
QMessageBox::critical(0, QObject::tr("Bitcoin"), QMessageBox::critical(0, QObject::tr("Darkcoin"),
QObject::tr("Error: Cannot parse configuration file: %1. Only use key=value syntax.").arg(e.what())); QObject::tr("Error: Cannot parse configuration file: %1. Only use key=value syntax.").arg(e.what()));
return false; return false;
} }
@ -541,7 +541,7 @@ int main(int argc, char *argv[])
// Check for -testnet or -regtest parameter (Params() calls are only valid after this clause) // Check for -testnet or -regtest parameter (Params() calls are only valid after this clause)
if (!SelectParamsFromCommandLine()) { if (!SelectParamsFromCommandLine()) {
QMessageBox::critical(0, QObject::tr("Bitcoin"), QObject::tr("Error: Invalid combination of -regtest and -testnet.")); QMessageBox::critical(0, QObject::tr("Darkcoin"), QObject::tr("Error: Invalid combination of -regtest and -testnet."));
return 1; return 1;
} }
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
@ -569,7 +569,7 @@ int main(int argc, char *argv[])
exit(0); exit(0);
// Start up the payment server early, too, so impatient users that click on // Start up the payment server early, too, so impatient users that click on
// bitcoin: links repeatedly have their payment requests routed to this process: // darkcoin: links repeatedly have their payment requests routed to this process:
app.createPaymentServer(); app.createPaymentServer();
#endif #endif
@ -601,7 +601,7 @@ int main(int argc, char *argv[])
app.createWindow(isaTestNet); app.createWindow(isaTestNet);
app.requestInitialize(); app.requestInitialize();
#if defined(Q_OS_WIN) && QT_VERSION >= 0x050000 #if defined(Q_OS_WIN) && QT_VERSION >= 0x050000
WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("Bitcoin Core didn't yet exit safely..."), (HWND)app.getMainWinId()); WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("Darkcoin Core didn't yet exit safely..."), (HWND)app.getMainWinId());
#endif #endif
app.exec(); app.exec();
app.requestShutdown(); app.requestShutdown();