From f65556f3b2d57e091c12e20538e2dc2f75149bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 9 Sep 2023 21:13:10 +0200 Subject: [PATCH] spell: format and translate command line by line (issue #2005) --- src/plugins/spell/spell-command.c | 45 ++++++++++++++++--------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/src/plugins/spell/spell-command.c b/src/plugins/spell/spell-command.c index 5e1875790f6..64209063844 100644 --- a/src/plugins/spell/spell-command.c +++ b/src/plugins/spell/spell-command.c @@ -485,28 +485,29 @@ spell_command_init () " || setdict -|[,...]" " || deldict" " || addword [] "), - N_(" enable: enable spell checker\n" - " disable: disable spell checker\n" - " toggle: toggle spell checker\n" - "listdict: show installed dictionaries\n" - " setdict: set dictionary for current buffer (multiple dictionaries " - "can be separated by a comma, the special value \"-\" disables " - "spell checking on current buffer)\n" - " deldict: delete dictionary used on current buffer\n" - " addword: add a word in personal dictionary\n" - "\n" - "Input line beginning with a '/' is not checked, except for some " - "commands (see /set spell.check.commands).\n" - "\n" - "To enable spell checker on all buffers, use option \"default_dict\", " - "then enable spell checker, for example:\n" - " /set spell.check.default_dict \"en\"\n" - " /spell enable\n" - "\n" - "To display a list of suggestions in a bar, use item " - "\"spell_suggest\".\n" - "\n" - "Default key to toggle spell checker is alt-s."), + WEECHAT_CMD_ARGS_DESC( + N_("raw[enable]: enable spell checker"), + N_("raw[disable]: disable spell checker"), + N_("raw[toggle]: toggle spell checker"), + N_("raw[listdict]: show installed dictionaries"), + N_("raw[setdict]: set dictionary for current buffer (multiple dictionaries " + "can be separated by a comma, the special value \"-\" disables " + "spell checking on current buffer)"), + N_("raw[deldict]: delete dictionary used on current buffer"), + N_("raw[addword]: add a word in personal dictionary"), + "", + N_("Input line beginning with a \"/\" is not checked, except for some " + "commands (see /set spell.check.commands)."), + "", + N_("To enable spell checker on all buffers, use option \"default_dict\", " + "then enable spell checker, for example:"), + AI(" /set spell.check.default_dict \"en\""), + AI(" /spell enable"), + "", + N_("To display a list of suggestions in a bar, use item " + "\"spell_suggest\"."), + "", + N_("Default key to toggle spell checker is alt-s.")), "enable" " || disable" " || toggle"