From 2a4faf566b1e62e3513393ef0ddef9c3693d0876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 7 Sep 2023 09:34:41 +0200 Subject: [PATCH] core: format and translate commands line by line (issue #2005) --- src/core/wee-command.c | 2172 ++++++++++++++++++---------------------- 1 file changed, 1002 insertions(+), 1170 deletions(-) diff --git a/src/core/wee-command.c b/src/core/wee-command.c index b4d7ce9bc..85ea16251 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -7816,21 +7816,22 @@ command_init () N_("execute a command on all buffers"), /* TRANSLATORS: only text between angle brackets (eg: "") must be translated */ N_(""), - N_("command: command to execute (or text to send to buffer if " - "command does not start with '/')\n" - "\n" - "Examples:\n" - " set unread marker on all buffers:\n" - " /allbuf /buffer set unread"), + CMD_ARGS_DESC( + N_("command: command to execute (or text to send to buffer if " + "command does not start with \"/\")"), + "", + N_("Example:"), + AI(" /allbuf /buffer set unread")), "%(commands:/)", &command_allbuf, NULL, NULL); hook_command ( NULL, "away", N_("set or remove away status"), /* TRANSLATORS: only text between angle brackets (eg: "") must be translated */ N_("[-all] []"), - N_(" -all: set or remove away status on all connected servers\n" - "message: message for away (if no message is given, away status is " - "removed)"), + CMD_ARGS_DESC( + N_("raw[-all]: set or remove away status on all connected servers"), + N_("message: message for away (if no message is given, away status is " + "removed)")), "-all", &command_away, NULL, NULL); hook_command ( NULL, "bar", @@ -7845,57 +7846,50 @@ command_init () " || set