Make RPC console welcome message translation-friendly #331
pull hebasto wants to merge 1 commits into bitcoin-core:master from hebasto:210515-welcome changing 1 files +23 −17-
hebasto commented at 12:06 pm on May 15, 2021: memberThe best practice is do not split a translatable multi-line message into single lines. This helps translators to follow the context.
-
hebasto added the label Translations on May 15, 2021
-
in src/qt/rpcconsole.cpp:815 in b00aaf6134 outdated
824+ /*: RPC console welcome message. 825+ Placeholders %5 and %6 are style tags for the warning content. */ 826+ tr("Welcome to the %1 RPC console.\n" 827+ "Use up and down arrows to navigate history, and %2 to clear screen.\n" 828+ "Type %3 for an overview of available commands.\n" 829+ "For more information on using this console type %4.\n"
jarolrod commented at 2:39 pm on May 15, 2021:0 "For more information on using this console, type %4.\n"
While here, we could improve the grammar by adding in a comma
in src/qt/rpcconsole.cpp:820 in b00aaf6134 outdated
819- "<br><span class=\"secwarning\"><br>" + 820- tr("WARNING: Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramifications of a command.") + 821- "</span>"), 822- true); 823+ static const QString welcome_message = 824+ /*: RPC console welcome message.
jarolrod commented at 2:44 pm on May 15, 2021:Any reason to make this multi-line? Could just be:
0//: RPC console welcome message. Placeholders %5 and %6 are style tags for the warning content
jarolrod commented at 6:48 pm on May 15, 2021:Now that this message is longer, it’s appropriate that it is multilinein src/qt/rpcconsole.cpp:811 in b00aaf6134 outdated
820- tr("WARNING: Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramifications of a command.") + 821- "</span>"), 822- true); 823+ static const QString welcome_message = 824+ /*: RPC console welcome message. 825+ Placeholders %5 and %6 are style tags for the warning content. */
jarolrod commented at 2:47 pm on May 15, 2021:Maybe we should expand upon this. args %1,%2,%3,%4 are written space-separated. This sets the precedent that these arguments are either followed or preceded with space. We should make it explicitly clear that %5 and %6 are not space separated from the rest of the text in this translator comment.
jarolrod commented at 2:47 pm on May 15, 2021: memberConcept ACKhebasto force-pushed on May 15, 2021jarolrod commented at 8:36 pm on May 15, 2021: memberACK a596381c7244157d15063a1c590a993045ab5179hebasto force-pushed on May 19, 2021jarolrod commented at 7:10 pm on May 20, 2021: memberre-ACK 67bef11e57f12ceacd3810008914c33b37c3c5bfDrahtBot added the label Needs rebase on May 20, 2021qt: Make RPC console welcome message translation-friendly 0f3d955a38hebasto force-pushed on May 20, 2021DrahtBot removed the label Needs rebase on May 20, 2021hebasto requested review from jonatack on May 29, 2021hebasto merged this on May 31, 2021hebasto closed this on May 31, 2021
hebasto deleted the branch on May 31, 2021sidhujag referenced this in commit df929d8c85 on Jun 1, 2021gwillen referenced this in commit 7f5524363f on Jun 1, 2022bitcoin-core locked this on Aug 16, 2022
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-03 17:20 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me