summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-12-27 17:15:59 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-12-27 17:15:59 +0000
commit39b5f07d6fccda70977fb86e490e216fe66abac8 (patch)
tree40e7832e7edb35ad616e42db2afc76f2f14f2aab /src/common
parentf4f2ec3668624b8cf29b9dab734f9069d90a8fec (diff)
downloadweechat-39b5f07d6fccda70977fb86e490e216fe66abac8.zip
Inline help is now translated with gettext
Diffstat (limited to 'src/common')
-rw-r--r--src/common/command.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/common/command.c b/src/common/command.c
index 6a5a1a663..bcb7899fe 100644
--- a/src/common/command.c
+++ b/src/common/command.c
@@ -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;
}