Skip to content

Commit

Permalink
spell: format and translate command line by line (issue #2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed Oct 17, 2023
1 parent ce5de07 commit f65556f
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions src/plugins/spell/spell-command.c
Expand Up @@ -485,28 +485,29 @@ spell_command_init ()
" || setdict -|<dict>[,<dict>...]"
" || deldict"
" || addword [<dict>] <word>"),
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"
Expand Down

0 comments on commit f65556f

Please sign in to comment.