diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-07-09 17:08:26 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-07-09 17:08:26 +0000 |
commit | 96bd473887ca9265629b7f813ad8c2bfcf0724f2 (patch) | |
tree | b0303cd54c302a21eedd198b5ee6a83a5c47b006 /src/common | |
parent | 89d107c1a9f846c8b362a9fc4d443c08f073333e (diff) | |
download | weechat-96bd473887ca9265629b7f813ad8c2bfcf0724f2.zip |
Internal functions descriptions for keys are now displayed and translated
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/command.c | 7 | ||||
-rw-r--r-- | src/common/weechat.c | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/common/command.c b/src/common/command.c index 977568fee..beeb2cb83 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -1418,8 +1418,9 @@ weechat_cmd_key (char *arguments) i = 0; while (gui_key_functions[i].function_name) { - gui_printf (NULL, " %s\n", - gui_key_functions[i].function_name); + gui_printf (NULL, "%25s %s\n", + gui_key_functions[i].function_name, + _(gui_key_functions[i].description)); i++; } } @@ -1428,7 +1429,7 @@ weechat_cmd_key (char *arguments) arguments += 5; while (arguments[0] == ' ') arguments++; - if (strcmp (arguments, "-yes") == 0) + if (strcasecmp (arguments, "-yes") == 0) { gui_key_free_all (); gui_key_init (); diff --git a/src/common/weechat.c b/src/common/weechat.c index 0eb311d25..c3f9a8352 100644 --- a/src/common/weechat.c +++ b/src/common/weechat.c @@ -326,8 +326,9 @@ void wee_display_key_functions () i = 0; while (gui_key_functions[i].function_name) { - printf (" %s\n", - gui_key_functions[i].function_name); + printf ("* %s: %s\n", + gui_key_functions[i].function_name, + _(gui_key_functions[i].description)); i++; } } @@ -346,7 +347,7 @@ void wee_display_keys () for (ptr_key = gui_keys; ptr_key; ptr_key = ptr_key->next_key) { expanded_name = gui_key_get_expanded_name (ptr_key->key); - printf (" %20s => %s\n", + printf ("* %s => %s\n", (expanded_name) ? expanded_name : ptr_key->key, (ptr_key->function) ? gui_key_function_search_by_ptr (ptr_key->function) : ptr_key->command); if (expanded_name) |