You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin/bitcoin#31295: refactor: Prepare compile-time check of bilingual format strings
fa3e074 refactor: Tidy fixups (MarcoFalke)
fa72646 move-only: Detail_CheckNumFormatSpecifiers and G_TRANSLATION_FUN (MarcoFalke)
faff840 refactor: Pick translated string after format (MarcoFalke)
Pull request description:
The changes are required for bitcoin/bitcoin#31061, however they also make sense on their own. For example, they are fixing up an `inline namespace`, which lead to compile errors otherwise (can be tested by observing the compile error after reverting the changes to `src/util/strencodings.h`). Also, a unit test comment is fixed.
ACKs for top commit:
ryanofsky:
Code review ACK fa3e074. Nice changes! These should allow related PRs to be simpler.
l0rinc:
ACK fa3e074
hodlinator:
cr-ACK fa3e074
Tree-SHA512: 37371181a348610442186b5fbb7a6032d0caf70aae566002ad60be329a3131a2b89f28f6c51e10872079f987986925dc8c0611bde639057bee4f572d2b9ba92a
strprintf(_("Please contribute if you find %s useful. "
91
-
"Visit %s for further information about the software.").translated, CLIENT_NAME, "<" CLIENT_URL ">") +
91
+
"Visit %s for further information about the software."),
92
+
CLIENT_NAME, "<" CLIENT_URL ">")
93
+
.translated +
92
94
"\n" +
93
-
strprintf(_("The source code is available from %s.").translated, URL_SOURCE_CODE) +
95
+
strprintf(_("The source code is available from %s."), URL_SOURCE_CODE).translated +
94
96
"\n" +
95
97
"\n" +
96
98
_("This is experimental software.").translated + "\n" +
97
-
strprintf(_("Distributed under the MIT software license, see the accompanying file %s or %s").translated, "COPYING", "<https://opensource.org/licenses/MIT>") +
99
+
strprintf(_("Distributed under the MIT software license, see the accompanying file %s or %s"), "COPYING", "<https://opensource.org/licenses/MIT>").translated +
// For now, cannot specify both new outputs to use and an output index to send change
169
169
if (!outputs.empty() && original_change_index.has_value()) {
170
-
errors.push_back(Untranslated("The options 'outputs' and 'original_change_index' are incompatible. You can only either specify a new set of outputs, or designate a change output to be recycled."));
170
+
errors.emplace_back(Untranslated("The options 'outputs' and 'original_change_index' are incompatible. You can only either specify a new set of outputs, or designate a change output to be recycled."));
0 commit comments