Skip to content

Commit c36eff7

Browse files
laanwjvijaydasmp
authored andcommitted
(partial) Merge bitcoin#24367: User-facing content and codebase doc fixups from transifex translator feedback
4874269 Replace "can not" with "cannot" in docs, user messages, and tests (Jon Atack) e670edd User-facing content fixups from transifex translator feedback (Jon Atack) Pull request description: Closes bitcoin#24366. ACKs for top commit: laanwj: Code review re-ACK 4874269 hebasto: re-ACK 4874269, only suggested change since my previous [review](bitcoin#24367 (review)). Tree-SHA512: 4dcdcb417251a413e65fab6070515e13a1267c8e0dbcf521386b842511391f24c84a0c2168fe13458c977682034466509bf2a3453719d4d94d3c568fd9f4adb4
1 parent c7da31c commit c36eff7

File tree

16 files changed

+21
-21
lines changed

16 files changed

+21
-21
lines changed

contrib/guix/guix-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fi
194194

195195
if ! getent services http https ftp > /dev/null 2>&1; then
196196
cat << EOF
197-
ERR: Your system's C library can not find service database entries for at least
197+
ERR: Your system's C library cannot find service database entries for at least
198198
one of the following services: http, https, ftp.
199199
200200
Hint: Most likely, /etc/services does not exist yet (common for docker images

doc/developer-notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ other input.
445445
failure, it will throw an exception, which can be caught to recover from the
446446
error.
447447
- For example, a nullptr dereference or any other logic bug in RPC code
448-
means that the RPC code is faulty and can not be executed. However, the
448+
means that the RPC code is faulty and cannot be executed. However, the
449449
logic bug can be shown to the user and the program can continue to run.
450450
* `Assume` should be used to document assumptions when program execution can
451451
safely continue even if the assumption is violated. In debug builds it
@@ -1352,7 +1352,7 @@ A few guidelines for introducing and reviewing new RPC interfaces:
13521352

13531353
- Don't forget to fill in the argument names correctly in the RPC command table.
13541354
1355-
- *Rationale*: If not, the call can not be used with name-based arguments.
1355+
- *Rationale*: If not, the call cannot be used with name-based arguments.
13561356
13571357
- Add every non-string RPC argument `(method, idx, name)` to the table `vRPCConvertParams` in `rpc/client.cpp`.
13581358

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5189,7 +5189,7 @@ void CaptureMessageToFile(const CAddress& addr,
51895189
// layer (processing) perspective.
51905190
auto now = GetTime<std::chrono::microseconds>();
51915191

5192-
// Windows folder names can not include a colon
5192+
// Windows folder names cannot include a colon
51935193
std::string clean_addr = addr.ToStringAddrPort();
51945194
std::replace(clean_addr.begin(), clean_addr.end(), ':', '_');
51955195

src/qt/bitcoin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ int GuiMain(int argc, char* argv[])
510510
InitError(strprintf(Untranslated("Error parsing command line arguments: %s\n"), error));
511511
// Create a message box, because the gui has neither been created nor has subscribed to core signals
512512
QMessageBox::critical(nullptr, PACKAGE_NAME,
513-
// message can not be translated because translations have not been initialized
513+
// message cannot be translated because translations have not been initialized
514514
QString::fromStdString("Error parsing command line arguments: %1.").arg(QString::fromStdString(error)));
515515
return EXIT_FAILURE;
516516
}

src/qt/intro.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void Intro::setStatus(int status, const QString &message, quint64 bytesAvailable
304304

305305
void Intro::UpdateFreeSpaceLabel()
306306
{
307-
QString freeString = tr("%1 GB of free space available").arg(m_bytes_available / GB_BYTES);
307+
QString freeString = tr("%1 GB of space available").arg(m_bytes_available / GB_BYTES);
308308
if (m_bytes_available < m_required_space_gb * GB_BYTES) {
309309
freeString += " " + tr("(of %1 GB needed)").arg(m_required_space_gb);
310310
ui->freeSpace->setStyleSheet(GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR));

src/rpc/misc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ static RPCHelpMan setmocktime()
499499
RPCTypeCheck(request.params, {UniValue::VNUM});
500500
const int64_t time{request.params[0].get_int64()};
501501
if (time < 0) {
502-
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Mocktime can not be negative: %s.", time));
502+
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Mocktime cannot be negative: %s.", time));
503503
}
504504
SetMockTime(time);
505505
if (auto* node_context = GetContext<NodeContext>(request.context)) {

src/rpc/txoutproof.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static RPCHelpMan verifytxoutproof()
133133
RPCResult{
134134
RPCResult::Type::ARR, "", "",
135135
{
136-
{RPCResult::Type::STR_HEX, "txid", "The txid(s) which the proof commits to, or empty array if the proof can not be validated."},
136+
{RPCResult::Type::STR_HEX, "txid", "The txid(s) which the proof commits to, or empty array if the proof cannot be validated."},
137137
}
138138
},
139139
RPCExamples{

src/test/util_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ BOOST_AUTO_TEST_CASE(util_ParseMoney)
13751375
BOOST_CHECK_EQUAL(ParseMoney("0.00000001 ").value(), COIN/100000000);
13761376
BOOST_CHECK_EQUAL(ParseMoney(" 0.00000001").value(), COIN/100000000);
13771377

1378-
// Parsing amount that can not be represented should fail
1378+
// Parsing amount that cannot be represented should fail
13791379
BOOST_CHECK(!ParseMoney("100000000.00"));
13801380
BOOST_CHECK(!ParseMoney("0.000000001"));
13811381

src/txdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ std::optional<bilingual_str> CheckLegacyTxindex(CBlockTreeDB& block_tree_db)
4040
{
4141
CBlockLocator ignored{};
4242
if (block_tree_db.Read(DB_TXINDEX_BLOCK, ignored)) {
43-
return _("The -txindex upgrade started by a previous version can not be completed. Restart with the previous version or run a full -reindex.");
43+
return _("The -txindex upgrade started by a previous version cannot be completed. Restart with the previous version or run a full -reindex.");
4444
}
4545
bool txindex_legacy_flag{false};
4646
block_tree_db.ReadFlag("txindex", txindex_legacy_flag);

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ static RPCHelpMan walletpassphrase()
20152015
}
20162016

20172017
if (strWalletPass.empty()) {
2018-
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase can not be empty");
2018+
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase cannot be empty");
20192019
}
20202020

20212021
if (!pwallet->Unlock(strWalletPass, fForMixingOnly)) {
@@ -2087,7 +2087,7 @@ static RPCHelpMan walletpassphrasechange()
20872087
strNewWalletPass = request.params[1].get_str().c_str();
20882088

20892089
if (strOldWalletPass.empty() || strNewWalletPass.empty()) {
2090-
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase can not be empty");
2090+
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase cannot be empty");
20912091
}
20922092

20932093
if (!pwallet->ChangeWalletPassphrase(strOldWalletPass, strNewWalletPass)) {
@@ -2184,7 +2184,7 @@ static RPCHelpMan encryptwallet()
21842184
strWalletPass = request.params[0].get_str().c_str();
21852185

21862186
if (strWalletPass.empty()) {
2187-
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase can not be empty");
2187+
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase cannot be empty");
21882188
}
21892189

21902190
if (!pwallet->EncryptWallet(strWalletPass)) {

0 commit comments

Comments
 (0)