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-core#331: Make RPC console welcome message translation-friendly
0f3d955 qt: Make RPC console welcome message translation-friendly (Hennadii Stepanov)
Pull request description:
The best practice is do not split a translatable multi-line message into single lines. This helps translators to follow the context.
ACKs for top commit:
jarolrod:
re-ACK 0f3d955
Tree-SHA512: 30911ff3a972a7787804bb8b27d0b77bfff15939bb478c199261866bfb55d9acd12ab4d44b8b9fc1d4898222cabc4007cc897f9b65728924d121f31e914c44ac
tr("Type %1 for an overview of available commands.").arg("<b>help</b>") +
830
-
"<br>" +
831
-
tr("For more information on using this console type %1.").arg("<b>help-console</b>") +
832
-
"<br><span class=\"secwarning\"><br>" +
833
-
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.") +
834
-
"</span>",
835
-
true);
819
+
staticconst QString welcome_message =
820
+
/*: RPC console welcome message.
821
+
Placeholders %7 and %8 are style tags for the warning content, and
822
+
they are not space separated from the rest of the text intentionally. */
823
+
tr("Welcome to the %1 RPC console.\n"
824
+
"Use up and down arrows to navigate history, and %2 to clear screen.\n"
825
+
"Use %3 and %4 to increase or decrease the font size.\n"
826
+
"Type %5 for an overview of available commands.\n"
827
+
"For more information on using this console, type %6.\n"
828
+
"\n"
829
+
"%7WARNING: Scammers have been active, telling users to type"
830
+
" commands here, stealing their wallet contents. Do not use this console"
831
+
" without fully understanding the ramifications of a command.%8")
0 commit comments