Browse Source

More changes from litecoins to kevacoins.

0.16.3-insta
Jianping Wu 6 years ago committed by Jianping Wu
parent
commit
b106cd1a28
  1. 10
      src/bitcoin-cli-res.rc
  2. 10
      src/bitcoind-res.rc
  3. 2
      src/init.cpp
  4. 4
      src/qt/addressbookpage.cpp
  5. 4
      src/qt/askpassphrasedialog.cpp
  6. 2
      src/qt/bitcoin.cpp
  7. 16
      src/qt/bitcoingui.cpp
  8. 12
      src/qt/bitcoinunits.cpp
  9. 2
      src/qt/editaddressdialog.cpp
  10. 4
      src/qt/forms/overviewpage.ui
  11. 4
      src/qt/forms/receivecoinsdialog.ui
  12. 4
      src/qt/forms/sendcoinsdialog.ui
  13. 10
      src/qt/forms/signverifymessagedialog.ui
  14. 24
      src/qt/guiutil.cpp
  15. 4
      src/qt/intro.cpp

10
src/bitcoin-cli-res.rc

@ -16,14 +16,14 @@ BEGIN
BEGIN BEGIN
BLOCK "040904E4" // U.S. English - multilingual (hex) BLOCK "040904E4" // U.S. English - multilingual (hex)
BEGIN BEGIN
VALUE "CompanyName", "Litecoin" VALUE "CompanyName", "Kevacoin"
VALUE "FileDescription", "litecoin-cli (JSON-RPC client for " PACKAGE_NAME ")" VALUE "FileDescription", "kevacoin-cli (JSON-RPC client for " PACKAGE_NAME ")"
VALUE "FileVersion", VER_FILEVERSION_STR VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "litecoin-cli" VALUE "InternalName", "kevacoin-cli"
VALUE "LegalCopyright", COPYRIGHT_STR 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 "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 "OriginalFilename", "kevacoin-cli.exe"
VALUE "ProductName", "litecoin-cli" VALUE "ProductName", "kevacoin-cli"
VALUE "ProductVersion", VER_PRODUCTVERSION_STR VALUE "ProductVersion", VER_PRODUCTVERSION_STR
END END
END END

10
src/bitcoind-res.rc

@ -16,14 +16,14 @@ BEGIN
BEGIN BEGIN
BLOCK "040904E4" // U.S. English - multilingual (hex) BLOCK "040904E4" // U.S. English - multilingual (hex)
BEGIN BEGIN
VALUE "CompanyName", "Litecoin" VALUE "CompanyName", "Kevacoin"
VALUE "FileDescription", "litecoind (Litecoin node with a JSON-RPC server)" VALUE "FileDescription", "kevacoind (Kevacoin node with a JSON-RPC server)"
VALUE "FileVersion", VER_FILEVERSION_STR VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "litecoind" VALUE "InternalName", "kevacoind"
VALUE "LegalCopyright", COPYRIGHT_STR 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 "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 "OriginalFilename", "kevacoind.exe"
VALUE "ProductName", "litecoind" VALUE "ProductName", "kevacoind"
VALUE "ProductVersion", VER_PRODUCTVERSION_STR VALUE "ProductVersion", VER_PRODUCTVERSION_STR
END END
END END

2
src/init.cpp

@ -185,7 +185,7 @@ void Shutdown()
/// for example if the data directory was found to be locked. /// 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 /// Be sure that anything that writes files or flushes caches only does this if the respective
/// module was initialized. /// module was initialized.
RenameThread("litecoin-shutoff"); RenameThread("kevacoin-shutoff");
mempool.AddTransactionsUpdated(1); mempool.AddTransactionsUpdated(1);
StopHTTPRPC(); StopHTTPRPC();

4
src/qt/addressbookpage.cpp

@ -67,11 +67,11 @@ AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode,
switch(tab) switch(tab)
{ {
case SendingTab: 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); ui->deleteAddress->setVisible(true);
break; break;
case ReceivingTab: 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); ui->deleteAddress->setVisible(false);
break; break;
} }

4
src/qt/askpassphrasedialog.cpp

@ -112,7 +112,7 @@ void AskPassphraseDialog::accept()
break; break;
} }
QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm wallet encryption"), QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm wallet encryption"),
tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR LITECOINS</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"), tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR KEVACOINS</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Yes|QMessageBox::Cancel,
QMessageBox::Cancel); QMessageBox::Cancel);
if(retval == QMessageBox::Yes) if(retval == QMessageBox::Yes)
@ -125,7 +125,7 @@ void AskPassphraseDialog::accept()
"<qt>" + "<qt>" +
tr("%1 will close now to finish the encryption process. " tr("%1 will close now to finish the encryption process. "
"Remember that encrypting your wallet cannot fully protect " "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)) +
"<br><br><b>" + "<br><br><b>" +
tr("IMPORTANT: Any previous backups you have made of your wallet file " tr("IMPORTANT: Any previous backups you have made of your wallet file "
"should be replaced with the newly generated, encrypted wallet file. " "should be replaced with the newly generated, encrypted wallet file. "

2
src/qt/bitcoin.cpp

@ -529,7 +529,7 @@ void BitcoinApplication::shutdownResult()
void BitcoinApplication::handleRunawayException(const QString &message) 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); ::exit(EXIT_FAILURE);
} }

16
src/qt/bitcoingui.cpp

@ -285,7 +285,7 @@ void BitcoinGUI::createActions()
tabGroup->addAction(overviewAction); tabGroup->addAction(overviewAction);
sendCoinsAction = new QAction(platformStyle->SingleColorIcon(":/icons/send"), tr("&Send"), this); 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->setToolTip(sendCoinsAction->statusTip());
sendCoinsAction->setCheckable(true); sendCoinsAction->setCheckable(true);
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2)); sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));
@ -296,7 +296,7 @@ void BitcoinGUI::createActions()
sendCoinsMenuAction->setToolTip(sendCoinsMenuAction->statusTip()); sendCoinsMenuAction->setToolTip(sendCoinsMenuAction->statusTip());
receiveCoinsAction = new QAction(platformStyle->SingleColorIcon(":/icons/receiving_addresses"), tr("&Receive"), this); 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->setToolTip(receiveCoinsAction->statusTip());
receiveCoinsAction->setCheckable(true); receiveCoinsAction->setCheckable(true);
receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3)); 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 = new QAction(platformStyle->TextColorIcon(":/icons/key"), tr("&Change Passphrase..."), this);
changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption")); changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption"));
signMessageAction = new QAction(platformStyle->TextColorIcon(":/icons/edit"), tr("Sign &message..."), this); 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 = 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 = new QAction(platformStyle->TextColorIcon(":/icons/debugwindow"), tr("&Debug window"), this);
openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console")); 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")); usedReceivingAddressesAction->setStatusTip(tr("Show the list of used receiving addresses and labels"));
openAction = new QAction(platformStyle->TextColorIcon(":/icons/open"), tr("Open &URI..."), this); 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 = new QAction(platformStyle->TextColorIcon(":/icons/info"), tr("&Command-line options"), this);
showHelpMessageAction->setMenuRole(QAction::NoRole); 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(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked())); connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));
@ -730,7 +730,7 @@ void BitcoinGUI::updateNetworkState()
QString tooltip; QString tooltip;
if (clientModel->getNetworkActive()) { if (clientModel->getNetworkActive()) {
tooltip = tr("%n active connection(s) to Litecoin network", "", count) + QString(".<br>") + tr("Click to disable network activity."); tooltip = tr("%n active connection(s) to Kevacoin network", "", count) + QString(".<br>") + tr("Click to disable network activity.");
} else { } else {
tooltip = tr("Network activity disabled.") + QString("<br>") + tr("Click to enable network activity again."); tooltip = tr("Network activity disabled.") + QString("<br>") + tr("Click to enable network activity again.");
icon = ":/icons/network_disabled"; 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) 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 // Default to information icon
int nMBoxIcon = QMessageBox::Information; int nMBoxIcon = QMessageBox::Information;
int nNotifyIcon = Notificator::Information; int nNotifyIcon = Notificator::Information;

12
src/qt/bitcoinunits.cpp

@ -40,9 +40,9 @@ QString BitcoinUnits::longName(int unit)
{ {
switch(unit) switch(unit)
{ {
case BTC: return QString("LTC"); case BTC: return QString("KVA");
case mBTC: return QString("lites"); case mBTC: return QString("k");
case uBTC: return QString("photons"); case uBTC: return QString("m");
default: return QString("???"); default: return QString("???");
} }
} }
@ -60,9 +60,9 @@ QString BitcoinUnits::description(int unit)
{ {
switch(unit) switch(unit)
{ {
case BTC: return QString("Litecoins"); case BTC: return QString("Kevacoins");
case mBTC: return QString("Lites (1 / 1" THIN_SP_UTF8 "000)"); case mBTC: return QString("k (1 / 1" THIN_SP_UTF8 "000)");
case uBTC: return QString("Photons (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)"); case uBTC: return QString("m (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default: return QString("???"); default: return QString("???");
} }
} }

2
src/qt/editaddressdialog.cpp

@ -110,7 +110,7 @@ void EditAddressDialog::accept()
break; break;
case AddressTableModel::INVALID_ADDRESS: case AddressTableModel::INVALID_ADDRESS:
QMessageBox::warning(this, windowTitle(), 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); QMessageBox::Ok, QMessageBox::Ok);
break; break;
case AddressTableModel::DUPLICATE_ADDRESS: case AddressTableModel::DUPLICATE_ADDRESS:

4
src/qt/forms/overviewpage.ui

@ -73,7 +73,7 @@
</size> </size>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>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.</string> <string>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.</string>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>
@ -459,7 +459,7 @@
</size> </size>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>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.</string> <string>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.</string>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>

4
src/qt/forms/receivecoinsdialog.ui

@ -47,7 +47,7 @@
<item row="6" column="0"> <item row="6" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="toolTip"> <property name="toolTip">
<string>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.</string> <string>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.</string>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Message:</string> <string>&amp;Message:</string>
@ -93,7 +93,7 @@
<item row="6" column="2"> <item row="6" column="2">
<widget class="QLineEdit" name="reqMessage"> <widget class="QLineEdit" name="reqMessage">
<property name="toolTip"> <property name="toolTip">
<string>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.</string> <string>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.</string>
</property> </property>
</widget> </widget>
</item> </item>

4
src/qt/forms/sendcoinsdialog.ui

@ -878,7 +878,7 @@
<item> <item>
<widget class="QCheckBox" name="checkBoxMinimumFee"> <widget class="QCheckBox" name="checkBoxMinimumFee">
<property name="toolTip"> <property name="toolTip">
<string>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.</string> <string>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.</string>
</property> </property>
<property name="text"> <property name="text">
<string/> <string/>
@ -891,7 +891,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>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.</string> <string>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.</string>
</property> </property>
<property name="text"> <property name="text">
<string>(read the tooltip)</string> <string>(read the tooltip)</string>

10
src/qt/forms/signverifymessagedialog.ui

@ -30,7 +30,7 @@
<item> <item>
<widget class="QLabel" name="infoLabel_SM"> <widget class="QLabel" name="infoLabel_SM">
<property name="text"> <property name="text">
<string>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.</string> <string>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.</string>
</property> </property>
<property name="textFormat"> <property name="textFormat">
<enum>Qt::PlainText</enum> <enum>Qt::PlainText</enum>
@ -48,7 +48,7 @@
<item> <item>
<widget class="QValidatedLineEdit" name="addressIn_SM"> <widget class="QValidatedLineEdit" name="addressIn_SM">
<property name="toolTip"> <property name="toolTip">
<string>The Litecoin address to sign the message with</string> <string>The Kevacoin address to sign the message with</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -152,7 +152,7 @@
<item> <item>
<widget class="QPushButton" name="signMessageButton_SM"> <widget class="QPushButton" name="signMessageButton_SM">
<property name="toolTip"> <property name="toolTip">
<string>Sign the message to prove you own this Litecoin address</string> <string>Sign the message to prove you own this Kevacoin address</string>
</property> </property>
<property name="text"> <property name="text">
<string>Sign &amp;Message</string> <string>Sign &amp;Message</string>
@ -258,7 +258,7 @@
<item> <item>
<widget class="QValidatedLineEdit" name="addressIn_VM"> <widget class="QValidatedLineEdit" name="addressIn_VM">
<property name="toolTip"> <property name="toolTip">
<string>The Litecoin address the message was signed with</string> <string>The Kevacoin address the message was signed with</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -295,7 +295,7 @@
<item> <item>
<widget class="QPushButton" name="verifyMessageButton_VM"> <widget class="QPushButton" name="verifyMessageButton_VM">
<property name="toolTip"> <property name="toolTip">
<string>Verify the message to ensure it was signed with the specified Litecoin address</string> <string>Verify the message to ensure it was signed with the specified Kevacoin address</string>
</property> </property>
<property name="text"> <property name="text">
<string>Verify &amp;Message</string> <string>Verify &amp;Message</string>

24
src/qt/guiutil.cpp

@ -127,7 +127,7 @@ void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
#if QT_VERSION >= 0x040700 #if QT_VERSION >= 0x040700
// We don't want translators to use own addresses in translations // We don't want translators to use own addresses in translations
// and this is the only place, where this address is supplied. // 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())))); QString::fromStdString(DummyAddress(Params()))));
#endif #endif
widget->setValidator(new BitcoinAddressEntryValidator(parent)); widget->setValidator(new BitcoinAddressEntryValidator(parent));
@ -146,7 +146,7 @@ void setupAmountWidget(QLineEdit *widget, QWidget *parent)
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out) bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
{ {
// return if URI is not valid or is no bitcoin: URI // 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; return false;
SendCoinsRecipient rv; 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, // 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). // 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); QUrl uriInstance(uri);
return parseBitcoinURI(uriInstance, out); return parseBitcoinURI(uriInstance, out);
@ -220,7 +220,7 @@ bool parseBitcoinURI(QString uri, SendCoinsRecipient *out)
QString formatBitcoinURI(const SendCoinsRecipient &info) QString formatBitcoinURI(const SendCoinsRecipient &info)
{ {
QString ret = QString("litecoin:%1").arg(info.address); QString ret = QString("kevacoin:%1").arg(info.address);
int paramCount = 0; int paramCount = 0;
if (info.amount) if (info.amount)
@ -615,10 +615,10 @@ fs::path static StartupShortcutPath()
{ {
std::string chain = ChainNameFromCommandLine(); std::string chain = ChainNameFromCommandLine();
if (chain == CBaseChainParams::MAIN) 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" if (chain == CBaseChainParams::TESTNET) // Remove this special case when CBaseChainParams::TESTNET = "testnet4"
return GetSpecialFolderPath(CSIDL_STARTUP) / "Litecoin (testnet).lnk"; return GetSpecialFolderPath(CSIDL_STARTUP) / "Kevacoin (testnet).lnk";
return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Litecoin (%s).lnk", chain); return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Kevacoin (%s).lnk", chain);
} }
bool GetStartOnSystemStartup() bool GetStartOnSystemStartup()
@ -713,8 +713,8 @@ fs::path static GetAutostartFilePath()
{ {
std::string chain = ChainNameFromCommandLine(); std::string chain = ChainNameFromCommandLine();
if (chain == CBaseChainParams::MAIN) if (chain == CBaseChainParams::MAIN)
return GetAutostartDir() / "litecoin.desktop"; return GetAutostartDir() / "kevacoin.desktop";
return GetAutostartDir() / strprintf("litecoin-%s.lnk", chain); return GetAutostartDir() / strprintf("kevacoin-%s.lnk", chain);
} }
bool GetStartOnSystemStartup() bool GetStartOnSystemStartup()
@ -758,9 +758,9 @@ bool SetStartOnSystemStartup(bool fAutoStart)
optionFile << "[Desktop Entry]\n"; optionFile << "[Desktop Entry]\n";
optionFile << "Type=Application\n"; optionFile << "Type=Application\n";
if (chain == CBaseChainParams::MAIN) if (chain == CBaseChainParams::MAIN)
optionFile << "Name=Litecoin\n"; optionFile << "Name=Kevacoin\n";
else 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 << "Exec=" << pszExePath << strprintf(" -min -testnet=%d -regtest=%d\n", gArgs.GetBoolArg("-testnet", false), gArgs.GetBoolArg("-regtest", false));
optionFile << "Terminal=false\n"; optionFile << "Terminal=false\n";
optionFile << "Hidden=false\n"; optionFile << "Hidden=false\n";

4
src/qt/intro.cpp

@ -127,7 +127,7 @@ Intro::Intro(QWidget *parent) :
.arg(tr(PACKAGE_NAME)) .arg(tr(PACKAGE_NAME))
.arg(BLOCK_CHAIN_SIZE) .arg(BLOCK_CHAIN_SIZE)
.arg(2009) .arg(2009)
.arg(tr("Litecoin")) .arg(tr("Kevacoin"))
); );
ui->lblExplanation2->setText(ui->lblExplanation2->text().arg(tr(PACKAGE_NAME))); ui->lblExplanation2->setText(ui->lblExplanation2->text().arg(tr(PACKAGE_NAME)));
@ -146,7 +146,7 @@ Intro::Intro(QWidget *parent) :
} }
requiredSpace += CHAIN_STATE_SIZE; requiredSpace += CHAIN_STATE_SIZE;
ui->sizeWarningLabel->setText( 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) + " " + storageRequiresMsg.arg(requiredSpace) + " " +
tr("The wallet will also be stored in this directory.") tr("The wallet will also be stored in this directory.")
); );

Loading…
Cancel
Save