Skip to content

Commit 8add59d

Browse files
committed
Merge bitcoin/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 #24366. ACKs for top commit: laanwj: Code review re-ACK 4874269 hebasto: re-ACK 4874269, only suggested change since my previous [review](bitcoin/bitcoin#24367 (review)). Tree-SHA512: 4dcdcb417251a413e65fab6070515e13a1267c8e0dbcf521386b842511391f24c84a0c2168fe13458c977682034466509bf2a3453719d4d94d3c568fd9f4adb4
2 parents e200919 + 4874269 commit 8add59d

18 files changed

+23
-23
lines changed

contrib/guix/guix-build

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

193193
if ! getent services http https ftp > /dev/null 2>&1; then
194194
cat << EOF
195-
ERR: Your system's C library can not find service database entries for at least
195+
ERR: Your system's C library cannot find service database entries for at least
196196
one of the following services: http, https, ftp.
197197
198198
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
@@ -331,7 +331,7 @@ other input.
331331
failure, it will throw an exception, which can be caught to recover from the
332332
error.
333333
- For example, a nullptr dereference or any other logic bug in RPC code
334-
means that the RPC code is faulty and can not be executed. However, the
334+
means that the RPC code is faulty and cannot be executed. However, the
335335
logic bug can be shown to the user and the program can continue to run.
336336
* `Assume` should be used to document assumptions when program execution can
337337
safely continue even if the assumption is violated. In debug builds it
@@ -1199,7 +1199,7 @@ A few guidelines for introducing and reviewing new RPC interfaces:
11991199

12001200
- Don't forget to fill in the argument names correctly in the RPC command table.
12011201
1202-
- *Rationale*: If not, the call can not be used with name-based arguments.
1202+
- *Rationale*: If not, the call cannot be used with name-based arguments.
12031203
12041204
- Add every non-string RPC argument `(method, idx, name)` to the table `vRPCConvertParams` in `rpc/client.cpp`.
12051205

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3097,7 +3097,7 @@ void CaptureMessage(const CAddress& addr, const std::string& msg_type, const Spa
30973097
// layer (processing) perspective.
30983098
auto now = GetTime<std::chrono::microseconds>();
30993099

3100-
// Windows folder names can not include a colon
3100+
// Windows folder names cannot include a colon
31013101
std::string clean_addr = addr.ToString();
31023102
std::replace(clean_addr.begin(), clean_addr.end(), ':', '_');
31033103

src/qt/bitcoin.cpp

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

src/qt/intro.cpp

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

299299
void Intro::UpdateFreeSpaceLabel()
300300
{
301-
QString freeString = tr("%1 GB of free space available").arg(m_bytes_available / GB_BYTES);
301+
QString freeString = tr("%1 GB of space available").arg(m_bytes_available / GB_BYTES);
302302
if (m_bytes_available < m_required_space_gb * GB_BYTES) {
303303
freeString += " " + tr("(of %1 GB needed)").arg(m_required_space_gb);
304304
ui->freeSpace->setStyleSheet("QLabel { color: #800000 }");

src/rpc/misc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ static RPCHelpMan setmocktime()
426426
RPCTypeCheck(request.params, {UniValue::VNUM});
427427
const int64_t time{request.params[0].get_int64()};
428428
if (time < 0) {
429-
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Mocktime can not be negative: %s.", time));
429+
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Mocktime cannot be negative: %s.", time));
430430
}
431431
SetMockTime(time);
432432
auto node_context = util::AnyPtr<NodeContext>(request.context);

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static RPCHelpMan verifytxoutproof()
380380
RPCResult{
381381
RPCResult::Type::ARR, "", "",
382382
{
383-
{RPCResult::Type::STR_HEX, "txid", "The txid(s) which the proof commits to, or empty array if the proof can not be validated."},
383+
{RPCResult::Type::STR_HEX, "txid", "The txid(s) which the proof commits to, or empty array if the proof cannot be validated."},
384384
}
385385
},
386386
RPCExamples{""},

src/test/util_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ BOOST_AUTO_TEST_CASE(util_ParseMoney)
12861286
BOOST_CHECK_EQUAL(ParseMoney("0.00000001 ").value(), COIN/100000000);
12871287
BOOST_CHECK_EQUAL(ParseMoney(" 0.00000001").value(), COIN/100000000);
12881288

1289-
// Parsing amount that can not be represented should fail
1289+
// Parsing amount that cannot be represented should fail
12901290
BOOST_CHECK(!ParseMoney("100000000.00"));
12911291
BOOST_CHECK(!ParseMoney("0.000000001"));
12921292

src/txdb.cpp

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

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,7 @@ bool CChainState::ConnectBlock(const CBlock& block, BlockValidationState& state,
20772077
fEnforceBIP30 = fEnforceBIP30 && (!pindexBIP34height || !(pindexBIP34height->GetBlockHash() == m_params.GetConsensus().BIP34Hash));
20782078

20792079
// TODO: Remove BIP30 checking from block height 1,983,702 on, once we have a
2080-
// consensus change that ensures coinbases at those heights can not
2080+
// consensus change that ensures coinbases at those heights cannot
20812081
// duplicate earlier coinbases.
20822082
if (fEnforceBIP30 || pindex->nHeight >= BIP34_IMPLIES_BIP30_LIMIT) {
20832083
for (const auto& tx : block.vtx) {

0 commit comments

Comments
 (0)