Browse Source

more replacement to Gostcoin

pull/7/head
orignal 8 years ago
parent
commit
227e697f7a
  1. 4
      src/net.cpp
  2. 4
      src/qt/addressbookpage.cpp
  3. 6
      src/qt/askpassphrasedialog.cpp
  4. 24
      src/qt/bitcoinstrings.cpp
  5. 8
      src/qt/guiutil.cpp
  6. 6
      src/qt/paymentserver.cpp
  7. 2
      src/qt/rpcconsole.cpp
  8. 14
      src/qt/setupdarknet.cpp

4
src/net.cpp

@ -1245,7 +1245,11 @@ void ThreadMapPort() @@ -1245,7 +1245,11 @@ void ThreadMapPort()
#else
/* miniupnpc 1.6 */
int error = 0;
#ifdef WIN32
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
#else
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
#endif
#endif
struct UPNPUrls urls;

4
src/qt/addressbookpage.cpp

@ -55,12 +55,12 @@ AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) : @@ -55,12 +55,12 @@ AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) :
switch(tab)
{
case SendingTab:
ui->labelExplanation->setText(tr("These are your Anoncoin addresses for sending payments. Always check the amount and the receiving address before sending coins."));
ui->labelExplanation->setText(tr("These are your Gostcoin addresses for sending payments. Always check the amount and the receiving address before sending coins."));
ui->deleteAddress->setVisible(true);
ui->signMessage->setVisible(false);
break;
case ReceivingTab:
ui->labelExplanation->setText(tr("These are your Anoncoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you."));
ui->labelExplanation->setText(tr("These are your Gostcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you."));
ui->deleteAddress->setVisible(false);
ui->signMessage->setVisible(true);
break;

6
src/qt/askpassphrasedialog.cpp

@ -98,7 +98,7 @@ void AskPassphraseDialog::accept() @@ -98,7 +98,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 <b>LOSE ALL OF YOUR ANONCOINS</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 GOSTCOINS</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
QMessageBox::Yes|QMessageBox::Cancel,
QMessageBox::Cancel);
if(retval == QMessageBox::Yes)
@ -109,9 +109,9 @@ void AskPassphraseDialog::accept() @@ -109,9 +109,9 @@ void AskPassphraseDialog::accept()
{
QMessageBox::warning(this, tr("Wallet encrypted"),
"<qt>" +
tr("Anoncoin will close now to finish the encryption process. "
tr("Gostcoin will close now to finish the encryption process. "
"Remember that encrypting your wallet cannot fully protect "
"your anoncoins from being stolen by malware infecting your computer.") +
"your gostcoins from being stolen by malware infecting your computer.") +
"<br><br><b>" +
tr("IMPORTANT: Any previous backups you have made of your wallet file "
"should be replaced with the newly generated, encrypted wallet file. "

24
src/qt/bitcoinstrings.cpp

@ -10,14 +10,14 @@ QT_TRANSLATE_NOOP("bitcoin-core", "" @@ -10,14 +10,14 @@ QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpassword in the configuration file:\n"
"%s\n"
"It is recommended you use the following random password:\n"
"rpcuser=anoncoinrpc\n"
"rpcuser=gostcoinrpc\n"
"rpcpassword=%s\n"
"(you do not need to remember this password)\n"
"The username and password MUST NOT be the same.\n"
"If the file does not exist, create it with owner-readable-only file "
"permissions.\n"
"It is also recommended to set alertnotify so you are notified of problems;\n"
"for example: alertnotify=echo %%s | mail -s \"Anoncoin Alert\" admin@foo.com\n"),
"for example: alertnotify=echo %%s | mail -s \"Gostcoin Alert\" admin@foo.com\n"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:"
"@STRENGTH)"),
@ -30,7 +30,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "" @@ -30,7 +30,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", ""
"Bind to given address and always listen on it. Use [host]:port notation for "
"IPv6"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Cannot obtain a lock on data directory %s. Anoncoin is probably already "
"Cannot obtain a lock on data directory %s. Gostcoin is probably already "
"running."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Error: The transaction was rejected! This might happen if some of the coins "
@ -63,7 +63,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "" @@ -63,7 +63,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", ""
"This is a pre-release test build - use at your own risk - do not use for "
"mining or merchant applications"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Unable to bind to %s on this computer. Anoncoin is probably already running."),
"Unable to bind to %s on this computer. Gostcoin is probably already running."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: -paytxfee is set very high! This is the transaction fee you will "
"pay if you send a transaction."),
@ -72,7 +72,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "" @@ -72,7 +72,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", ""
"or other nodes may need to upgrade."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: Please check that your computer's date and time are correct! If "
"your clock is wrong Anoncoin will not work properly."),
"your clock is wrong Gostcoin will not work properly."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: error reading wallet.dat! All keys read correctly, but transaction "
"data or address book entries might be missing or incorrect."),
@ -91,7 +91,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Add a node to connect to and attempt to keep @@ -91,7 +91,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Add a node to connect to and attempt to keep
QT_TRANSLATE_NOOP("bitcoin-core", "Allow DNS lookups for -addnode, -seednode and -connect"),
QT_TRANSLATE_NOOP("bitcoin-core", "Allow JSON-RPC connections from specified IP address"),
QT_TRANSLATE_NOOP("bitcoin-core", "Attempt to recover private keys from a corrupt wallet.dat"),
QT_TRANSLATE_NOOP("bitcoin-core", "Anoncoin version"),
QT_TRANSLATE_NOOP("bitcoin-core", "Gostcoin version"),
QT_TRANSLATE_NOOP("bitcoin-core", "Block creation options:"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot downgrade wallet"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -bind address: '%s'"),
@ -109,7 +109,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Error initializing wallet database environmen @@ -109,7 +109,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Error initializing wallet database environmen
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading block database"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet corrupted"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet requires newer version of Anoncoin"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet requires newer version of Gostcoin"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error opening block database"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error: Disk space is low!"),
@ -162,9 +162,9 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Rebuild block chain index from current blk000 @@ -162,9 +162,9 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Rebuild block chain index from current blk000
QT_TRANSLATE_NOOP("bitcoin-core", "Rescan the block chain for missing wallet transactions"),
QT_TRANSLATE_NOOP("bitcoin-core", "Rescanning..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Run in the background as a daemon and accept commands"),
QT_TRANSLATE_NOOP("bitcoin-core", "SSL options: (see the Anoncoin Wiki for SSL setup instructions)"),
QT_TRANSLATE_NOOP("bitcoin-core", "SSL options: (see the Gostcoin Wiki for SSL setup instructions)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Select the version of socks proxy to use (4-5, default: 5)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send command to -server or anoncoind"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send command to -server or gostcoind"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send commands to node running on <ip> (default: 127.0.0.1)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send trace/debug info to console instead of debug.log file"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send trace/debug info to debugger"),
@ -177,10 +177,10 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Set minimum block size in bytes (default: 0)" @@ -177,10 +177,10 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Set minimum block size in bytes (default: 0)"
QT_TRANSLATE_NOOP("bitcoin-core", "Set the number of threads to service RPC calls (default: 4)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Shrink debug.log file on client startup (default: 1 when no -debug)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Signing transaction failed"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify configuration file (default: anoncoin.conf)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify configuration file (default: gostcoin.conf)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify connection timeout in milliseconds (default: 5000)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify data directory"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify pid file (default: anoncoind.pid)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify pid file (default: gostcoind.pid)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify your own public address"),
QT_TRANSLATE_NOOP("bitcoin-core", "System error: "),
QT_TRANSLATE_NOOP("bitcoin-core", "This help message"),
@ -202,7 +202,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Use the test network"), @@ -202,7 +202,7 @@ QT_TRANSLATE_NOOP("bitcoin-core", "Use the test network"),
QT_TRANSLATE_NOOP("bitcoin-core", "Username for JSON-RPC connections"),
QT_TRANSLATE_NOOP("bitcoin-core", "Verifying blocks..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Verifying wallet..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Wallet needed to be rewritten: restart Anoncoin to complete"),
QT_TRANSLATE_NOOP("bitcoin-core", "Wallet needed to be rewritten: restart Gostcoin to complete"),
QT_TRANSLATE_NOOP("bitcoin-core", "Warning"),
QT_TRANSLATE_NOOP("bitcoin-core", "Warning: This version is obsolete, upgrade required!"),
QT_TRANSLATE_NOOP("bitcoin-core", "You need to rebuild the database using -reindex to change -txindex"),

8
src/qt/guiutil.cpp

@ -84,7 +84,7 @@ void setupAmountWidget(QLineEdit *widget, QWidget *parent) @@ -84,7 +84,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("anoncoin"))
if(!uri.isValid() || uri.scheme() != QString("gostcoin"))
return false;
SendCoinsRecipient rv;
@ -301,7 +301,7 @@ bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt) @@ -301,7 +301,7 @@ bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt)
#ifdef WIN32
boost::filesystem::path static StartupShortcutPath()
{
return GetSpecialFolderPath(CSIDL_STARTUP) / "Anoncoin.lnk";
return GetSpecialFolderPath(CSIDL_STARTUP) / "Gostcoin.lnk";
}
bool GetStartOnSystemStartup()
@ -383,7 +383,7 @@ boost::filesystem::path static GetAutostartDir() @@ -383,7 +383,7 @@ boost::filesystem::path static GetAutostartDir()
boost::filesystem::path static GetAutostartFilePath()
{
return GetAutostartDir() / "anoncoin.desktop";
return GetAutostartDir() / "gostcoin.desktop";
}
bool GetStartOnSystemStartup()
@ -424,7 +424,7 @@ bool SetStartOnSystemStartup(bool fAutoStart) @@ -424,7 +424,7 @@ bool SetStartOnSystemStartup(bool fAutoStart)
// Write a bitcoin.desktop file to the autostart directory:
optionFile << "[Desktop Entry]\n";
optionFile << "Type=Application\n";
optionFile << "Name=Anoncoin\n";
optionFile << "Name=Gostcoin\n";
optionFile << "Exec=" << pszExePath << " -min\n";
optionFile << "Terminal=false\n";
optionFile << "Hidden=false\n";

6
src/qt/paymentserver.cpp

@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
using namespace boost;
const int BITCOIN_IPC_CONNECT_TIMEOUT = 1000; // milliseconds
const QString BITCOIN_IPC_PREFIX("anoncoin:");
const QString BITCOIN_IPC_PREFIX("gostcoin:");
//
// Create a name that is unique for:
@ -34,7 +34,7 @@ const QString BITCOIN_IPC_PREFIX("anoncoin:"); @@ -34,7 +34,7 @@ const QString BITCOIN_IPC_PREFIX("anoncoin:");
//
static QString ipcServerName()
{
QString name("BitcoinQt");
QString name("GostcoinQt");
// Append a simple hash of the datadir
// Note that GetDataDir(true) returns a different path
@ -106,7 +106,7 @@ PaymentServer::PaymentServer(QApplication* parent) : QObject(parent), saveURIs(t @@ -106,7 +106,7 @@ PaymentServer::PaymentServer(QApplication* parent) : QObject(parent), saveURIs(t
uriServer = new QLocalServer(this);
if (!uriServer->listen(name))
qDebug() << tr("Cannot start anoncoin: click-to-pay handler");
qDebug() << tr("Cannot start gostcoin: click-to-pay handler");
else
connect(uriServer, SIGNAL(newConnection()), this, SLOT(handleURIConnection()));
}

2
src/qt/rpcconsole.cpp

@ -308,7 +308,7 @@ void RPCConsole::clear() @@ -308,7 +308,7 @@ void RPCConsole::clear()
"b { color: #006060; } "
);
message(CMD_REPLY, (tr("Welcome to the Anoncoin RPC console.") + "<br>" +
message(CMD_REPLY, (tr("Welcome to the Gostcoin RPC console.") + "<br>" +
tr("Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.") + "<br>" +
tr("Type <b>help</b> for an overview of available commands.")), true);
}

14
src/qt/setupdarknet.cpp

@ -11,22 +11,22 @@ @@ -11,22 +11,22 @@
void runFirstRunWizard()
{
QString strMessage = BitcoinGUI::tr("Do you run Tor or I2P on your computer?\n"
"If so, press yes to let Anoncoin configure it's "
QString strMessage = BitcoinGUI::tr("Do you run I2P on your computer?\n"
"If so, press yes to let Gostcoin configure it's "
"connection to the prefered darknet of yours.");
QMessageBox::StandardButton isRunningDarknet = QMessageBox::question(NULL,
BitcoinGUI::tr("Anoncoin Wizard - Step #1"), strMessage,
BitcoinGUI::tr("Gostcoin Wizard - Step #1"), strMessage,
QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes);
if (isRunningDarknet == QMessageBox::No)
{
// Tell user to download
strMessage = BitcoinGUI::tr("Do you want to download Tor or I2P, and "
"continue darknet setup?\nIf you select yes Anoncoin will quit, "
strMessage = BitcoinGUI::tr("Do you want to download I2P, and "
"continue darknet setup?\nIf you select yes Gostcoin will quit, "
"so you can continue the wizard after installing a darknet.\n"
"If you select no, Anoncoin will write a default clearnet "
"If you select no, Gostcoin will write a default clearnet "
"(regular internet) config file for you. (unsafe mode)\n");
QMessageBox::StandardButton wantDownloadDarknet = QMessageBox::question(NULL,
BitcoinGUI::tr("Anoncoin Wizard - Step #2"), strMessage,
BitcoinGUI::tr("Gostcoin Wizard - Step #2"), strMessage,
QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes);
if (wantDownloadDarknet == QMessageBox::No)
{

Loading…
Cancel
Save