Skip to content

Commit

Permalink
Change init resource to darkcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
vertoe committed Dec 11, 2014
1 parent 80c4636 commit c1aae9e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/qt/darkcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static void InitMessage(const std::string &message)
*/
static std::string Translate(const char* psz)
{
return QCoreApplication::translate("bitcoin-core", psz).toStdString();
return QCoreApplication::translate("darkcoin-core", psz).toStdString();
}

/** Set up translations */
Expand Down Expand Up @@ -139,7 +139,7 @@ void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, cons
}
#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.
*/
class BitcoinCore: public QObject
Expand Down Expand Up @@ -423,7 +423,7 @@ void BitcoinApplication::initializeResult(int retval)
}
#ifdef ENABLE_WALLET
// 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)),
window, SLOT(handlePaymentRequest(SendCoinsRecipient)));
connect(window, SIGNAL(receivedURI(QString)),
Expand All @@ -445,7 +445,7 @@ void BitcoinApplication::shutdownResult(int retval)

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);
}

Expand Down Expand Up @@ -475,7 +475,7 @@ int main(int argc, char *argv[])
QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
#endif

Q_INIT_RESOURCE(bitcoin);
Q_INIT_RESOURCE(darkcoin);

GUIUtil::SubstituteFonts();

Expand Down Expand Up @@ -521,14 +521,14 @@ int main(int argc, char *argv[])
/// - Do not call GetDataDir(true) before this step finishes
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"])));
return 1;
}
try {
ReadConfigFile(mapArgs, mapMultiArgs);
} 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()));
return false;
}
Expand All @@ -541,7 +541,7 @@ int main(int argc, char *argv[])

// Check for -testnet or -regtest parameter (Params() calls are only valid after this clause)
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;
}
#ifdef ENABLE_WALLET
Expand Down Expand Up @@ -569,7 +569,7 @@ int main(int argc, char *argv[])
exit(0);

// 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();
#endif

Expand Down Expand Up @@ -601,7 +601,7 @@ int main(int argc, char *argv[])
app.createWindow(isaTestNet);
app.requestInitialize();
#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
app.exec();
app.requestShutdown();
Expand Down

0 comments on commit c1aae9e

Please sign in to comment.