Skip to content

Commit 6b3783a

Browse files
author
Philip Kaufmann
committed
fix some double-spaces in strings
- remove some unneeded stuff in sendcoinsentry.ui - harmonize some "Error:"-messages
1 parent bb790aa commit 6b3783a

File tree

6 files changed

+18
-30
lines changed

6 files changed

+18
-30
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ bool AppInit2()
461461
if (file) fclose(file);
462462
static boost::interprocess::file_lock lock(pathLockFile.string().c_str());
463463
if (!lock.try_lock())
464-
return InitError(strprintf(_("Cannot obtain a lock on data directory %s. Bitcoin is probably already running."), strDataDir.c_str()));
464+
return InitError(strprintf(_("Cannot obtain a lock on data directory %s. Bitcoin is probably already running."), strDataDir.c_str()));
465465

466466
#if !defined(WIN32) && !defined(QT_GUI)
467467
if (fDaemon)

src/qt/bitcoingui.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -609,11 +609,9 @@ void BitcoinGUI::closeEvent(QCloseEvent *event)
609609

610610
void BitcoinGUI::askFee(qint64 nFeeRequired, bool *payFee)
611611
{
612-
QString strMessage =
613-
tr("This transaction is over the size limit. You can still send it for a fee of %1, "
614-
"which goes to the nodes that process your transaction and helps to support the network. "
615-
"Do you want to pay the fee?").arg(
616-
BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nFeeRequired));
612+
QString strMessage = tr("This transaction is over the size limit. You can still send it for a fee of %1, "
613+
"which goes to the nodes that process your transaction and helps to support the network. "
614+
"Do you want to pay the fee?").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nFeeRequired));
617615
QMessageBox::StandardButton retval = QMessageBox::question(
618616
this, tr("Confirm transaction fee"), strMessage,
619617
QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Yes);

src/qt/forms/sendcoinsentry.ui

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,6 @@
5252
<item row="5" column="1">
5353
<widget class="BitcoinAmountField" name="payAmount"/>
5454
</item>
55-
<item row="4" column="1">
56-
<layout class="QHBoxLayout" name="horizontalLayout_2">
57-
<property name="spacing">
58-
<number>0</number>
59-
</property>
60-
<item>
61-
<widget class="QValidatedLineEdit" name="addAsLabel">
62-
<property name="enabled">
63-
<bool>true</bool>
64-
</property>
65-
<property name="toolTip">
66-
<string>Enter a label for this address to add it to your address book</string>
67-
</property>
68-
</widget>
69-
</item>
70-
</layout>
71-
</item>
7255
<item row="4" column="0">
7356
<widget class="QLabel" name="label_4">
7457
<property name="text">
@@ -90,7 +73,7 @@
9073
<item>
9174
<widget class="QValidatedLineEdit" name="payTo">
9275
<property name="toolTip">
93-
<string>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</string>
76+
<string>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</string>
9477
</property>
9578
<property name="maxLength">
9679
<number>34</number>
@@ -147,6 +130,13 @@
147130
</item>
148131
</layout>
149132
</item>
133+
<item row="4" column="1">
134+
<widget class="QValidatedLineEdit" name="addAsLabel">
135+
<property name="toolTip">
136+
<string>Enter a label for this address to add it to your address book</string>
137+
</property>
138+
</widget>
139+
</item>
150140
</layout>
151141
</widget>
152142
<customwidgets>

src/qt/sendcoinsdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void SendCoinsDialog::on_sendButton_clicked()
148148
break;
149149
case WalletModel::TransactionCreationFailed:
150150
QMessageBox::warning(this, tr("Send Coins"),
151-
tr("Error: Transaction creation failed."),
151+
tr("Error: Transaction creation failed!"),
152152
QMessageBox::Ok, QMessageBox::Ok);
153153
break;
154154
case WalletModel::TransactionCommitFailed:

src/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ Value encryptwallet(const Array& params, bool fHelp)
13961396
// slack space in .dat files; that is bad if the old data is
13971397
// unencrypted private keys. So:
13981398
StartShutdown();
1399-
return "wallet encrypted; Bitcoin server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup.";
1399+
return "wallet encrypted; Bitcoin server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup.";
14001400
}
14011401

14021402
class DescribeAddressVisitor : public boost::static_visitor<Object>

src/wallet.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,17 +1296,17 @@ string CWallet::SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew,
12961296

12971297
if (IsLocked())
12981298
{
1299-
string strError = _("Error: Wallet locked, unable to create transaction ");
1299+
string strError = _("Error: Wallet locked, unable to create transaction!");
13001300
printf("SendMoney() : %s", strError.c_str());
13011301
return strError;
13021302
}
13031303
if (!CreateTransaction(scriptPubKey, nValue, wtxNew, reservekey, nFeeRequired))
13041304
{
13051305
string strError;
13061306
if (nValue + nFeeRequired > GetBalance())
1307-
strError = strprintf(_("Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds "), FormatMoney(nFeeRequired).c_str());
1307+
strError = strprintf(_("Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!"), FormatMoney(nFeeRequired).c_str());
13081308
else
1309-
strError = _("Error: Transaction creation failed ");
1309+
strError = _("Error: Transaction creation failed!");
13101310
printf("SendMoney() : %s", strError.c_str());
13111311
return strError;
13121312
}
@@ -1315,7 +1315,7 @@ string CWallet::SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew,
13151315
return "ABORTED";
13161316

13171317
if (!CommitTransaction(wtxNew, reservekey))
1318-
return _("Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.");
1318+
return _("Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.");
13191319

13201320
return "";
13211321
}

0 commit comments

Comments
 (0)