1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

Inline help is now translated with gettext

This commit is contained in:
Sebastien Helleu
2004-12-27 17:15:59 +00:00
parent f4f2ec3668
commit 39b5f07d6f
6 changed files with 240 additions and 246 deletions
+7 -10
View File
@@ -1116,13 +1116,13 @@ weechat_cmd_help (int argc, char **argv)
for (i = 0; weechat_commands[i].command_name; i++)
gui_printf (NULL, " %s - %s\n",
weechat_commands[i].command_name,
weechat_commands[i].command_description);
_(weechat_commands[i].command_description));
gui_printf (NULL, _("> List of IRC commands:\n"));
for (i = 0; irc_commands[i].command_name; i++)
if (irc_commands[i].cmd_function_args || irc_commands[i].cmd_function_1arg)
gui_printf (NULL, " %s - %s\n",
irc_commands[i].command_name,
irc_commands[i].command_description);
_(irc_commands[i].command_description));
}
if (argc == 1)
{
@@ -1137,14 +1137,12 @@ weechat_cmd_help (int argc, char **argv)
gui_printf (NULL,
_("Syntax: /%s %s\n"),
weechat_commands[i].command_name,
(weechat_commands[i].
arguments) ? weechat_commands[i].
arguments : "");
(weechat_commands[i].arguments) ?
_(weechat_commands[i].arguments) : "");
if (weechat_commands[i].arguments_description)
{
gui_printf (NULL, "%s\n",
weechat_commands[i].
arguments_description);
_(weechat_commands[i].arguments_description));
}
return 0;
}
@@ -1159,12 +1157,11 @@ weechat_cmd_help (int argc, char **argv)
gui_printf (NULL, _("Syntax: /%s %s\n"),
irc_commands[i].command_name,
(irc_commands[i].arguments) ?
irc_commands[i].arguments : "");
_(irc_commands[i].arguments) : "");
if (irc_commands[i].arguments_description)
{
gui_printf (NULL, "%s\n",
irc_commands[i].
arguments_description);
_(irc_commands[i].arguments_description));
}
return 0;
}