Bugfix: Fix a variety of misspellings

This commit is contained in:
Luke Dashjr
2012-07-26 00:48:39 +00:00
parent 797d0b231b
commit 982f4fd301
18 changed files with 24 additions and 24 deletions

View File

@@ -2243,7 +2243,7 @@ void ThreadRPCServer2(void* parg)
}
catch(boost::system::system_error &e)
{
ThreadSafeMessageBox(strprintf(_("An error occured while setting up the RPC port %i for listening: %s"), endpoint.port(), e.what()),
ThreadSafeMessageBox(strprintf(_("An error occurred while setting up the RPC port %i for listening: %s"), endpoint.port(), e.what()),
_("Error"), wxOK | wxMODAL);
StartShutdown();
return;

View File

@@ -78,7 +78,7 @@ void Shutdown(void* parg)
printf("Bitcoin exiting\n\n");
fExit = true;
#ifndef QT_GUI
// ensure non UI client get's exited here, but let Bitcoin-Qt reach return 0; in bitcoin.cpp
// ensure non-UI client get's exited here, but let Bitcoin-Qt reach return 0; in bitcoin.cpp
exit(0);
#endif
}

View File

@@ -78,7 +78,7 @@ err:
// Perform ECDSA key recovery (see SEC1 4.1.6) for curves over (mod p)-fields
// recid selects which key is recovered
// if check is nonzero, additional checks are performed
// if check is non-zero, additional checks are performed
int static inline ECDSA_SIG_recover_key_GFp(EC_KEY *eckey, ECDSA_SIG *ecsig, const unsigned char *msg, int msglen, int recid, int check)
{
if (!eckey) return 0;

View File

@@ -23,7 +23,7 @@ public:
virtual bool HaveKey(const CBitcoinAddress &address) const =0;
// Retrieve a key corresponding to a given address from the store.
// Return true if succesful.
// Return true if successful.
virtual bool GetKey(const CBitcoinAddress &address, CKey& keyOut) const =0;
// Retrieve only the public key corresponding to a given address.

View File

@@ -125,7 +125,7 @@ protected:
int nRefCount;
// Denial-of-service detection/prevention
// Key is ip address, value is banned-until-time
// Key is IP address, value is banned-until-time
static std::map<unsigned int, int64> setBanned;
static CCriticalSection cs_setBanned;
int nMisbehavior;

View File

@@ -178,7 +178,7 @@ void AskPassphraseDialog::accept()
void AskPassphraseDialog::textChanged()
{
// Validate input, set Ok button to enabled when accepable
// Validate input, set Ok button to enabled when acceptable
bool acceptable = false;
switch(mode)
{

View File

@@ -5,8 +5,8 @@
This is:
- All numbers except for '0'
- All uppercase letters except for 'I' and 'O'
- All lowercase letters except for 'l'
- All upper-case letters except for 'I' and 'O'
- All lower-case letters except for 'l'
User friendly Base58 input can map
- 'l' and 'I' to '1'

View File

@@ -40,7 +40,7 @@ signals:
void textChanged();
protected:
/** Intercept focus-in event and ',' keypresses */
/** Intercept focus-in event and ',' key presses */
bool eventFilter(QObject *object, QEvent *event);
private:

View File

@@ -150,7 +150,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
// Clicking on a transaction on the overview page simply sends you to transaction history page
connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), this, SLOT(gotoHistoryPage()));
// Doubleclicking on a transaction on the transaction history page shows details
// Double-clicking on a transaction on the transaction history page shows details
connect(transactionView, SIGNAL(doubleClicked(QModelIndex)), transactionView, SLOT(showDetails()));
gotoOverviewPage();
@@ -335,7 +335,7 @@ void BitcoinGUI::setWalletModel(WalletModel *walletModel)
setEncryptionStatus(walletModel->getEncryptionStatus());
connect(walletModel, SIGNAL(encryptionStatusChanged(int)), this, SLOT(setEncryptionStatus(int)));
// Balloon popup for new transaction
// Balloon pop-up for new transaction
connect(walletModel->getTransactionTableModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
this, SLOT(incomingTransaction(QModelIndex,int,int)));

View File

@@ -92,7 +92,7 @@ private:
/** Create the main UI actions. */
void createActions();
/** Create the menu bar and submenus. */
/** Create the menu bar and sub-menus. */
void createMenuBar();
/** Create the toolbars */
void createToolBars();
@@ -153,7 +153,7 @@ private slots:
void encryptWallet(bool status);
/** Change encrypted wallet passphrase */
void changePassphrase();
/** Ask for pass phrase to unlock wallet temporarily */
/** Ask for passphrase to unlock wallet temporarily */
void unlockWallet();
};

View File

@@ -5,7 +5,7 @@
#include <QAbstractListModel>
/** Bitcoin unit definitions. Encapsulates parsing and formatting
and serves as list model for dropdown selection boxes.
and serves as list model for drop-down selection boxes.
*/
class BitcoinUnits: public QAbstractListModel
{
@@ -26,7 +26,7 @@ public:
//! Unit conversion and formatting
///@{
//! Get list of units, for dropdown box
//! Get list of units, for drop-down box
static QList<Unit> availableUnits();
//! Is unit ID valid?
static bool valid(int unit);
@@ -49,7 +49,7 @@ public:
///@}
//! @name AbstractListModel implementation
//! List model for unit dropdown selection box.
//! List model for unit drop-down selection box.
///@{
enum RoleIndex {
/** Unit identifier */

View File

@@ -80,7 +80,7 @@ bool GUIUtil::parseBitcoinURI(QString uri, SendCoinsRecipient *out)
// Convert bitcoin:// to bitcoin:
//
// Cannot handle this later, because bitcoin:// will cause Qt to see the part after // as host,
// which will lowercase it (and thus invalidate the address).
// which will lower-case it (and thus invalidate the address).
if(uri.startsWith("bitcoin://"))
{
uri.replace(0, 10, "bitcoin:");

View File

@@ -33,7 +33,7 @@ public:
static bool parseBitcoinURI(const QUrl *, SendCoinsRecipient *out);
static bool parseBitcoinURI(QString uri, SendCoinsRecipient *out);
/** Get save file name, mimics QFileDialog::getSaveFileName, except that it appends a default suffix
/** Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix
when no suffix is provided by the user.
@param[in] parent Parent window (or 0)

View File

@@ -82,7 +82,7 @@ public:
static int metaType();
// Image to variant that can be marshaled over DBus
// Image to variant that can be marshalled over DBus
static QVariant toVariant(const QImage &img);
private:
@@ -294,7 +294,7 @@ void Notificator::notify(Class cls, const QString &title, const QString &text, c
default:
if(cls == Critical)
{
// Fall back to old fashioned popup dialog if critical and no other notification available
// Fall back to old fashioned pop-up dialog if critical and no other notification available
QMessageBox::critical(parent, title, text, QMessageBox::Ok, QMessageBox::Ok);
}
break;

View File

@@ -27,7 +27,7 @@ public:
{
Information, /**< Informational message */
Warning, /**< Notify user of potential problem */
Critical /**< An error occured */
Critical /**< An error occurred */
};
public slots:

View File

@@ -23,7 +23,7 @@ public:
void setDateRange(const QDateTime &from, const QDateTime &to);
void setAddressPrefix(const QString &addrPrefix);
/**
@note Type filter takes a bitfield created with TYPE() or ALL_TYPES
@note Type filter takes a bit field created with TYPE() or ALL_TYPES
*/
void setTypeFilter(quint32 modes);
void setMinAmount(qint64 minimum);

View File

@@ -205,7 +205,7 @@ void TransactionView::chooseDate(int idx)
TransactionFilterProxy::MAX_DATE);
break;
case ThisWeek: {
// Find last monday
// Find last Monday
QDate startOfWeek = current.addDays(-(current.dayOfWeek()-1));
transactionProxyModel->setDateRange(
QDateTime(startOfWeek),

View File

@@ -20,7 +20,7 @@ BOOST_AUTO_TEST_CASE(DoS_banning)
CNode dummyNode1(INVALID_SOCKET, addr1, true);
dummyNode1.Misbehaving(100); // Should get banned
BOOST_CHECK(CNode::IsBanned(addr1.ip));
BOOST_CHECK(!CNode::IsBanned(addr1.ip|0x0000ff00)); // Different ip, not banned
BOOST_CHECK(!CNode::IsBanned(addr1.ip|0x0000ff00)); // Different IP, not banned
CAddress addr2(0xa0b0c002);
CNode dummyNode2(INVALID_SOCKET, addr2, true);