From 6e12ede1d6c0ab26a0f3082277f8937a6f013c03 Mon Sep 17 00:00:00 2001 From: Jianping Wu Date: Sun, 25 Nov 2018 22:32:25 -0800 Subject: [PATCH] More changes from litecoins to kevacoins. --- src/bitcoin-cli-res.rc | 10 +++++----- src/bitcoind-res.rc | 10 +++++----- src/init.cpp | 2 +- src/qt/addressbookpage.cpp | 4 ++-- src/qt/askpassphrasedialog.cpp | 4 ++-- src/qt/bitcoin.cpp | 2 +- src/qt/bitcoingui.cpp | 16 ++++++++-------- src/qt/bitcoinunits.cpp | 12 ++++++------ src/qt/editaddressdialog.cpp | 2 +- src/qt/forms/overviewpage.ui | 4 ++-- src/qt/forms/receivecoinsdialog.ui | 4 ++-- src/qt/forms/sendcoinsdialog.ui | 4 ++-- src/qt/forms/signverifymessagedialog.ui | 10 +++++----- src/qt/guiutil.cpp | 24 ++++++++++++------------ src/qt/intro.cpp | 4 ++-- 15 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/bitcoin-cli-res.rc b/src/bitcoin-cli-res.rc index 61100934a..f62480160 100644 --- a/src/bitcoin-cli-res.rc +++ b/src/bitcoin-cli-res.rc @@ -16,14 +16,14 @@ BEGIN BEGIN BLOCK "040904E4" // U.S. English - multilingual (hex) BEGIN - VALUE "CompanyName", "Litecoin" - VALUE "FileDescription", "litecoin-cli (JSON-RPC client for " PACKAGE_NAME ")" + VALUE "CompanyName", "Kevacoin" + VALUE "FileDescription", "kevacoin-cli (JSON-RPC client for " PACKAGE_NAME ")" VALUE "FileVersion", VER_FILEVERSION_STR - VALUE "InternalName", "litecoin-cli" + VALUE "InternalName", "kevacoin-cli" VALUE "LegalCopyright", COPYRIGHT_STR VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php." - VALUE "OriginalFilename", "litecoin-cli.exe" - VALUE "ProductName", "litecoin-cli" + VALUE "OriginalFilename", "kevacoin-cli.exe" + VALUE "ProductName", "kevacoin-cli" VALUE "ProductVersion", VER_PRODUCTVERSION_STR END END diff --git a/src/bitcoind-res.rc b/src/bitcoind-res.rc index 3dc7c38af..af675837b 100644 --- a/src/bitcoind-res.rc +++ b/src/bitcoind-res.rc @@ -16,14 +16,14 @@ BEGIN BEGIN BLOCK "040904E4" // U.S. English - multilingual (hex) BEGIN - VALUE "CompanyName", "Litecoin" - VALUE "FileDescription", "litecoind (Litecoin node with a JSON-RPC server)" + VALUE "CompanyName", "Kevacoin" + VALUE "FileDescription", "kevacoind (Kevacoin node with a JSON-RPC server)" VALUE "FileVersion", VER_FILEVERSION_STR - VALUE "InternalName", "litecoind" + VALUE "InternalName", "kevacoind" VALUE "LegalCopyright", COPYRIGHT_STR VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php." - VALUE "OriginalFilename", "litecoind.exe" - VALUE "ProductName", "litecoind" + VALUE "OriginalFilename", "kevacoind.exe" + VALUE "ProductName", "kevacoind" VALUE "ProductVersion", VER_PRODUCTVERSION_STR END END diff --git a/src/init.cpp b/src/init.cpp index 457232485..f3e943cf5 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -185,7 +185,7 @@ void Shutdown() /// for example if the data directory was found to be locked. /// Be sure that anything that writes files or flushes caches only does this if the respective /// module was initialized. - RenameThread("litecoin-shutoff"); + RenameThread("kevacoin-shutoff"); mempool.AddTransactionsUpdated(1); StopHTTPRPC(); diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp index 495063a6f..2d1865b24 100644 --- a/src/qt/addressbookpage.cpp +++ b/src/qt/addressbookpage.cpp @@ -67,11 +67,11 @@ AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode, switch(tab) { case SendingTab: - ui->labelExplanation->setText(tr("These are your Litecoin addresses for sending payments. Always check the amount and the receiving address before sending coins.")); + ui->labelExplanation->setText(tr("These are your Kevacoin addresses for sending payments. Always check the amount and the receiving address before sending coins.")); ui->deleteAddress->setVisible(true); break; case ReceivingTab: - ui->labelExplanation->setText(tr("These are your Litecoin addresses for receiving payments. It is recommended to use a new receiving address for each transaction.")); + ui->labelExplanation->setText(tr("These are your Kevaoin addresses for receiving payments. It is recommended to use a new receiving address for each transaction.")); ui->deleteAddress->setVisible(false); break; } diff --git a/src/qt/askpassphrasedialog.cpp b/src/qt/askpassphrasedialog.cpp index 26d2ab49a..ab0dfbb00 100644 --- a/src/qt/askpassphrasedialog.cpp +++ b/src/qt/askpassphrasedialog.cpp @@ -112,7 +112,7 @@ void AskPassphraseDialog::accept() break; } QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm wallet encryption"), - tr("Warning: If you encrypt your wallet and lose your passphrase, you will LOSE ALL OF YOUR LITECOINS!") + "

" + tr("Are you sure you wish to encrypt your wallet?"), + tr("Warning: If you encrypt your wallet and lose your passphrase, you will LOSE ALL OF YOUR KEVACOINS!") + "

" + tr("Are you sure you wish to encrypt your wallet?"), QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Cancel); if(retval == QMessageBox::Yes) @@ -125,7 +125,7 @@ void AskPassphraseDialog::accept() "" + tr("%1 will close now to finish the encryption process. " "Remember that encrypting your wallet cannot fully protect " - "your litecoins from being stolen by malware infecting your computer.").arg(tr(PACKAGE_NAME)) + + "your kevacoins from being stolen by malware infecting your computer.").arg(tr(PACKAGE_NAME)) + "

" + tr("IMPORTANT: Any previous backups you have made of your wallet file " "should be replaced with the newly generated, encrypted wallet file. " diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 85d952185..8519d0a27 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -528,7 +528,7 @@ void BitcoinApplication::shutdownResult() void BitcoinApplication::handleRunawayException(const QString &message) { - QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Litecoin can no longer continue safely and will quit.") + QString("\n\n") + message); + QMessageBox::critical(0, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Kevacoin can no longer continue safely and will quit.") + QString("\n\n") + message); ::exit(EXIT_FAILURE); } diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 6e7e03081..422c90725 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -285,7 +285,7 @@ void BitcoinGUI::createActions() tabGroup->addAction(overviewAction); sendCoinsAction = new QAction(platformStyle->SingleColorIcon(":/icons/send"), tr("&Send"), this); - sendCoinsAction->setStatusTip(tr("Send coins to a Litecoin address")); + sendCoinsAction->setStatusTip(tr("Send coins to a Kevacoin address")); sendCoinsAction->setToolTip(sendCoinsAction->statusTip()); sendCoinsAction->setCheckable(true); sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2)); @@ -296,7 +296,7 @@ void BitcoinGUI::createActions() sendCoinsMenuAction->setToolTip(sendCoinsMenuAction->statusTip()); receiveCoinsAction = new QAction(platformStyle->SingleColorIcon(":/icons/receiving_addresses"), tr("&Receive"), this); - receiveCoinsAction->setStatusTip(tr("Request payments (generates QR codes and litecoin: URIs)")); + receiveCoinsAction->setStatusTip(tr("Request payments (generates QR codes and kevacoin: URIs)")); receiveCoinsAction->setToolTip(receiveCoinsAction->statusTip()); receiveCoinsAction->setCheckable(true); receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3)); @@ -356,9 +356,9 @@ void BitcoinGUI::createActions() changePassphraseAction = new QAction(platformStyle->TextColorIcon(":/icons/key"), tr("&Change Passphrase..."), this); changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption")); signMessageAction = new QAction(platformStyle->TextColorIcon(":/icons/edit"), tr("Sign &message..."), this); - signMessageAction->setStatusTip(tr("Sign messages with your Litecoin addresses to prove you own them")); + signMessageAction->setStatusTip(tr("Sign messages with your Kevacoin addresses to prove you own them")); verifyMessageAction = new QAction(platformStyle->TextColorIcon(":/icons/verify"), tr("&Verify message..."), this); - verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Litecoin addresses")); + verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Kevacoin addresses")); openRPCConsoleAction = new QAction(platformStyle->TextColorIcon(":/icons/debugwindow"), tr("&Debug window"), this); openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console")); @@ -371,11 +371,11 @@ void BitcoinGUI::createActions() usedReceivingAddressesAction->setStatusTip(tr("Show the list of used receiving addresses and labels")); openAction = new QAction(platformStyle->TextColorIcon(":/icons/open"), tr("Open &URI..."), this); - openAction->setStatusTip(tr("Open a litecoin: URI or payment request")); + openAction->setStatusTip(tr("Open a kevacoin: URI or payment request")); showHelpMessageAction = new QAction(platformStyle->TextColorIcon(":/icons/info"), tr("&Command-line options"), this); showHelpMessageAction->setMenuRole(QAction::NoRole); - showHelpMessageAction->setStatusTip(tr("Show the %1 help message to get a list with possible Litecoin command-line options").arg(tr(PACKAGE_NAME))); + showHelpMessageAction->setStatusTip(tr("Show the %1 help message to get a list with possible Kevacoin command-line options").arg(tr(PACKAGE_NAME))); connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked())); @@ -730,7 +730,7 @@ void BitcoinGUI::updateNetworkState() QString tooltip; if (clientModel->getNetworkActive()) { - tooltip = tr("%n active connection(s) to Litecoin network", "", count) + QString(".
") + tr("Click to disable network activity."); + tooltip = tr("%n active connection(s) to Kevacoin network", "", count) + QString(".
") + tr("Click to disable network activity."); } else { tooltip = tr("Network activity disabled.") + QString("
") + tr("Click to enable network activity again."); icon = ":/icons/network_disabled"; @@ -874,7 +874,7 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, double nVer void BitcoinGUI::message(const QString &title, const QString &message, unsigned int style, bool *ret) { - QString strTitle = tr("Litecoin"); // default title + QString strTitle = tr("Kevacoin"); // default title // Default to information icon int nMBoxIcon = QMessageBox::Information; int nNotifyIcon = Notificator::Information; diff --git a/src/qt/bitcoinunits.cpp b/src/qt/bitcoinunits.cpp index 9ef0617ef..5ec24076b 100644 --- a/src/qt/bitcoinunits.cpp +++ b/src/qt/bitcoinunits.cpp @@ -40,9 +40,9 @@ QString BitcoinUnits::longName(int unit) { switch(unit) { - case BTC: return QString("LTC"); - case mBTC: return QString("lites"); - case uBTC: return QString("photons"); + case BTC: return QString("KVA"); + case mBTC: return QString("k"); + case uBTC: return QString("m"); default: return QString("???"); } } @@ -60,9 +60,9 @@ QString BitcoinUnits::description(int unit) { switch(unit) { - case BTC: return QString("Litecoins"); - case mBTC: return QString("Lites (1 / 1" THIN_SP_UTF8 "000)"); - case uBTC: return QString("Photons (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)"); + case BTC: return QString("Kevacoins"); + case mBTC: return QString("k (1 / 1" THIN_SP_UTF8 "000)"); + case uBTC: return QString("m (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)"); default: return QString("???"); } } diff --git a/src/qt/editaddressdialog.cpp b/src/qt/editaddressdialog.cpp index b9cde33a9..c44822c97 100644 --- a/src/qt/editaddressdialog.cpp +++ b/src/qt/editaddressdialog.cpp @@ -110,7 +110,7 @@ void EditAddressDialog::accept() break; case AddressTableModel::INVALID_ADDRESS: QMessageBox::warning(this, windowTitle(), - tr("The entered address \"%1\" is not a valid Litecoin address.").arg(ui->addressEdit->text()), + tr("The entered address \"%1\" is not a valid Kevacoin address.").arg(ui->addressEdit->text()), QMessageBox::Ok, QMessageBox::Ok); break; case AddressTableModel::DUPLICATE_ADDRESS: diff --git a/src/qt/forms/overviewpage.ui b/src/qt/forms/overviewpage.ui index fae6dec10..70fdfbf16 100644 --- a/src/qt/forms/overviewpage.ui +++ b/src/qt/forms/overviewpage.ui @@ -73,7 +73,7 @@ - The displayed information may be out of date. Your wallet automatically synchronizes with the Litecoin network after a connection is established, but this process has not completed yet. + The displayed information may be out of date. Your wallet automatically synchronizes with the Kevacoin network after a connection is established, but this process has not completed yet. @@ -459,7 +459,7 @@ - The displayed information may be out of date. Your wallet automatically synchronizes with the Litecoin network after a connection is established, but this process has not completed yet. + The displayed information may be out of date. Your wallet automatically synchronizes with the Kevacoin network after a connection is established, but this process has not completed yet. diff --git a/src/qt/forms/receivecoinsdialog.ui b/src/qt/forms/receivecoinsdialog.ui index 46f7655a8..b7f321ad9 100644 --- a/src/qt/forms/receivecoinsdialog.ui +++ b/src/qt/forms/receivecoinsdialog.ui @@ -47,7 +47,7 @@ - An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the Litecoin network. + An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the Kevacoin network. &Message: @@ -93,7 +93,7 @@ - An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the Litecoin network. + An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the Kevacoin network. diff --git a/src/qt/forms/sendcoinsdialog.ui b/src/qt/forms/sendcoinsdialog.ui index a9b2c544d..1c424a1fe 100644 --- a/src/qt/forms/sendcoinsdialog.ui +++ b/src/qt/forms/sendcoinsdialog.ui @@ -878,7 +878,7 @@ - Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks. But be aware that this can end up in a never confirming transaction once there is more demand for litecoin transactions than the network can process. + Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks. But be aware that this can end up in a never confirming transaction once there is more demand for kevacoin transactions than the network can process. @@ -891,7 +891,7 @@ true - Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks. But be aware that this can end up in a never confirming transaction once there is more demand for litecoin transactions than the network can process. + Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks. But be aware that this can end up in a never confirming transaction once there is more demand for kevacoin transactions than the network can process. (read the tooltip) diff --git a/src/qt/forms/signverifymessagedialog.ui b/src/qt/forms/signverifymessagedialog.ui index 2e17a9660..eb435533b 100644 --- a/src/qt/forms/signverifymessagedialog.ui +++ b/src/qt/forms/signverifymessagedialog.ui @@ -30,7 +30,7 @@ - You can sign messages/agreements with your addresses to prove you can receive litecoins sent to them. Be careful not to sign anything vague or random, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to. + You can sign messages/agreements with your addresses to prove you can receive kevacoins sent to them. Be careful not to sign anything vague or random, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to. Qt::PlainText @@ -48,7 +48,7 @@ - The Litecoin address to sign the message with + The Kevacoin address to sign the message with @@ -152,7 +152,7 @@ - Sign the message to prove you own this Litecoin address + Sign the message to prove you own this Kevacoin address Sign &Message @@ -258,7 +258,7 @@ - The Litecoin address the message was signed with + The Kevacoin address the message was signed with @@ -295,7 +295,7 @@ - Verify the message to ensure it was signed with the specified Litecoin address + Verify the message to ensure it was signed with the specified Kevacoin address Verify &Message diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 4191be1be..126ffe7d7 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -127,7 +127,7 @@ void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent) #if QT_VERSION >= 0x040700 // We don't want translators to use own addresses in translations // and this is the only place, where this address is supplied. - widget->setPlaceholderText(QObject::tr("Enter a Litecoin address (e.g. %1)").arg( + widget->setPlaceholderText(QObject::tr("Enter a Kevacoin address (e.g. %1)").arg( QString::fromStdString(DummyAddress(Params())))); #endif widget->setValidator(new BitcoinAddressEntryValidator(parent)); @@ -146,7 +146,7 @@ void setupAmountWidget(QLineEdit *widget, QWidget *parent) bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out) { // return if URI is not valid or is no bitcoin: URI - if(!uri.isValid() || uri.scheme() != QString("litecoin")) + if(!uri.isValid() || uri.scheme() != QString("kevacoin")) return false; SendCoinsRecipient rv; @@ -210,9 +210,9 @@ bool parseBitcoinURI(QString uri, SendCoinsRecipient *out) // // Cannot handle this later, because bitcoin:// will cause Qt to see the part after // as host, // which will lower-case it (and thus invalidate the address). - if(uri.startsWith("litecoin://", Qt::CaseInsensitive)) + if(uri.startsWith("kevacoin://", Qt::CaseInsensitive)) { - uri.replace(0, 11, "litecoin:"); + uri.replace(0, 11, "kevacoin:"); } QUrl uriInstance(uri); return parseBitcoinURI(uriInstance, out); @@ -220,7 +220,7 @@ bool parseBitcoinURI(QString uri, SendCoinsRecipient *out) QString formatBitcoinURI(const SendCoinsRecipient &info) { - QString ret = QString("litecoin:%1").arg(info.address); + QString ret = QString("kevacoin:%1").arg(info.address); int paramCount = 0; if (info.amount) @@ -615,10 +615,10 @@ fs::path static StartupShortcutPath() { std::string chain = ChainNameFromCommandLine(); if (chain == CBaseChainParams::MAIN) - return GetSpecialFolderPath(CSIDL_STARTUP) / "Litecoin.lnk"; + return GetSpecialFolderPath(CSIDL_STARTUP) / "Kevacoin.lnk"; if (chain == CBaseChainParams::TESTNET) // Remove this special case when CBaseChainParams::TESTNET = "testnet4" - return GetSpecialFolderPath(CSIDL_STARTUP) / "Litecoin (testnet).lnk"; - return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Litecoin (%s).lnk", chain); + return GetSpecialFolderPath(CSIDL_STARTUP) / "Kevacoin (testnet).lnk"; + return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Kevacoin (%s).lnk", chain); } bool GetStartOnSystemStartup() @@ -713,8 +713,8 @@ fs::path static GetAutostartFilePath() { std::string chain = ChainNameFromCommandLine(); if (chain == CBaseChainParams::MAIN) - return GetAutostartDir() / "litecoin.desktop"; - return GetAutostartDir() / strprintf("litecoin-%s.lnk", chain); + return GetAutostartDir() / "kevacoin.desktop"; + return GetAutostartDir() / strprintf("kevacoin-%s.lnk", chain); } bool GetStartOnSystemStartup() @@ -758,9 +758,9 @@ bool SetStartOnSystemStartup(bool fAutoStart) optionFile << "[Desktop Entry]\n"; optionFile << "Type=Application\n"; if (chain == CBaseChainParams::MAIN) - optionFile << "Name=Litecoin\n"; + optionFile << "Name=Kevacoin\n"; else - optionFile << strprintf("Name=Litecoin (%s)\n", chain); + optionFile << strprintf("Name=Kevacoin (%s)\n", chain); optionFile << "Exec=" << pszExePath << strprintf(" -min -testnet=%d -regtest=%d\n", gArgs.GetBoolArg("-testnet", false), gArgs.GetBoolArg("-regtest", false)); optionFile << "Terminal=false\n"; optionFile << "Hidden=false\n"; diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index 05783ac2f..2135b407b 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -127,7 +127,7 @@ Intro::Intro(QWidget *parent) : .arg(tr(PACKAGE_NAME)) .arg(BLOCK_CHAIN_SIZE) .arg(2009) - .arg(tr("Litecoin")) + .arg(tr("Kevacoin")) ); ui->lblExplanation2->setText(ui->lblExplanation2->text().arg(tr(PACKAGE_NAME))); @@ -146,7 +146,7 @@ Intro::Intro(QWidget *parent) : } requiredSpace += CHAIN_STATE_SIZE; ui->sizeWarningLabel->setText( - tr("%1 will download and store a copy of the Litecoin block chain.").arg(tr(PACKAGE_NAME)) + " " + + tr("%1 will download and store a copy of the Kevacoin block chain.").arg(tr(PACKAGE_NAME)) + " " + storageRequiresMsg.arg(requiredSpace) + " " + tr("The wallet will also be stored in this directory.") );