diff --git a/ChangeLog b/ChangeLog index 970616e67..f9eee484b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,7 @@ Version 0.3.2 (under dev!) number * api: add missing infos in functions buffer_get_integer / buffer_get_string and in buffer infolist +* api: add description of arguments for functions hook_info and hook_infolist * irc: fix crash with SSL connection if option ssl_cert is set (bug #28752) * irc: fix bug with SSL connection (fails sometimes when ssl_verify is on) (bug #28741) diff --git a/doc/docgen.pl b/doc/docgen.pl index ba98eca68..5a8fa71b6 100644 --- a/doc/docgen.pl +++ b/doc/docgen.pl @@ -100,6 +100,9 @@ my @ignore_completions_items = ("docgen.*", "jabber.*", "weeget.*"); +# for gettext +my $d; + # -------------------------------[ init ]-------------------------------------- weechat::register("docgen", "FlashCode ", $version, @@ -114,6 +117,12 @@ weechat::config_set_plugin("path", $default_path) # ----------------------------------------------------------------------------- +# gettext +sub weechat_gettext +{ + return $d->get($_[0]); +} + # get list of commands in a hash with 3 indexes: plugin, command, xxx sub get_commands { @@ -202,6 +211,7 @@ sub get_infos if ($ignore ne 1) { $infos{$plugin}{$info_name}{"description"} = weechat::infolist_string($infolist, "description"); + $infos{$plugin}{$info_name}{"args_description"} = weechat::infolist_string($infolist, "args_description"); } } weechat::infolist_free($infolist); @@ -232,6 +242,8 @@ sub get_infolists if ($ignore ne 1) { $infolists{$plugin}{$infolist_name}{"description"} = weechat::infolist_string($infolist, "description"); + $infolists{$plugin}{$infolist_name}{"pointer_description"} = weechat::infolist_string($infolist, "pointer_description"); + $infolists{$plugin}{$infolist_name}{"args_description"} = weechat::infolist_string($infolist, "args_description"); } } weechat::infolist_free($infolist); @@ -326,7 +338,7 @@ sub docgen my $num_files_completions_updated = 0; setlocale(LC_MESSAGES, $locale.".UTF-8"); - my $d = Locale::gettext->domain_raw("weechat"); + $d = Locale::gettext->domain_raw("weechat"); $d->codeset("UTF-8"); $d->dir(weechat::info_get("weechat_localedir", "")); @@ -425,21 +437,21 @@ sub docgen } if ($type eq "string") { - $values = $d->get("any string") if ($max <= 0); - $values = $d->get("any char") if ($max == 1); - $values = $d->get("any string")." (".$d->get("max chars").": ".$max.")" if ($max > 1); + $values = weechat_gettext("any string") if ($max <= 0); + $values = weechat_gettext("any char") if ($max == 1); + $values = weechat_gettext("any string")." (".weechat_gettext("max chars").": ".$max.")" if ($max > 1); $default_value = "\"".escape_string($default_value)."\""; } if ($type eq "color") { - $values = $d->get("a color name"); + $values = weechat_gettext("a color name"); } print FILE "* *".$config.".".$section.".".$option."*\n"; - print FILE "** ".$d->get("description").": ".$description."\n"; - print FILE "** ".$d->get("type").": ".$type_nls."\n"; - print FILE "** ".$d->get("values").": ".$values." " - ."(".$d->get("default value").": ".$default_value.")\n\n"; + print FILE "** ".weechat_gettext("description").": ".$description."\n"; + print FILE "** ".weechat_gettext("type").": ".$type_nls."\n"; + print FILE "** ".weechat_gettext("values").": ".$values." " + ."(".weechat_gettext("default value").": ".$default_value.")\n\n"; } } #weechat::print("", "docgen: file ok: '$filename'"); @@ -468,18 +480,22 @@ sub docgen $filename = $dir."plugin_api/infos.txt"; if (open(FILE, ">".$filename.".tmp")) { - print FILE "[width=\"65%\",cols=\"^1,^2,8\",options=\"header\"]\n"; + print FILE "[width=\"100%\",cols=\"^1,^2,6,6\",options=\"header\"]\n"; print FILE "|========================================\n"; - print FILE "| ".$d->get("Plugin")." | ".$d->get("Name")." | ".$d->get("Description")."\n"; + print FILE "| ".weechat_gettext("Plugin")." | ".weechat_gettext("Name") + ." | ".weechat_gettext("Description")." | ".weechat_gettext("Arguments")."\n\n"; foreach my $plugin (sort keys %plugin_infos) { foreach my $info (sort keys %{$plugin_infos{$plugin}}) { my $description = $plugin_infos{$plugin}{$info}{"description"}; $description = $d->get($description) if ($description ne ""); + my $args_description = $plugin_infos{$plugin}{$info}{"args_description"}; + $args_description = $d->get($args_description) if ($args_description ne ""); + $args_description = "-" if ($args_description eq ""); print FILE "| ".escape_table($plugin)." | ".escape_table($info) - ." | ".escape_table($description)."\n\n"; + ." | ".escape_table($description)." | ".escape_table($args_description)."\n\n"; } } print FILE "|========================================\n"; @@ -508,18 +524,27 @@ sub docgen $filename = $dir."plugin_api/infolists.txt"; if (open(FILE, ">".$filename.".tmp")) { - print FILE "[width=\"65%\",cols=\"^1,^2,8\",options=\"header\"]\n"; + print FILE "[width=\"100%\",cols=\"^1,^2,5,5,5\",options=\"header\"]\n"; print FILE "|========================================\n"; - print FILE "| ".$d->get("Plugin")." | ".$d->get("Name")." | ".$d->get("Description")."\n"; + print FILE "| ".weechat_gettext("Plugin")." | ".weechat_gettext("Name") + ." | ".weechat_gettext("Description")." | ".weechat_gettext("Pointer") + ." | ".weechat_gettext("Arguments")."\n\n"; foreach my $plugin (sort keys %plugin_infolists) { foreach my $infolist (sort keys %{$plugin_infolists{$plugin}}) { my $description = $plugin_infolists{$plugin}{$infolist}{"description"}; $description = $d->get($description) if ($description ne ""); + my $pointer_description = $plugin_infolists{$plugin}{$infolist}{"pointer_description"}; + $pointer_description = $d->get($pointer_description) if ($pointer_description ne ""); + $pointer_description = "-" if ($pointer_description eq ""); + my $args_description = $plugin_infolists{$plugin}{$infolist}{"args_description"}; + $args_description = $d->get($args_description) if ($args_description ne ""); + $args_description = "-" if ($args_description eq ""); print FILE "| ".escape_table($plugin)." | ".escape_table($infolist) - ." | ".escape_table($description)."\n\n"; + ." | ".escape_table($description)." | ".escape_table($pointer_description) + ." | ".escape_table($args_description)."\n\n"; } } print FILE "|========================================\n"; @@ -550,7 +575,8 @@ sub docgen { print FILE "[width=\"65%\",cols=\"^1,^2,8\",options=\"header\"]\n"; print FILE "|========================================\n"; - print FILE "| ".$d->get("Plugin")." | ".$d->get("Name")." | ".$d->get("Description")."\n"; + print FILE "| ".weechat_gettext("Plugin")." | ".weechat_gettext("Name") + ." | ".weechat_gettext("Description")."\n\n"; foreach my $plugin (sort keys %plugin_completions) { foreach my $completion_item (sort keys %{$plugin_completions{$plugin}}) diff --git a/doc/en/autogen/plugin_api/completions.txt b/doc/en/autogen/plugin_api/completions.txt index 02f0d0b6e..5fefd5447 100644 --- a/doc/en/autogen/plugin_api/completions.txt +++ b/doc/en/autogen/plugin_api/completions.txt @@ -1,6 +1,7 @@ [width="65%",cols="^1,^2,8",options="header"] |======================================== | Plugin | Name | Description + | alias | alias | list of aliases | aspell | aspell_langs | list of supported langs for aspell diff --git a/doc/en/autogen/plugin_api/infolists.txt b/doc/en/autogen/plugin_api/infolists.txt index 69dcbbab0..c49bb5bbb 100644 --- a/doc/en/autogen/plugin_api/infolists.txt +++ b/doc/en/autogen/plugin_api/infolists.txt @@ -1,58 +1,59 @@ -[width="65%",cols="^1,^2,8",options="header"] +[width="100%",cols="^1,^2,5,5,5",options="header"] |======================================== -| Plugin | Name | Description -| alias | alias | list of aliases +| Plugin | Name | Description | Pointer | Arguments -| irc | irc_channel | list of channels for an IRC server +| alias | alias | list of aliases | alias pointer (optional) | alias name (can start or end with "*" as joker) (optional) -| irc | irc_ignore | list of IRC ignores +| irc | irc_channel | list of channels for an IRC server | channel pointer (optional) | server name -| irc | irc_nick | list of nicks for an IRC channel +| irc | irc_ignore | list of IRC ignores | ignore pointer (optional) | - -| irc | irc_server | list of IRC servers +| irc | irc_nick | list of nicks for an IRC channel | nick pointer (optional) | server,channel,nick (channel and nick are optional) -| logger | logger_buffer | list of logger buffers +| irc | irc_server | list of IRC servers | server pointer (optional) | server name (can start or end with "*" as joker) (optional) -| lua | lua_script | list of scripts +| logger | logger_buffer | list of logger buffers | logger pointer (optional) | - -| perl | perl_script | list of scripts +| lua | lua_script | list of scripts | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| python | python_script | list of scripts +| perl | perl_script | list of scripts | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| relay | relay | list of relay clients +| python | python_script | list of scripts | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| ruby | ruby_script | list of scripts +| relay | relay | list of relay clients | relay pointer (optional) | - -| tcl | tcl_script | list of scripts +| ruby | ruby_script | list of scripts | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| weechat | bar | list of bars +| tcl | tcl_script | list of scripts | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| weechat | bar_item | list of bar items +| weechat | bar | list of bars | bar pointer (optional) | bar name (can start or end with "*" as joker) (optional) -| weechat | bar_window | list of bar windows +| weechat | bar_item | list of bar items | bar item pointer (optional) | bar item name (can start or end with "*" as joker) (optional) -| weechat | buffer | list of buffers +| weechat | bar_window | list of bar windows | bar window pointer (optional) | - -| weechat | buffer_lines | lines of a buffer +| weechat | buffer | list of buffers | buffer pointer (optional) | buffer name (can start or end with "*" as joker) (optional) -| weechat | filter | list of filters +| weechat | buffer_lines | lines of a buffer | buffer pointer | - -| weechat | history | history of commands +| weechat | filter | list of filters | - | filter name (can start or end with "*" as joker) (optional) -| weechat | hook | list of hooks +| weechat | history | history of commands | buffer pointer (if not set, return global history) (optional) | - -| weechat | hotlist | list of buffers in hotlist +| weechat | hook | list of hooks | - | hook type: command, timer, .. (optional) -| weechat | key | list of key bindings +| weechat | hotlist | list of buffers in hotlist | - | - -| weechat | nicklist | nicks in nicklist for a buffer +| weechat | key | list of key bindings | - | - -| weechat | option | list of options +| weechat | nicklist | nicks in nicklist for a buffer | buffer pointer | nick_xxx or group_xxx to get only nick/group xxx (optional) -| weechat | plugin | list of plugins +| weechat | option | list of options | - | option name (can start or end with "*" as joker) (optional) -| weechat | window | list of windows +| weechat | plugin | list of plugins | plugin pointer (optional) | plugin name (can start or end with "*" as joker) (optional) -| xfer | xfer | list of xfer +| weechat | window | list of windows | window pointer (optional) | window name (can start or end with "*" as joker) (optional) + +| xfer | xfer | list of xfer | xfer pointer (optional) | - |======================================== diff --git a/doc/en/autogen/plugin_api/infos.txt b/doc/en/autogen/plugin_api/infos.txt index e1b883e2e..32933937c 100644 --- a/doc/en/autogen/plugin_api/infos.txt +++ b/doc/en/autogen/plugin_api/infos.txt @@ -1,44 +1,45 @@ -[width="65%",cols="^1,^2,8",options="header"] +[width="100%",cols="^1,^2,6,6",options="header"] |======================================== -| Plugin | Name | Description -| fifo | fifo_filename | name of FIFO pipe +| Plugin | Name | Description | Arguments -| irc | irc_buffer | get buffer pointer for an IRC server/channel +| fifo | fifo_filename | name of FIFO pipe | - -| irc | irc_is_channel | 1 if string is an IRC channel +| irc | irc_buffer | get buffer pointer for an IRC server/channel/nick | server,channel,nick (channel and nicks are optional) -| irc | irc_nick | get current nick on a server +| irc | irc_is_channel | 1 if string is an IRC channel | channel name -| irc | irc_nick_color | get nick color +| irc | irc_nick | get current nick on a server | server name -| irc | irc_nick_from_host | get nick from IRC host +| irc | irc_nick_color | get nick color | nickname -| weechat | charset_internal | WeeChat internal charset +| irc | irc_nick_from_host | get nick from IRC host | IRC host (like `:nick!name@server.com`) -| weechat | charset_terminal | terminal charset +| weechat | charset_internal | WeeChat internal charset | - -| weechat | date | WeeChat compilation date +| weechat | charset_terminal | terminal charset | - -| weechat | dir_separator | directory separator +| weechat | date | WeeChat compilation date | - -| weechat | filters_enabled | 1 if filters are enabled +| weechat | dir_separator | directory separator | - -| weechat | inactivity | keyboard inactivity (seconds) +| weechat | filters_enabled | 1 if filters are enabled | - -| weechat | version | WeeChat version +| weechat | inactivity | keyboard inactivity (seconds) | - -| weechat | version_number | WeeChat version (as number) +| weechat | version | WeeChat version | - -| weechat | weechat_dir | WeeChat directory +| weechat | version_number | WeeChat version (as number) | - -| weechat | weechat_libdir | WeeChat "lib" directory +| weechat | weechat_dir | WeeChat directory | - -| weechat | weechat_localedir | WeeChat "locale" directory +| weechat | weechat_libdir | WeeChat "lib" directory | - -| weechat | weechat_sharedir | WeeChat "share" directory +| weechat | weechat_localedir | WeeChat "locale" directory | - -| weechat | weechat_site | WeeChat site +| weechat | weechat_sharedir | WeeChat "share" directory | - -| weechat | weechat_site_download | WeeChat site, download page +| weechat | weechat_site | WeeChat site | - + +| weechat | weechat_site_download | WeeChat site, download page | - |======================================== diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index 9d611550a..df447f3d8 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -4887,7 +4887,7 @@ struct t_hook *weechat_hook_command_run (const char *command, Arguments: -* 'command': command to hook, may start or end with "*" as joker +* 'command': command to hook, can start or end with "*" as joker * 'callback': function called when command is run, arguments: ** 'void *data': pointer ** 'struct t_gui_buffer *buffer': buffer where command is executed @@ -6056,6 +6056,7 @@ Prototype: ---------------------------------------- struct t_hook *weechat_hook_info (const char *info_name, const char *description, + const char *args_description, const char *(*callback)(void *data, const char *info_name, const char *arguments), @@ -6066,6 +6067,7 @@ Arguments: * 'info_name': name of info * 'description': description +* 'args_description': description of arguments (optional, can be NULL) * 'callback': function called when info is asked, arguments: ** 'void *data': pointer ** 'const char *info_name': name of info @@ -6089,8 +6091,9 @@ my_info_cb (void *data, const char *info_name, const char *arguments) /* add info "my_info" */ struct t_hook *my_info_hook = weechat_hook_info ("my_info", - "Some info", - &my_info_cb, NULL); + "Some info", + "Info about arguments", + &my_info_cb, NULL); ---------------------------------------- Script (Python): @@ -6098,13 +6101,14 @@ Script (Python): [source,python] ---------------------------------------- # prototype -hook = weechat.hook_info(info_name, description, callback, callback_data) +hook = weechat.hook_info(info_name, description, args_description, callback, callback_data) # example def my_info_cb(data, info_name, arguments): return "some_info" -hook = weechat.hook_info("my_info", "Some info", "my_info_cb", "") +hook = weechat.hook_info("my_info", "Some info", "Info about arguments", + "my_info_cb", "") ---------------------------------------- weechat_hook_infolist @@ -6118,6 +6122,8 @@ Prototype: ---------------------------------------- struct t_hook *weechat_hook_infolist (const char *infolist_name, const char *description, + const char *pointer_description, + const char *args_description, const char *(*callback)(void *data, const char *infolist_name, void *pointer, @@ -6129,6 +6135,8 @@ Arguments: * 'infolist_name': name of infolist * 'description': description +* 'pointer_description': description of pointer (optional, can be NULL) +* 'args_description': description of arguments (optional, can be NULL) * 'callback': function called when infolist is asked, arguments: ** 'void *data': pointer ** 'const char *infolist_name': name of infolist @@ -6160,6 +6168,8 @@ my_infolist_cb (void *data, const char *infolist_name, void *pointer, /* add infolist "my_infolist" */ struct t_hook *my_infolist = weechat_hook_infolist ("my_infolist", "Infolist with some data", + "Info about pointer", + "Info about arguments", &my_infolist_cb, NULL); ---------------------------------------- @@ -6168,7 +6178,8 @@ Script (Python): [source,python] ---------------------------------------- # prototype -hook = weechat.hook_infolist(infolist_name, description, callback, callback_data) +hook = weechat.hook_infolist(infolist_name, description, pointer_description, + args_description, callback, callback_data) # example def my_infolist_cb(data, infolist_name, pointer, arguments): @@ -6176,7 +6187,9 @@ def my_infolist_cb(data, infolist_name, pointer, arguments): # ... return my_infolist -hook = weechat.hook_infolist("my_infolist", "Infolist with some data", "my_infolist_cb", "") +hook = weechat.hook_infolist("my_infolist", "Infolist with some data", + "Info about pointer", "Info about arguments", + "my_infolist_cb", "") ---------------------------------------- weechat_unhook @@ -6800,7 +6813,7 @@ Arguments: "-": disable hotlist (global setting, buffer pointer is not used) + priority: add buffer to hotlist with this priority -| unread | (N/A) | +| unread | - | set unread marker after last line of buffer | display | "1", "auto" | @@ -6853,7 +6866,7 @@ Arguments: bind a new key 'xxx', specific to this buffer, value is command to execute for this key -| key_unbind_xxx | (N/A) | +| key_unbind_xxx | - | unbind key 'xxx' for this buffer | input | any string | @@ -6871,7 +6884,7 @@ Arguments: set new value for local variable 'xxx' (variable is created if it does not exist) -| localvar_del_xxx | (N/A) | +| localvar_del_xxx | - | remove local variable 'xxx' |======================================== diff --git a/doc/fr/autogen/plugin_api/completions.txt b/doc/fr/autogen/plugin_api/completions.txt index 56a3bf961..f43d14784 100644 --- a/doc/fr/autogen/plugin_api/completions.txt +++ b/doc/fr/autogen/plugin_api/completions.txt @@ -1,6 +1,7 @@ [width="65%",cols="^1,^2,8",options="header"] |======================================== -| Plugin | Name | Description +| Extension | Nom | Description + | alias | alias | liste des alias | aspell | aspell_langs | liste des langues supportées pour aspell diff --git a/doc/fr/autogen/plugin_api/infolists.txt b/doc/fr/autogen/plugin_api/infolists.txt index 820e5db84..9e18f46e3 100644 --- a/doc/fr/autogen/plugin_api/infolists.txt +++ b/doc/fr/autogen/plugin_api/infolists.txt @@ -1,58 +1,59 @@ -[width="65%",cols="^1,^2,8",options="header"] +[width="100%",cols="^1,^2,5,5,5",options="header"] |======================================== -| Plugin | Name | Description -| alias | alias | liste des alias +| Extension | Nom | Description | Pointeur | Paramètres -| irc | irc_channel | liste des canaux pour un serveur IRC +| alias | alias | liste des alias | pointeur vers l'alias (optionnel) | nom d'alias (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| irc | irc_ignore | liste des ignores IRC +| irc | irc_channel | liste des canaux pour un serveur IRC | pointeur vers le canal (optionnel) | nom de serveur -| irc | irc_nick | liste des pseudos pour un canal IRC +| irc | irc_ignore | liste des ignores IRC | pointeur vers l'ignore (optionnel) | - -| irc | irc_server | liste des serveurs IRC +| irc | irc_nick | liste des pseudos pour un canal IRC | pointeur vers le pseudo (optionnel) | serveur,canal,pseudo (canal et pseudo sont optionnels) -| logger | logger_buffer | liste des enregistreurs de tampons (loggers) +| irc | irc_server | liste des serveurs IRC | pointeur vers le serveur (optionnel) | nom de serveur (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| lua | lua_script | liste des scripts +| logger | logger_buffer | liste des enregistreurs de tampons (loggers) | pointeur vers le logger (optionnel) | - -| perl | perl_script | liste des scripts +| lua | lua_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| python | python_script | liste des scripts +| perl | perl_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| relay | relay | liste des clients pour le relai +| python | python_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| ruby | ruby_script | liste des scripts +| relay | relay | liste des clients pour le relai | pointeur vers le relay (optionnel) | - -| tcl | tcl_script | liste des scripts +| ruby | ruby_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| weechat | bar | liste des barres +| tcl | tcl_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| weechat | bar_item | liste des objets de barres +| weechat | bar | liste des barres | pointeur vers la barre (optionnel) | nom de barre (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| weechat | bar_window | liste des fenêtres de barre +| weechat | bar_item | liste des objets de barres | pointeur vers l'objet de barre (optionnel) | nom d'objet de barre (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| weechat | buffer | liste des tampons +| weechat | bar_window | liste des fenêtres de barre | pointeur vers la fenêtre de barre (optionnel) | - -| weechat | buffer_lines | lignes d'un tampon +| weechat | buffer | liste des tampons | pointeur vers le tampon (optionnel) | nom de tampon (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| weechat | filter | liste des filtres +| weechat | buffer_lines | lignes d'un tampon | pointeur vers le tampon | - -| weechat | history | historique des commandes +| weechat | filter | liste des filtres | - | nom de filtre (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| weechat | hook | liste des hooks +| weechat | history | historique des commandes | pointeur vers le tampon (si non défini, retourne l'historique global) (optionnel) | - -| weechat | hotlist | liste des tampons dans la hotlist +| weechat | hook | liste des hooks | - | type de hook: command, timer, .. (optionnel) -| weechat | key | liste des associations de touches +| weechat | hotlist | liste des tampons dans la hotlist | - | - -| weechat | nicklist | pseudos dans la liste des pseudos pour un tampon +| weechat | key | liste des associations de touches | - | - -| weechat | option | liste des options +| weechat | nicklist | pseudos dans la liste des pseudos pour un tampon | pointeur vers le tampon | nick_xxx ou group_xxx pour avoir seulement le pseudo/groupe xxx (optionnel) -| weechat | plugin | liste des extensions +| weechat | option | liste des options | - | nom d'option (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| weechat | window | liste des fenêtres +| weechat | plugin | liste des extensions | pointeur vers l'extension (optionnel) | nom d'extension (peut démarrer ou se terminer par "*" comme joker) (optionnel) -| xfer | xfer | liste des xfer +| weechat | window | liste des fenêtres | pointeur vers la fenêtre (optionnel) | nom de fenêtre (peut démarrer ou se terminer par "*" comme joker) (optionnel) + +| xfer | xfer | liste des xfer | pointeur vers le xfer (optionnel) | - |======================================== diff --git a/doc/fr/autogen/plugin_api/infos.txt b/doc/fr/autogen/plugin_api/infos.txt index 6d96ace99..cead0fda5 100644 --- a/doc/fr/autogen/plugin_api/infos.txt +++ b/doc/fr/autogen/plugin_api/infos.txt @@ -1,44 +1,45 @@ -[width="65%",cols="^1,^2,8",options="header"] +[width="100%",cols="^1,^2,6,6",options="header"] |======================================== -| Plugin | Name | Description -| fifo | fifo_filename | nom du tube FIFO +| Extension | Nom | Description | Paramètres -| irc | irc_buffer | retourne le pointeur vers le tampon pour un serveur/canal IRC +| fifo | fifo_filename | nom du tube FIFO | - -| irc | irc_is_channel | 1 si la chaîne est un canal IRC +| irc | irc_buffer | retourne le pointeur vers le tampon pour un serveur/canal/pseudo IRC | serveur,canal,pseudo (canal et pseudo sont optionnels) -| irc | irc_nick | retourne le pseudo utilisé actuellement sur un serveur +| irc | irc_is_channel | 1 si la chaîne est un canal IRC | nom de canal -| irc | irc_nick_color | retourne la couleur du pseudo +| irc | irc_nick | retourne le pseudo utilisé actuellement sur un serveur | nom de serveur -| irc | irc_nick_from_host | retourne le pseudo à partir d'un host IRC +| irc | irc_nick_color | retourne la couleur du pseudo | pseudo -| weechat | charset_internal | charset interne à WeeChat +| irc | irc_nick_from_host | retourne le pseudo à partir d'un host IRC | host IRC (comme `:pseudo!nom@serveur.com`) -| weechat | charset_terminal | charset du terminal +| weechat | charset_internal | charset interne à WeeChat | - -| weechat | date | date de compilation de WeeChat +| weechat | charset_terminal | charset du terminal | - -| weechat | dir_separator | séparateur de répertoire +| weechat | date | date de compilation de WeeChat | - -| weechat | filters_enabled | 1 si les filtres sont activés +| weechat | dir_separator | séparateur de répertoire | - -| weechat | inactivity | inactivité du clavier (secondes) +| weechat | filters_enabled | 1 si les filtres sont activés | - -| weechat | version | version de WeeChat +| weechat | inactivity | inactivité du clavier (secondes) | - -| weechat | version_number | version de WeeChat (sous forme de nombre) +| weechat | version | version de WeeChat | - -| weechat | weechat_dir | répertoire de WeeChat +| weechat | version_number | version de WeeChat (sous forme de nombre) | - -| weechat | weechat_libdir | répertoire "lib" de WeeChat +| weechat | weechat_dir | répertoire de WeeChat | - -| weechat | weechat_localedir | répertoire "locale" de WeeChat +| weechat | weechat_libdir | répertoire "lib" de WeeChat | - -| weechat | weechat_sharedir | répertoire "share" de WeeChat +| weechat | weechat_localedir | répertoire "locale" de WeeChat | - -| weechat | weechat_site | site WeeChat +| weechat | weechat_sharedir | répertoire "share" de WeeChat | - -| weechat | weechat_site_download | site WeeChat, page de téléchargement +| weechat | weechat_site | site WeeChat | - + +| weechat | weechat_site_download | site WeeChat, page de téléchargement | - |======================================== diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index f77f03048..e5e47c402 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -6142,6 +6142,7 @@ Prototype : ---------------------------------------- struct t_hook *weechat_hook_info (const char *info_name, const char *description, + const char *args_description, const char *(*callback)(void *data, const char *info_name, const char *arguments), @@ -6152,6 +6153,7 @@ Paramètres : * 'info_name' : nom de l'information * 'description' : description +* 'args_description' : description des paramètres (optionnel, peut être NULL) * 'callback' : fonction appelée quand l'information est demandée, paramètres : ** 'void *data' : pointeur ** 'const char *info_name' : nom de l'information @@ -6178,6 +6180,7 @@ my_info_cb (void *data, const char *info_name, const char *arguments) /* ajoute l'information "mon_info" */ struct t_hook *my_info_hook = weechat_hook_info ("mon_info", "Une information", + "Info sur les paramètres", &my_info_cb, NULL); ---------------------------------------- @@ -6186,19 +6189,22 @@ Script (Python): [source,python] ---------------------------------------- # prototype -hook = weechat.hook_info(info_name, description, callback, callback_data) +hook = weechat.hook_info(info_name, description, args_description, + callback, callback_data) # exemple def my_info_cb(data, info_name, arguments): return "some_info" -hook = weechat.hook_info("mon_info", "Une information", "my_info_cb", "") +hook = weechat.hook_info("mon_info", "Une information", "Info sur les paramètres", + "my_info_cb", "") ---------------------------------------- weechat_hook_infolist ^^^^^^^^^^^^^^^^^^^^^ -Accroche une infolist. +Accroche une infolist : le "callback" retournera un pointeur vers l'infolist +demandée. Prototype : @@ -6206,6 +6212,8 @@ Prototype : ---------------------------------------- struct t_hook *weechat_hook_infolist (const char *infolist_name, const char *description, + const char *pointer_description, + const char *args_description, const char *(*callback)(void *data, const char *infolist_name, void *pointer, @@ -6217,6 +6225,8 @@ Paramètres : * 'infolist_name' : nom de l'infolist * 'description' : description +* 'pointer_description' : description du pointeur (optionnel, peut être NULL) +* 'args_description' : description des paramètres (optionnel, peut être NULL) * 'callback' : fonction appelée quand l'infolist est demandée, paramètres : ** 'void *data' : pointeur ** 'const char *infolist_name' : nom de l'infolist @@ -6249,6 +6259,8 @@ my_infolist_cb (void *data, const char *infolist_name, void *pointer, /* ajoute l'infolist "mon_infolist" */ struct t_hook *my_infolist = weechat_hook_infolist ("mon_infolist", "Mon infolist", + "Info sur le pointeur", + "Info sur les paramètres", &my_infolist_cb, NULL); ---------------------------------------- @@ -6257,7 +6269,8 @@ Script (Python): [source,python] ---------------------------------------- # prototype -hook = weechat.hook_infolist(infolist_name, description, callback, callback_data) +hook = weechat.hook_infolist(infolist_name, description, pointer_description, + args_description, callback, callback_data) # exemple def my_infolist_cb(data, infolist_name, pointer, arguments): @@ -6265,7 +6278,9 @@ def my_infolist_cb(data, infolist_name, pointer, arguments): # ... return my_infolist -hook = weechat.hook_infolist("mon_infolist", "Mon infolist", "my_infolist_cb", "") +hook = weechat.hook_infolist("mon_infolist", "Mon infolist", + "Info sur le pointeur", "Info sur les paramètres", + "my_infolist_cb", "") ---------------------------------------- weechat_unhook @@ -6896,7 +6911,7 @@ Paramètres : pas utilisé) + priorité : ajouter ce tampon dans la hotlist avec cette priorité -| unread | (sans objet) | +| unread | - | définit le marqueur de données non lues après la dernière ligne du tampon | display | "1", "auto" | @@ -6953,7 +6968,7 @@ Paramètres : associe la nouvelle touche 'xxx', spécifique à ce tampon, la valeur est la commande à exécuter pour cette touche -| key_unbind_xxx | (sans objet) | +| key_unbind_xxx | - | supprime la touche 'xxx' pour ce tampon | input | toute chaîne | @@ -6972,7 +6987,7 @@ Paramètres : change la valeur de la variable locale 'xxx' (la variable est créée si elle n'existe pas) -| localvar_del_xxx | N/A | +| localvar_del_xxx | - | supprime la variable locale 'xxx' |======================================== diff --git a/doc/it/autogen/plugin_api/completions.txt b/doc/it/autogen/plugin_api/completions.txt index 3c5fe01c7..4cb3c4599 100644 --- a/doc/it/autogen/plugin_api/completions.txt +++ b/doc/it/autogen/plugin_api/completions.txt @@ -1,6 +1,7 @@ [width="65%",cols="^1,^2,8",options="header"] |======================================== | Plugin | Name | Description + | alias | alias | elenco di alias | aspell | aspell_langs | elenco di lingue supportate per aspell diff --git a/doc/it/autogen/plugin_api/infolists.txt b/doc/it/autogen/plugin_api/infolists.txt index b83e928ff..8cc8e67ab 100644 --- a/doc/it/autogen/plugin_api/infolists.txt +++ b/doc/it/autogen/plugin_api/infolists.txt @@ -1,58 +1,59 @@ -[width="65%",cols="^1,^2,8",options="header"] +[width="100%",cols="^1,^2,5,5,5",options="header"] |======================================== -| Plugin | Name | Description -| alias | alias | elenco di alias +| Plugin | Name | Description | Pointer | Arguments -| irc | irc_channel | elenco dei canali per un server IRC +| alias | alias | elenco di alias | alias pointer (optional) | alias name (can start or end with "*" as joker) (optional) -| irc | irc_ignore | elenco di ignore IRC +| irc | irc_channel | elenco dei canali per un server IRC | channel pointer (optional) | server name -| irc | irc_nick | elenco dei nick per un canale IRC +| irc | irc_ignore | elenco di ignore IRC | ignore pointer (optional) | - -| irc | irc_server | elenco di server IRC +| irc | irc_nick | elenco dei nick per un canale IRC | nick pointer (optional) | server,channel,nick (channel and nick are optional) -| logger | logger_buffer | elenco dei buffer logger +| irc | irc_server | elenco di server IRC | server pointer (optional) | server name (can start or end with "*" as joker) (optional) -| lua | lua_script | elenco degli script +| logger | logger_buffer | elenco dei buffer logger | logger pointer (optional) | - -| perl | perl_script | elenco degli script +| lua | lua_script | elenco degli script | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| python | python_script | elenco degli script +| perl | perl_script | elenco degli script | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| relay | relay | elenco di client relay +| python | python_script | elenco degli script | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| ruby | ruby_script | elenco degli script +| relay | relay | elenco di client relay | relay pointer (optional) | - -| tcl | tcl_script | elenco degli script +| ruby | ruby_script | elenco degli script | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| weechat | bar | elenco delle barre +| tcl | tcl_script | elenco degli script | script pointer (optional) | script name (can start or end with "*" as joker) (optional) -| weechat | bar_item | elenco degli elementi barra +| weechat | bar | elenco delle barre | bar pointer (optional) | bar name (can start or end with "*" as joker) (optional) -| weechat | bar_window | elenco delle finestre barra +| weechat | bar_item | elenco degli elementi barra | bar item pointer (optional) | bar item name (can start or end with "*" as joker) (optional) -| weechat | buffer | elenco dei buffer +| weechat | bar_window | elenco delle finestre barra | bar window pointer (optional) | - -| weechat | buffer_lines | righe di un buffer +| weechat | buffer | elenco dei buffer | buffer pointer (optional) | buffer name (can start or end with "*" as joker) (optional) -| weechat | filter | elenco dei filtri +| weechat | buffer_lines | righe di un buffer | buffer pointer | - -| weechat | history | cronologia dei comandi +| weechat | filter | elenco dei filtri | - | filter name (can start or end with "*" as joker) (optional) -| weechat | hook | elenco di hook +| weechat | history | cronologia dei comandi | buffer pointer (if not set, return global history) (optional) | - -| weechat | hotlist | elenco dei buffer nella hotlist +| weechat | hook | elenco di hook | - | hook type: command, timer, .. (optional) -| weechat | key | elenco di tasti associati +| weechat | hotlist | elenco dei buffer nella hotlist | - | - -| weechat | nicklist | nick nella lista nick per un buffer +| weechat | key | elenco di tasti associati | - | - -| weechat | option | elenco delle opzioni +| weechat | nicklist | nick nella lista nick per un buffer | buffer pointer | nick_xxx or group_xxx to get only nick/group xxx (optional) -| weechat | plugin | elenco dei plugin +| weechat | option | elenco delle opzioni | - | option name (can start or end with "*" as joker) (optional) -| weechat | window | elenco delle finestre +| weechat | plugin | elenco dei plugin | plugin pointer (optional) | plugin name (can start or end with "*" as joker) (optional) -| xfer | xfer | lista di xfer +| weechat | window | elenco delle finestre | window pointer (optional) | window name (can start or end with "*" as joker) (optional) + +| xfer | xfer | lista di xfer | xfer pointer (optional) | - |======================================== diff --git a/doc/it/autogen/plugin_api/infos.txt b/doc/it/autogen/plugin_api/infos.txt index a8897b9b1..9628fc3f5 100644 --- a/doc/it/autogen/plugin_api/infos.txt +++ b/doc/it/autogen/plugin_api/infos.txt @@ -1,44 +1,45 @@ -[width="65%",cols="^1,^2,8",options="header"] +[width="100%",cols="^1,^2,6,6",options="header"] |======================================== -| Plugin | Name | Description -| fifo | fifo_filename | nome della pipe FIFO +| Plugin | Name | Description | Arguments -| irc | irc_buffer | ottiene puntatore al buffer per un server/canale IRC +| fifo | fifo_filename | nome della pipe FIFO | - -| irc | irc_is_channel | 1 se la stringa è un canale IRC +| irc | irc_buffer | get buffer pointer for an IRC server/channel/nick | server,channel,nick (channel and nicks are optional) -| irc | irc_nick | ottiene nick corrente su un server +| irc | irc_is_channel | 1 se la stringa è un canale IRC | channel name -| irc | irc_nick_color | riceve colore del nick +| irc | irc_nick | ottiene nick corrente su un server | server name -| irc | irc_nick_from_host | ottiene nick dall'host IRC +| irc | irc_nick_color | riceve colore del nick | nickname -| weechat | charset_internal | set caratteri interno di WeeChat +| irc | irc_nick_from_host | ottiene nick dall'host IRC | IRC host (like `:nick!name@server.com`) -| weechat | charset_terminal | set caratteri terminale +| weechat | charset_internal | set caratteri interno di WeeChat | - -| weechat | date | data di compilazione di WeeChat +| weechat | charset_terminal | set caratteri terminale | - -| weechat | dir_separator | separatore cartella +| weechat | date | data di compilazione di WeeChat | - -| weechat | filters_enabled | 1 se i filtri sono abilitati +| weechat | dir_separator | separatore cartella | - -| weechat | inactivity | inattività della tastiera (secondi) +| weechat | filters_enabled | 1 se i filtri sono abilitati | - -| weechat | version | versione di WeeChat +| weechat | inactivity | inattività della tastiera (secondi) | - -| weechat | version_number | WeeChat version (as number) +| weechat | version | versione di WeeChat | - -| weechat | weechat_dir | cartella WeeChat +| weechat | version_number | WeeChat version (as number) | - -| weechat | weechat_libdir | cartella "lib" di WeeChat +| weechat | weechat_dir | cartella WeeChat | - -| weechat | weechat_localedir | cartella "locale" di WeeChat +| weechat | weechat_libdir | cartella "lib" di WeeChat | - -| weechat | weechat_sharedir | cartella "share" di WeeChat +| weechat | weechat_localedir | cartella "locale" di WeeChat | - -| weechat | weechat_site | sito di WeeChat +| weechat | weechat_sharedir | cartella "share" di WeeChat | - -| weechat | weechat_site_download | sito di WeeChat, pagina di download +| weechat | weechat_site | sito di WeeChat | - + +| weechat | weechat_site_download | sito di WeeChat, pagina di download | - |======================================== diff --git a/po/POTFILES.in b/po/POTFILES.in index 01305672d..e041de561 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -228,3 +228,4 @@ ./src/plugins/xfer/xfer-network.h ./src/plugins/xfer/xfer-upgrade.c ./src/plugins/xfer/xfer-upgrade.h +./doc/docgen.pl diff --git a/po/cs.po b/po/cs.po index f2978bd04..87782665e 100644 --- a/po/cs.po +++ b/po/cs.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-10 10:33+0100\n" +"POT-Creation-Date: 2010-02-12 16:45+0100\n" "PO-Revision-Date: 2010-01-23 11:56+0100\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -2465,6 +2465,13 @@ msgstr "jméno_aliasu: jméno aliasu pro odebrání" msgid "list of aliases" msgstr "seznam aliasů" +#, fuzzy +msgid "alias pointer (optional)" +msgstr "seznam konfiguračních možností" + +msgid "alias name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: \"%s\" removed" msgstr "%s: \"%s\" odebrán" @@ -4342,31 +4349,69 @@ msgstr[2] "kanálů" msgid "1 if string is an IRC channel" msgstr "1 pokud je řetězec IRC kanál" +#, fuzzy +msgid "channel name" +msgstr "kanál mód" + msgid "get current nick on a server" msgstr "získat aktuální přezdívku na serveru" +#, fuzzy +msgid "server name" +msgstr "cíl: server jméno" + msgid "get nick from IRC host" msgstr "získat přezdívku od IRC hosta" +msgid "IRC host (like `:nick!name@server.com`)" +msgstr "" + #, fuzzy msgid "get nick color" msgstr "barva textu" -msgid "get buffer pointer for an IRC server/channel" +#, fuzzy +msgid "nickname" +msgstr "[-all] přezdívka" + +#, fuzzy +msgid "get buffer pointer for an IRC server/channel/nick" msgstr "získat ukazatel bufferu od IRC serveru/kanálu" +msgid "server,channel,nick (channel and nicks are optional)" +msgstr "" + msgid "list of IRC servers" msgstr "seznam IRC serverů" +#, fuzzy +msgid "server pointer (optional)" +msgstr "IRC servery (vnitřní jména)" + +msgid "server name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of channels for an IRC server" msgstr "seznam kanálů pro IRC server" +msgid "channel pointer (optional)" +msgstr "" + msgid "list of nicks for an IRC channel" msgstr "seznam uživatelů pro IRC kanál" +msgid "nick pointer (optional)" +msgstr "" + +msgid "server,channel,nick (channel and nick are optional)" +msgstr "" + msgid "list of IRC ignores" msgstr "seznam pro IRC ignorování" +msgid "ignore pointer (optional)" +msgstr "" + #, c-format msgid "%s%s: you are not connected to server" msgstr "%s%s: nejste připojen k serveru" @@ -5080,6 +5125,10 @@ msgstr "" msgid "list of logger buffers" msgstr "seznam logovacích bufferů" +#, fuzzy +msgid "logger pointer (optional)" +msgstr "konfigurace logovacího pluginu" + msgid "WeeChat version" msgstr "verze WeeChat" @@ -5126,27 +5175,61 @@ msgstr "1 pokud jsou filtry povoleny" msgid "list of bars" msgstr "seznam polí" +msgid "bar pointer (optional)" +msgstr "" + +msgid "bar name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar items" msgstr "seznam položek polí" +msgid "bar item pointer (optional)" +msgstr "" + +msgid "bar item name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar windows" msgstr "seznam oken polí" +msgid "bar window pointer (optional)" +msgstr "" + msgid "list of buffers" msgstr "seznam bufferů" +msgid "buffer pointer (optional)" +msgstr "" + +msgid "buffer name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "lines of a buffer" msgstr "řádků bufferu" +#, fuzzy +msgid "buffer pointer" +msgstr "nastavit vlastnost bufferu" + msgid "list of filters" msgstr "seznam filtrů" +msgid "filter name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "history of commands" msgstr "historie příkazů" +msgid "buffer pointer (if not set, return global history) (optional)" +msgstr "" + msgid "list of hooks" msgstr "seznam napojení" +msgid "hook type: command, timer, .. (optional)" +msgstr "" + msgid "list of buffers in hotlist" msgstr "seznam bufferů v hotlistu" @@ -5156,15 +5239,33 @@ msgstr "seznam napojení kláves" msgid "nicks in nicklist for a buffer" msgstr "přezdívky v seznamu přezdívek bufferu" +msgid "nick_xxx or group_xxx to get only nick/group xxx (optional)" +msgstr "" + msgid "list of options" msgstr "seznam konfiguračních možností" +msgid "option name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of plugins" msgstr "seznam pluginů" +msgid "plugin pointer (optional)" +msgstr "" + +msgid "plugin name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of windows" msgstr "seznam oken" +msgid "window pointer (optional)" +msgstr "" + +msgid "window name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%sChyba: nemůžu načist plugin \"%s\": %s" @@ -5387,6 +5488,10 @@ msgstr "" msgid "list of relay clients" msgstr "seznam klientů přesměrování" +#, fuzzy +msgid "relay pointer (optional)" +msgstr "ovládání přesměrování" + #, c-format msgid "%s%s: error sending data to client %s" msgstr "%s%s: chyba při zasílání dat na klienta %s" @@ -5592,6 +5697,12 @@ msgstr "" msgid "list of scripts" msgstr "seznam skriptů" +msgid "script pointer (optional)" +msgstr "" + +msgid "script name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)" msgstr "%s: chyba načítání skriptu \"%s\" (špatné jméno, mezery jsou zakázány)" @@ -5959,6 +6070,10 @@ msgstr "automaticky akceptovat požadavek o rozhovor (používejte opatrně!)" msgid "list of xfer" msgstr "seznam xfer" +#, fuzzy +msgid "xfer pointer (optional)" +msgstr "ovládání xfer" + #, c-format msgid "%s%s: unable to create pipe" msgstr "%s%s: nemohu vytvořit rouru" @@ -6003,6 +6118,25 @@ msgstr "%s%s: nemohu nastavit \"neblokovaci\" volbu na soket" msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: vypršel časový limit \"%s\" pro %s" +msgid "Plugin" +msgstr "" + +#, fuzzy +msgid "Name" +msgstr "jméno" + +#, fuzzy +msgid "Description" +msgstr "popis" + +#, fuzzy +msgid "Arguments" +msgstr "[info [argumenty]]" + +#, fuzzy +msgid "Pointer" +msgstr "celé číslo" + #~ msgid "[-o]" #~ msgstr "[-o]" diff --git a/po/de.po b/po/de.po index 7c2a2ee73..33cfdeec1 100644 --- a/po/de.po +++ b/po/de.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-10 11:23+0100\n" +"POT-Creation-Date: 2010-02-12 16:45+0100\n" "PO-Revision-Date: 2010-02-09 16:11+0100\n" "Last-Translator: Nils G \n" "Language-Team: weechat-dev \n" @@ -2571,6 +2571,13 @@ msgstr "Aliasname: Name des zu löschenden Alias" msgid "list of aliases" msgstr "Liste der Aliase" +#, fuzzy +msgid "alias pointer (optional)" +msgstr "Liste der Optionen" + +msgid "alias name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: \"%s\" removed" msgstr "%s: \"%s\" entfernt" @@ -4544,30 +4551,68 @@ msgstr[1] "Channels" msgid "1 if string is an IRC channel" msgstr "1, falls die Zeichenkette ein IRC-Channel ist" +#, fuzzy +msgid "channel name" +msgstr "Channel Modus" + msgid "get current nick on a server" msgstr "Aktuellen Nicknamen für den Server erhalten" +#, fuzzy +msgid "server name" +msgstr "Ziel: Servername" + msgid "get nick from IRC host" msgstr "Nicknamen des IRC-Hosts erhalten" +msgid "IRC host (like `:nick!name@server.com`)" +msgstr "" + msgid "get nick color" msgstr "Hole Farbe für Nick" -msgid "get buffer pointer for an IRC server/channel" +#, fuzzy +msgid "nickname" +msgstr "[-all] Nickname" + +#, fuzzy +msgid "get buffer pointer for an IRC server/channel/nick" msgstr "Zeiger auf den Buffer für einen IRC-Server oder Channel erhalten" +msgid "server,channel,nick (channel and nicks are optional)" +msgstr "" + msgid "list of IRC servers" msgstr "Liste der IRC-Server" +#, fuzzy +msgid "server pointer (optional)" +msgstr "IRC-Server (interne Namen)" + +msgid "server name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of channels for an IRC server" msgstr "Liste der Channels eines IRC-Servers" +msgid "channel pointer (optional)" +msgstr "" + msgid "list of nicks for an IRC channel" msgstr "Liste der Nicks im IRC-Channel" +msgid "nick pointer (optional)" +msgstr "" + +msgid "server,channel,nick (channel and nick are optional)" +msgstr "" + msgid "list of IRC ignores" msgstr "Liste von ignorierten IRCs" +msgid "ignore pointer (optional)" +msgstr "" + #, c-format msgid "%s%s: you are not connected to server" msgstr "%s%s: Es besteht keine Verbindung zum Server" @@ -5292,6 +5337,12 @@ msgstr "" msgid "list of logger buffers" msgstr "Liste der protokollierten Buffer" +#, fuzzy +msgid "logger pointer (optional)" +msgstr "" +"Konfiguration für \"logger\" Erweiterung (dient zum Protokollieren der " +"Buffer)" + msgid "WeeChat version" msgstr "WeeChat Version" @@ -5338,27 +5389,61 @@ msgstr "1, falls Filter aktiviert sind" msgid "list of bars" msgstr "Auflistung der Bars" +msgid "bar pointer (optional)" +msgstr "" + +msgid "bar name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar items" msgstr "Liste der Bar-Items" +msgid "bar item pointer (optional)" +msgstr "" + +msgid "bar item name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar windows" msgstr "Liste der Bar-Fenster" +msgid "bar window pointer (optional)" +msgstr "" + msgid "list of buffers" msgstr "Liste der Buffer" +msgid "buffer pointer (optional)" +msgstr "" + +msgid "buffer name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "lines of a buffer" msgstr "Zeilen des Buffers" +#, fuzzy +msgid "buffer pointer" +msgstr "Bestimme eine Eigenschaft des Buffers" + msgid "list of filters" msgstr "Liste der Filter" +msgid "filter name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "history of commands" msgstr "Verlaufspeicher der Befehle" +msgid "buffer pointer (if not set, return global history) (optional)" +msgstr "" + msgid "list of hooks" msgstr "Auflistung der Hooks" +msgid "hook type: command, timer, .. (optional)" +msgstr "" + msgid "list of buffers in hotlist" msgstr "Liste der Buffer in Hotlist" @@ -5368,15 +5453,33 @@ msgstr "Auflistung der Tastenzuweisungen" msgid "nicks in nicklist for a buffer" msgstr "Nicks in Nickliste für einen Buffer" +msgid "nick_xxx or group_xxx to get only nick/group xxx (optional)" +msgstr "" + msgid "list of options" msgstr "Liste der Optionen" +msgid "option name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of plugins" msgstr "Auflistung der Erweiterungen" +msgid "plugin pointer (optional)" +msgstr "" + +msgid "plugin name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of windows" msgstr "Auflistung der Windows" +msgid "window pointer (optional)" +msgstr "" + +msgid "window name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%sFehler: Kann Erweiterung \"%s\" nicht installieren: %s" @@ -5614,6 +5717,10 @@ msgstr "Maximale Anzahl an Clients die mit einem Port verbunden sein dürfen" msgid "list of relay clients" msgstr "Liste der Relay-Clients" +#, fuzzy +msgid "relay pointer (optional)" +msgstr "Relay-Kontrolle" + #, c-format msgid "%s%s: error sending data to client %s" msgstr "%s%s: Fehler beim Senden von Daten an den Client %s" @@ -5822,6 +5929,12 @@ msgstr "" msgid "list of scripts" msgstr "Liste der Skripten:" +msgid "script pointer (optional)" +msgstr "" + +msgid "script name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)" msgstr "" @@ -6200,6 +6313,10 @@ msgstr "" msgid "list of xfer" msgstr "Transfer-Liste" +#, fuzzy +msgid "xfer pointer (optional)" +msgstr "Transfer-Steuerung" + #, c-format msgid "%s%s: unable to create pipe" msgstr "%s%s: Kann keine Pipe erstellen" @@ -6245,6 +6362,25 @@ msgstr "" msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: Zeitüberschreitung für \"%s\" mit %s" +msgid "Plugin" +msgstr "" + +#, fuzzy +msgid "Name" +msgstr "Name" + +#, fuzzy +msgid "Description" +msgstr "Beschreibung" + +#, fuzzy +msgid "Arguments" +msgstr "[arguments]" + +#, fuzzy +msgid "Pointer" +msgstr "integer" + #~ msgid "[-o]" #~ msgstr "[-o]" diff --git a/po/es.po b/po/es.po index ec7f3c272..f7238ff08 100644 --- a/po/es.po +++ b/po/es.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-10 10:33+0100\n" +"POT-Creation-Date: 2010-02-12 16:45+0100\n" "PO-Revision-Date: 2010-01-23 11:56+0100\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -2506,6 +2506,13 @@ msgstr "nombre_alias: nombre del alias a suprimir" msgid "list of aliases" msgstr "lista de alias" +#, fuzzy +msgid "alias pointer (optional)" +msgstr "lista de opciones" + +msgid "alias name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: \"%s\" removed" msgstr "%s: \"%s\" eliminado" @@ -4435,30 +4442,68 @@ msgstr[1] "canales" msgid "1 if string is an IRC channel" msgstr "1 si la cadena es un canal IRC" +#, fuzzy +msgid "channel name" +msgstr "canal modo" + msgid "get current nick on a server" msgstr "devuelve el apodo actual en el servidor" +#, fuzzy +msgid "server name" +msgstr "objetivo: nombre del servidor" + msgid "get nick from IRC host" msgstr "devuelve apodo de un host IRC" +msgid "IRC host (like `:nick!name@server.com`)" +msgstr "" + msgid "get nick color" msgstr "obtiene el color del apodo" -msgid "get buffer pointer for an IRC server/channel" +#, fuzzy +msgid "nickname" +msgstr "[-all] apodo" + +#, fuzzy +msgid "get buffer pointer for an IRC server/channel/nick" msgstr "devuelve el puntero del buffer de un canal/servidor IRC" +msgid "server,channel,nick (channel and nicks are optional)" +msgstr "" + msgid "list of IRC servers" msgstr "lista de servidores IRC" +#, fuzzy +msgid "server pointer (optional)" +msgstr "servidores IRC (nombres internos)" + +msgid "server name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of channels for an IRC server" msgstr "lista de canales de un servidor IRC" +msgid "channel pointer (optional)" +msgstr "" + msgid "list of nicks for an IRC channel" msgstr "lista de apodos de un canal IRC" +msgid "nick pointer (optional)" +msgstr "" + +msgid "server,channel,nick (channel and nick are optional)" +msgstr "" + msgid "list of IRC ignores" msgstr "lista de IRC ignores" +msgid "ignore pointer (optional)" +msgstr "" + #, c-format msgid "%s%s: you are not connected to server" msgstr "%s%s: no estas conectado a ningún servidor" @@ -5182,6 +5227,10 @@ msgstr "" msgid "list of logger buffers" msgstr "lista de buffers con registro" +#, fuzzy +msgid "logger pointer (optional)" +msgstr "configuración del plugin de registro" + msgid "WeeChat version" msgstr "versión de WeeChat" @@ -5228,27 +5277,61 @@ msgstr "1 si los filtros están habilitados" msgid "list of bars" msgstr "lista de barras" +msgid "bar pointer (optional)" +msgstr "" + +msgid "bar name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar items" msgstr "lista de elementos de barra" +msgid "bar item pointer (optional)" +msgstr "" + +msgid "bar item name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar windows" msgstr "lista de ventanas de barra" +msgid "bar window pointer (optional)" +msgstr "" + msgid "list of buffers" msgstr "lista de buffers" +msgid "buffer pointer (optional)" +msgstr "" + +msgid "buffer name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "lines of a buffer" msgstr "líneas de un buffer" +#, fuzzy +msgid "buffer pointer" +msgstr "configura una propiedad del buffer" + msgid "list of filters" msgstr "lista de filtros" +msgid "filter name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "history of commands" msgstr "historial de comandos" +msgid "buffer pointer (if not set, return global history) (optional)" +msgstr "" + msgid "list of hooks" msgstr "lista de enganches" +msgid "hook type: command, timer, .. (optional)" +msgstr "" + msgid "list of buffers in hotlist" msgstr "lista de buffers en la lista de actividad" @@ -5258,15 +5341,33 @@ msgstr "lista de atajos de teclas" msgid "nicks in nicklist for a buffer" msgstr "apodos en la lista de apodos de un buffer" +msgid "nick_xxx or group_xxx to get only nick/group xxx (optional)" +msgstr "" + msgid "list of options" msgstr "lista de opciones" +msgid "option name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of plugins" msgstr "lista de plugins" +msgid "plugin pointer (optional)" +msgstr "" + +msgid "plugin name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of windows" msgstr "lista de ventanas" +msgid "window pointer (optional)" +msgstr "" + +msgid "window name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%sError: no ha sido posible cargar el plugin \"%s\": %s" @@ -5502,6 +5603,10 @@ msgstr "número máximo de clientes conectados a un puerto" msgid "list of relay clients" msgstr "Lista de clientes en el repetidor" +#, fuzzy +msgid "relay pointer (optional)" +msgstr "control de retransmisión" + #, c-format msgid "%s%s: error sending data to client %s" msgstr "%s%s: error al enviar datos al cliente %s" @@ -5708,6 +5813,12 @@ msgstr "" msgid "list of scripts" msgstr "lista de scripts" +msgid "script pointer (optional)" +msgstr "" + +msgid "script name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)" msgstr "" @@ -6085,6 +6196,10 @@ msgstr "" msgid "list of xfer" msgstr "lista de transferencias" +#, fuzzy +msgid "xfer pointer (optional)" +msgstr "control de transferencias" + #, c-format msgid "%s%s: unable to create pipe" msgstr "%s%s: no es posible crear la tubería" @@ -6129,6 +6244,26 @@ msgstr "%s%s: no es posible configurar la opción \"nonblock\" para el socket" msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s" +#, fuzzy +msgid "Plugin" +msgstr " (sin plugins)\n" + +#, fuzzy +msgid "Name" +msgstr "nombre" + +#, fuzzy +msgid "Description" +msgstr "descripción" + +#, fuzzy +msgid "Arguments" +msgstr "[argumentos]" + +#, fuzzy +msgid "Pointer" +msgstr "entero" + #~ msgid "[-o]" #~ msgstr "[-o]" @@ -6599,10 +6734,6 @@ msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s" #~ msgid " (used by a plugin)" #~ msgstr " (sin plugins)\n" -#, fuzzy -#~ msgid "plugin:" -#~ msgstr " (sin plugins)\n" - #, fuzzy #~ msgid "%s%s: unknown/missing channel name for \"%s\" command" #~ msgstr "%s faltan argumentos para el comando \"%s\"\n" diff --git a/po/fr.po b/po/fr.po index 53f17f9a9..73277ce8f 100644 --- a/po/fr.po +++ b/po/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-10 10:33+0100\n" -"PO-Revision-Date: 2010-02-10 10:33+0100\n" +"POT-Creation-Date: 2010-02-12 16:45+0100\n" +"PO-Revision-Date: 2010-02-12 16:29+0100\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -2544,6 +2544,13 @@ msgstr "nom_alias: nom de l'alias à supprimer" msgid "list of aliases" msgstr "liste des alias" +msgid "alias pointer (optional)" +msgstr "pointeur vers l'alias (optionnel)" + +msgid "alias name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom d'alias (peut démarrer ou se terminer par \"*\" comme joker) (optionnel)" + #, c-format msgid "%s: \"%s\" removed" msgstr "%s: \"%s\" supprimé" @@ -4484,30 +4491,65 @@ msgstr[1] "canaux" msgid "1 if string is an IRC channel" msgstr "1 si la chaîne est un canal IRC" +msgid "channel name" +msgstr "nom de canal" + msgid "get current nick on a server" msgstr "retourne le pseudo utilisé actuellement sur un serveur" +msgid "server name" +msgstr "nom de serveur" + msgid "get nick from IRC host" msgstr "retourne le pseudo à partir d'un host IRC" +msgid "IRC host (like `:nick!name@server.com`)" +msgstr "host IRC (comme `:pseudo!nom@serveur.com`)" + msgid "get nick color" msgstr "retourne la couleur du pseudo" -msgid "get buffer pointer for an IRC server/channel" -msgstr "retourne le pointeur vers le tampon pour un serveur/canal IRC" +msgid "nickname" +msgstr "pseudo" + +msgid "get buffer pointer for an IRC server/channel/nick" +msgstr "retourne le pointeur vers le tampon pour un serveur/canal/pseudo IRC" + +msgid "server,channel,nick (channel and nicks are optional)" +msgstr "serveur,canal,pseudo (canal et pseudo sont optionnels)" msgid "list of IRC servers" msgstr "liste des serveurs IRC" +msgid "server pointer (optional)" +msgstr "pointeur vers le serveur (optionnel)" + +msgid "server name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom de serveur (peut démarrer ou se terminer par \"*\" comme joker) " +"(optionnel)" + msgid "list of channels for an IRC server" msgstr "liste des canaux pour un serveur IRC" +msgid "channel pointer (optional)" +msgstr "pointeur vers le canal (optionnel)" + msgid "list of nicks for an IRC channel" msgstr "liste des pseudos pour un canal IRC" +msgid "nick pointer (optional)" +msgstr "pointeur vers le pseudo (optionnel)" + +msgid "server,channel,nick (channel and nick are optional)" +msgstr "serveur,canal,pseudo (canal et pseudo sont optionnels)" + msgid "list of IRC ignores" msgstr "liste des ignores IRC" +msgid "ignore pointer (optional)" +msgstr "pointeur vers l'ignore (optionnel)" + #, c-format msgid "%s%s: you are not connected to server" msgstr "%s%s: vous n'êtes pas connecté au serveur" @@ -5224,6 +5266,9 @@ msgstr "" msgid "list of logger buffers" msgstr "liste des enregistreurs de tampons (loggers)" +msgid "logger pointer (optional)" +msgstr "pointeur vers le logger (optionnel)" + msgid "WeeChat version" msgstr "version de WeeChat" @@ -5269,27 +5314,69 @@ msgstr "1 si les filtres sont activés" msgid "list of bars" msgstr "liste des barres" +msgid "bar pointer (optional)" +msgstr "pointeur vers la barre (optionnel)" + +msgid "bar name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom de barre (peut démarrer ou se terminer par \"*\" comme joker) (optionnel)" + msgid "list of bar items" msgstr "liste des objets de barres" +msgid "bar item pointer (optional)" +msgstr "pointeur vers l'objet de barre (optionnel)" + +msgid "bar item name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom d'objet de barre (peut démarrer ou se terminer par \"*\" comme joker) " +"(optionnel)" + msgid "list of bar windows" msgstr "liste des fenêtres de barre" +msgid "bar window pointer (optional)" +msgstr "pointeur vers la fenêtre de barre (optionnel)" + msgid "list of buffers" msgstr "liste des tampons" +msgid "buffer pointer (optional)" +msgstr "pointeur vers le tampon (optionnel)" + +msgid "buffer name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom de tampon (peut démarrer ou se terminer par \"*\" comme joker) " +"(optionnel)" + msgid "lines of a buffer" msgstr "lignes d'un tampon" +msgid "buffer pointer" +msgstr "pointeur vers le tampon" + msgid "list of filters" msgstr "liste des filtres" +msgid "filter name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom de filtre (peut démarrer ou se terminer par \"*\" comme joker) " +"(optionnel)" + msgid "history of commands" msgstr "historique des commandes" +msgid "buffer pointer (if not set, return global history) (optional)" +msgstr "" +"pointeur vers le tampon (si non défini, retourne l'historique global) " +"(optionnel)" + msgid "list of hooks" msgstr "liste des hooks" +msgid "hook type: command, timer, .. (optional)" +msgstr "type de hook: command, timer, .. (optionnel)" + msgid "list of buffers in hotlist" msgstr "liste des tampons dans la hotlist" @@ -5299,15 +5386,39 @@ msgstr "liste des associations de touches" msgid "nicks in nicklist for a buffer" msgstr "pseudos dans la liste des pseudos pour un tampon" +msgid "nick_xxx or group_xxx to get only nick/group xxx (optional)" +msgstr "" +"nick_xxx ou group_xxx pour avoir seulement le pseudo/groupe xxx (optionnel)" + msgid "list of options" msgstr "liste des options" +msgid "option name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom d'option (peut démarrer ou se terminer par \"*\" comme joker) (optionnel)" + msgid "list of plugins" msgstr "liste des extensions" +msgid "plugin pointer (optional)" +msgstr "pointeur vers l'extension (optionnel)" + +msgid "plugin name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom d'extension (peut démarrer ou se terminer par \"*\" comme joker) " +"(optionnel)" + msgid "list of windows" msgstr "liste des fenêtres" +msgid "window pointer (optional)" +msgstr "pointeur vers la fenêtre (optionnel)" + +msgid "window name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom de fenêtre (peut démarrer ou se terminer par \"*\" comme joker) " +"(optionnel)" + #, c-format msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%sErreur: impossible de charger l'extension \"%s\": %s" @@ -5545,6 +5656,9 @@ msgstr "nombre maximum de clients qui se connectent sur un port" msgid "list of relay clients" msgstr "liste des clients pour le relai" +msgid "relay pointer (optional)" +msgstr "pointeur vers le relay (optionnel)" + #, c-format msgid "%s%s: error sending data to client %s" msgstr "%s%s: erreur d'envoi de données au client %s" @@ -5753,6 +5867,14 @@ msgstr "" msgid "list of scripts" msgstr "liste des scripts" +msgid "script pointer (optional)" +msgstr "pointeur vers le script (optionnel)" + +msgid "script name (can start or end with \"*\" as joker) (optional)" +msgstr "" +"nom de script (peut démarrer ou se terminer par \"*\" comme joker) " +"(optionnel)" + #, c-format msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)" msgstr "" @@ -6129,6 +6251,9 @@ msgstr "" msgid "list of xfer" msgstr "liste des xfer" +msgid "xfer pointer (optional)" +msgstr "pointeur vers le xfer (optionnel)" + #, c-format msgid "%s%s: unable to create pipe" msgstr "%s%s: impossible de créer le tuyau" @@ -6172,3 +6297,21 @@ msgstr "%s%s: impossible de positionner l'option \"nonblock\" pour la socket" #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: délai d'attente dépassé pour \"%s\" avec %s" + +msgid "Plugin" +msgstr "Extension" + +msgid "Name" +msgstr "Nom" + +msgid "Description" +msgstr "Description" + +msgid "Arguments" +msgstr "Paramètres" + +msgid "Pointer" +msgstr "Pointeur" + +#~ msgid "host" +#~ msgstr "nom d'hôte" diff --git a/po/hu.po b/po/hu.po index 26fdd6147..28dda85a7 100644 --- a/po/hu.po +++ b/po/hu.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-10 10:33+0100\n" +"POT-Creation-Date: 2010-02-12 16:45+0100\n" "PO-Revision-Date: 2010-01-23 11:57+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -2406,6 +2406,13 @@ msgstr "alias_név: az eltávolítandó alias neve" msgid "list of aliases" msgstr "Aliaszok listája:\n" +#, fuzzy +msgid "alias pointer (optional)" +msgstr "konfigurációs paraméterek beállítása" + +msgid "alias name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy, c-format msgid "%s: \"%s\" removed" msgstr "A \"%s\" aliasz eltávolítva\n" @@ -4279,37 +4286,74 @@ msgstr[1] "%d szoba" msgid "1 if string is an IRC channel" msgstr "felhasználók listája a szobában" +#, fuzzy +msgid "channel name" +msgstr "%d szoba" + #, fuzzy msgid "get current nick on a server" msgstr "aktuális név megváltoztatása" +#, fuzzy +msgid "server name" +msgstr "cél: szerver neve" + #, fuzzy msgid "get nick from IRC host" msgstr "név vagy gép letiltása" +msgid "IRC host (like `:nick!name@server.com`)" +msgstr "" + #, fuzzy msgid "get nick color" msgstr "üzenetek színe" -msgid "get buffer pointer for an IRC server/channel" +#, fuzzy +msgid "nickname" +msgstr "[-all] név" + +#, fuzzy +msgid "get buffer pointer for an IRC server/channel/nick" +msgstr "szobák listája ahová be akarunk lépni csatlakozás után" + +msgid "server,channel,nick (channel and nicks are optional)" msgstr "" #, fuzzy msgid "list of IRC servers" msgstr "IRC szerver portja" +msgid "server pointer (optional)" +msgstr "" + +msgid "server name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of channels for an IRC server" msgstr "szobák listája ahová be akarunk lépni csatlakozás után" +msgid "channel pointer (optional)" +msgstr "" + #, fuzzy msgid "list of nicks for an IRC channel" msgstr "felhasználók listája a szobában" +msgid "nick pointer (optional)" +msgstr "" + +msgid "server,channel,nick (channel and nick are optional)" +msgstr "" + #, fuzzy msgid "list of IRC ignores" msgstr "IRC szerver portja" +msgid "ignore pointer (optional)" +msgstr "" + #, fuzzy, c-format msgid "%s%s: you are not connected to server" msgstr "%s nincs csatlakozva szerverhez!\n" @@ -4967,6 +5011,10 @@ msgstr "" msgid "list of logger buffers" msgstr "a pufferek időbélyege" +#, fuzzy +msgid "logger pointer (optional)" +msgstr "Beállítások mentése a lemezre\n" + #, fuzzy msgid "WeeChat version" msgstr "WeeChat szlogen" @@ -5022,34 +5070,68 @@ msgstr "a felhasználók le lettek tiltva" msgid "list of bars" msgstr "Aliaszok listája:\n" +msgid "bar pointer (optional)" +msgstr "" + +msgid "bar name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of bar items" msgstr "Aliaszok listája:\n" +msgid "bar item pointer (optional)" +msgstr "" + +msgid "bar item name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of bar windows" msgstr "Mellőzések listája:\n" +msgid "bar window pointer (optional)" +msgstr "" + #, fuzzy msgid "list of buffers" msgstr "Aliaszok listája:\n" +msgid "buffer pointer (optional)" +msgstr "" + +msgid "buffer name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "lines of a buffer" msgstr "puffer betöltése sikertelen" +#, fuzzy +msgid "buffer pointer" +msgstr "szöveg keresése a puffertörténetben" + #, fuzzy msgid "list of filters" msgstr "Aliaszok listája:\n" +msgid "filter name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "history of commands" msgstr "%s belső parancsok:\n" +msgid "buffer pointer (if not set, return global history) (optional)" +msgstr "" + #, fuzzy msgid "list of hooks" msgstr "Aliaszok listája:\n" +msgid "hook type: command, timer, .. (optional)" +msgstr "" + #, fuzzy msgid "list of buffers in hotlist" msgstr "kiemelendő szavak listája" @@ -5062,18 +5144,36 @@ msgstr "Mellőzések listája:\n" msgid "nicks in nicklist for a buffer" msgstr "érvénytelen pufferhossz" +msgid "nick_xxx or group_xxx to get only nick/group xxx (optional)" +msgstr "" + #, fuzzy msgid "list of options" msgstr "konfigurációs paraméterek beállítása" +msgid "option name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of plugins" msgstr "konfigurációs paraméterek beállítása" +msgid "plugin pointer (optional)" +msgstr "" + +msgid "plugin name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of windows" msgstr "Mellőzések listája:\n" +msgid "window pointer (optional)" +msgstr "" + +msgid "window name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy, c-format msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%s nem sikerült a modult betölteni \"%s\": %s\n" @@ -5307,6 +5407,9 @@ msgstr "" msgid "list of relay clients" msgstr "Aliaszok listája:\n" +msgid "relay pointer (optional)" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error sending data to client %s" msgstr "%s adatküldési hiba az IRC szerveren\n" @@ -5510,6 +5613,12 @@ msgstr "" msgid "list of scripts" msgstr "Aliaszok listája:\n" +msgid "script pointer (optional)" +msgstr "" + +msgid "script name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)" msgstr "" @@ -5890,6 +5999,9 @@ msgstr "dcc beszélgetések automatikus fogadása (óvatosan használja!)" msgid "list of xfer" msgstr "Aliaszok listája:\n" +msgid "xfer pointer (optional)" +msgstr "" + #, fuzzy, c-format msgid "%s%s: unable to create pipe" msgstr "%s DCC: nem sikerült a csövet létrehozni\n" @@ -5934,6 +6046,25 @@ msgstr "%s DCC: nem sikerült 'nonblock' opciót beállítani a csatornán\n" msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n" +#, fuzzy +msgid "Plugin" +msgstr " (nem található bővítőmodul)\n" + +msgid "Name" +msgstr "" + +#, fuzzy +msgid "Description" +msgstr " . leírás : %s\n" + +#, fuzzy +msgid "Arguments" +msgstr "fogadó típusa [paraméterek]" + +#, fuzzy +msgid "Pointer" +msgstr "perc" + #~ msgid "[-o]" #~ msgstr "[-o]" @@ -6279,10 +6410,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n" #~ msgid "Jabber debug messages" #~ msgstr "hibakereső üzenetek megjelenítése" -#, fuzzy -#~ msgid "get buffer pointer for a Jabber server/MUC" -#~ msgstr "szobák listája ahová be akarunk lépni csatlakozás után" - #, fuzzy #~ msgid "list of Jabber servers" #~ msgstr "IRC szerver portja" @@ -6454,10 +6581,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n" #~ msgid " (used by a plugin)" #~ msgstr " (nem található bővítőmodul)\n" -#, fuzzy -#~ msgid "plugin:" -#~ msgstr " (nem található bővítőmodul)\n" - #, fuzzy #~ msgid "%s%s: unknown/missing channel name for \"%s\" command" #~ msgstr "%s hiányzó argumentum a \"%s\" parancsnak\n" diff --git a/po/it.po b/po/it.po index d46121648..7ba5b0143 100644 --- a/po/it.po +++ b/po/it.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Weechat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-10 10:33+0100\n" +"POT-Creation-Date: 2010-02-12 16:45+0100\n" "PO-Revision-Date: 2010-01-23 11:57+0100\n" "Last-Translator: Marco Paolone \n" "Language-Team: weechat-dev \n" @@ -2505,6 +2505,13 @@ msgstr "nome_alias: nome di un alias da eliminare" msgid "list of aliases" msgstr "elenco di alias" +#, fuzzy +msgid "alias pointer (optional)" +msgstr "elenco delle opzioni" + +msgid "alias name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: \"%s\" removed" msgstr "%s; \"%s\" eliminato" @@ -4436,30 +4443,68 @@ msgstr[1] "canali" msgid "1 if string is an IRC channel" msgstr "1 se la stringa è un canale IRC" +#, fuzzy +msgid "channel name" +msgstr "canale modalità" + msgid "get current nick on a server" msgstr "ottiene nick corrente su un server" +#, fuzzy +msgid "server name" +msgstr "destinazione: nome server" + msgid "get nick from IRC host" msgstr "ottiene nick dall'host IRC" +msgid "IRC host (like `:nick!name@server.com`)" +msgstr "" + msgid "get nick color" msgstr "riceve colore del nick" -msgid "get buffer pointer for an IRC server/channel" +#, fuzzy +msgid "nickname" +msgstr "[-all] nick" + +#, fuzzy +msgid "get buffer pointer for an IRC server/channel/nick" msgstr "ottiene puntatore al buffer per un server/canale IRC" +msgid "server,channel,nick (channel and nicks are optional)" +msgstr "" + msgid "list of IRC servers" msgstr "elenco di server IRC" +#, fuzzy +msgid "server pointer (optional)" +msgstr "server IRC (nomi interni)" + +msgid "server name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of channels for an IRC server" msgstr "elenco dei canali per un server IRC" +msgid "channel pointer (optional)" +msgstr "" + msgid "list of nicks for an IRC channel" msgstr "elenco dei nick per un canale IRC" +msgid "nick pointer (optional)" +msgstr "" + +msgid "server,channel,nick (channel and nick are optional)" +msgstr "" + msgid "list of IRC ignores" msgstr "elenco di ignore IRC" +msgid "ignore pointer (optional)" +msgstr "" + #, c-format msgid "%s%s: you are not connected to server" msgstr "%s%s: non connesso al server" @@ -5175,6 +5220,10 @@ msgstr "" msgid "list of logger buffers" msgstr "elenco dei buffer logger" +#, fuzzy +msgid "logger pointer (optional)" +msgstr "configurazione del plugin logger" + msgid "WeeChat version" msgstr "versione di WeeChat" @@ -5221,27 +5270,61 @@ msgstr "1 se i filtri sono abilitati" msgid "list of bars" msgstr "elenco delle barre" +msgid "bar pointer (optional)" +msgstr "" + +msgid "bar name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar items" msgstr "elenco degli elementi barra" +msgid "bar item pointer (optional)" +msgstr "" + +msgid "bar item name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar windows" msgstr "elenco delle finestre barra" +msgid "bar window pointer (optional)" +msgstr "" + msgid "list of buffers" msgstr "elenco dei buffer" +msgid "buffer pointer (optional)" +msgstr "" + +msgid "buffer name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "lines of a buffer" msgstr "righe di un buffer" +#, fuzzy +msgid "buffer pointer" +msgstr "imposta una proprietà del buffer" + msgid "list of filters" msgstr "elenco dei filtri" +msgid "filter name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "history of commands" msgstr "cronologia dei comandi" +msgid "buffer pointer (if not set, return global history) (optional)" +msgstr "" + msgid "list of hooks" msgstr "elenco di hook" +msgid "hook type: command, timer, .. (optional)" +msgstr "" + msgid "list of buffers in hotlist" msgstr "elenco dei buffer nella hotlist" @@ -5251,15 +5334,33 @@ msgstr "elenco di tasti associati" msgid "nicks in nicklist for a buffer" msgstr "nick nella lista nick per un buffer" +msgid "nick_xxx or group_xxx to get only nick/group xxx (optional)" +msgstr "" + msgid "list of options" msgstr "elenco delle opzioni" +msgid "option name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of plugins" msgstr "elenco dei plugin" +msgid "plugin pointer (optional)" +msgstr "" + +msgid "plugin name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of windows" msgstr "elenco delle finestre" +msgid "window pointer (optional)" +msgstr "" + +msgid "window name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%sErrore: impossibile attivare il plugin \"%s\": %s" @@ -5493,6 +5594,10 @@ msgstr "numero massimo di client connessi ad una porta" msgid "list of relay clients" msgstr "elenco di client relay" +#, fuzzy +msgid "relay pointer (optional)" +msgstr "controllo relay" + #, c-format msgid "%s%s: error sending data to client %s" msgstr "%s%s: errore nell'invio dei dati al client %s" @@ -5698,6 +5803,12 @@ msgstr "" msgid "list of scripts" msgstr "elenco degli script" +msgid "script pointer (optional)" +msgstr "" + +msgid "script name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)" msgstr "" @@ -6064,6 +6175,10 @@ msgstr "accetta automaticamente le richieste di chat (usare con cautela!)" msgid "list of xfer" msgstr "lista di xfer" +#, fuzzy +msgid "xfer pointer (optional)" +msgstr "controllo xfer" + #, c-format msgid "%s%s: unable to create pipe" msgstr "%s%s: impossibile creare la pipe" @@ -6108,6 +6223,25 @@ msgstr "%s%s: impossibile impostare l'opzione \"nonblock\" per il socket" msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: timeout per \"%s\" con %s" +msgid "Plugin" +msgstr "" + +#, fuzzy +msgid "Name" +msgstr "nome" + +#, fuzzy +msgid "Description" +msgstr "descrizione" + +#, fuzzy +msgid "Arguments" +msgstr "[argomenti]" + +#, fuzzy +msgid "Pointer" +msgstr "intero" + #~ msgid "[-o]" #~ msgstr "[-o]" diff --git a/po/pl.po b/po/pl.po index 269f96d1b..469a3a64e 100644 --- a/po/pl.po +++ b/po/pl.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.0-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-10 11:23+0100\n" +"POT-Creation-Date: 2010-02-12 16:45+0100\n" "PO-Revision-Date: 2010-02-09 15:52+0100\n" "Last-Translator: Krzysztof Koroscik \n" "Language-Team: Polish\n" @@ -2516,6 +2516,13 @@ msgstr "nazwa_aliasu: nazwa aliasu do usunięcia" msgid "list of aliases" msgstr "lista aliasów" +#, fuzzy +msgid "alias pointer (optional)" +msgstr "lista opcji" + +msgid "alias name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: \"%s\" removed" msgstr "%s: \"%s\" usunięty" @@ -4432,30 +4439,68 @@ msgstr[2] "kanałów" msgid "1 if string is an IRC channel" msgstr "1 jeśli ciąg jest w kanale IRC" +#, fuzzy +msgid "channel name" +msgstr "kanał atrybuty" + msgid "get current nick on a server" msgstr "pobiera aktualny nick z serwera" +#, fuzzy +msgid "server name" +msgstr "cel: nazwa srwera" + msgid "get nick from IRC host" msgstr "pobiera nick z hosta IRC" +msgid "IRC host (like `:nick!name@server.com`)" +msgstr "" + msgid "get nick color" msgstr "pobiera kolor nicka" -msgid "get buffer pointer for an IRC server/channel" +#, fuzzy +msgid "nickname" +msgstr "[-all] nick" + +#, fuzzy +msgid "get buffer pointer for an IRC server/channel/nick" msgstr "pobiera wskaźnik bufora kanału/serwera IRC" +msgid "server,channel,nick (channel and nicks are optional)" +msgstr "" + msgid "list of IRC servers" msgstr "lista serwerów IRC" +#, fuzzy +msgid "server pointer (optional)" +msgstr "serwery IRC (nazwy wewnętrzne)" + +msgid "server name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of channels for an IRC server" msgstr "lista kanałów IRC" +msgid "channel pointer (optional)" +msgstr "" + msgid "list of nicks for an IRC channel" msgstr "lista nicków na kanale IRC" +msgid "nick pointer (optional)" +msgstr "" + +msgid "server,channel,nick (channel and nick are optional)" +msgstr "" + msgid "list of IRC ignores" msgstr "lista ignorów IRC" +msgid "ignore pointer (optional)" +msgstr "" + #, c-format msgid "%s%s: you are not connected to server" msgstr "%s%s: nie jesteś połączony z serwerem" @@ -5165,6 +5210,10 @@ msgstr "" msgid "list of logger buffers" msgstr "lista logowanych buforów" +#, fuzzy +msgid "logger pointer (optional)" +msgstr "konfiguracja pluginu logera" + msgid "WeeChat version" msgstr "wersja WeeChat" @@ -5211,27 +5260,61 @@ msgstr "1 jeśli filtry są aktywne" msgid "list of bars" msgstr "lista pasków" +msgid "bar pointer (optional)" +msgstr "" + +msgid "bar name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar items" msgstr "lista elementów pasków" +msgid "bar item pointer (optional)" +msgstr "" + +msgid "bar item name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar windows" msgstr "lista pasków okien" +msgid "bar window pointer (optional)" +msgstr "" + msgid "list of buffers" msgstr "lista buforów" +msgid "buffer pointer (optional)" +msgstr "" + +msgid "buffer name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "lines of a buffer" msgstr "linie w buforze" +#, fuzzy +msgid "buffer pointer" +msgstr "ustaw właściwośc bufora" + msgid "list of filters" msgstr "lista filtrów" +msgid "filter name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "history of commands" msgstr "historia komend" +msgid "buffer pointer (if not set, return global history) (optional)" +msgstr "" + msgid "list of hooks" msgstr "lista powiązań" +msgid "hook type: command, timer, .. (optional)" +msgstr "" + msgid "list of buffers in hotlist" msgstr "lista buforów w hotliście" @@ -5241,15 +5324,33 @@ msgstr "lista skrótów klawiszowych" msgid "nicks in nicklist for a buffer" msgstr "licki na liście nicków bufora" +msgid "nick_xxx or group_xxx to get only nick/group xxx (optional)" +msgstr "" + msgid "list of options" msgstr "lista opcji" +msgid "option name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of plugins" msgstr "lista wtyczek" +msgid "plugin pointer (optional)" +msgstr "" + +msgid "plugin name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of windows" msgstr "lista okien" +msgid "window pointer (optional)" +msgstr "" + +msgid "window name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%sBłąd: nie można załadować wtyczki \"%s\": %s" @@ -5482,6 +5583,10 @@ msgstr "maksymalna ilość klientów łączących się na port" msgid "list of relay clients" msgstr "lista zdalnych klientów" +#, fuzzy +msgid "relay pointer (optional)" +msgstr "zarządzanie przesyłaniem" + #, c-format msgid "%s%s: error sending data to client %s" msgstr "%s%s: błąd podczas wysyłania danych do klienta %s" @@ -5688,6 +5793,12 @@ msgstr "" msgid "list of scripts" msgstr "lista skryptów" +msgid "script pointer (optional)" +msgstr "" + +msgid "script name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)" msgstr "" @@ -6051,6 +6162,10 @@ msgstr "automatycznie akceptuj proźby o rozmowę (ostrożnie!)" msgid "list of xfer" msgstr "lista xfer" +#, fuzzy +msgid "xfer pointer (optional)" +msgstr "kontrola xfer" + #, c-format msgid "%s%s: unable to create pipe" msgstr "%s%s: nie można utworzyć strumienia" @@ -6095,6 +6210,25 @@ msgstr "%s%s: nie można ustawić opcji \"nonblock\" dla gniazda" msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: przekroczono czas na \"%s\" z %s" +msgid "Plugin" +msgstr "" + +#, fuzzy +msgid "Name" +msgstr "nazwa" + +#, fuzzy +msgid "Description" +msgstr "opis" + +#, fuzzy +msgid "Arguments" +msgstr "[argumenty]" + +#, fuzzy +msgid "Pointer" +msgstr "liczba" + #~ msgid "[-o]" #~ msgstr "[-o]" diff --git a/po/ru.po b/po/ru.po index 58d8870b0..b86542e6a 100644 --- a/po/ru.po +++ b/po/ru.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-10 10:33+0100\n" +"POT-Creation-Date: 2010-02-12 16:45+0100\n" "PO-Revision-Date: 2010-01-23 11:57+0100\n" "Last-Translator: Pavel Shevchuk \n" "Language-Team: weechat-dev \n" @@ -2418,6 +2418,13 @@ msgstr "сокращение: удаляемое сокращение" msgid "list of aliases" msgstr "Список сокращений:\n" +#, fuzzy +msgid "alias pointer (optional)" +msgstr "настроить параметры конфигурации" + +msgid "alias name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy, c-format msgid "%s: \"%s\" removed" msgstr "Сокращение \"%s\" удалено\n" @@ -4281,37 +4288,74 @@ msgstr[2] "%d каналов" msgid "1 if string is an IRC channel" msgstr "список ников на канале" +#, fuzzy +msgid "channel name" +msgstr "%d канал" + #, fuzzy msgid "get current nick on a server" msgstr "сменить текущий ник" +#, fuzzy +msgid "server name" +msgstr "цель: название сервера" + #, fuzzy msgid "get nick from IRC host" msgstr "банит ник или хост" +msgid "IRC host (like `:nick!name@server.com`)" +msgstr "" + #, fuzzy msgid "get nick color" msgstr "цвет чата" -msgid "get buffer pointer for an IRC server/channel" +#, fuzzy +msgid "nickname" +msgstr "[-all] ник" + +#, fuzzy +msgid "get buffer pointer for an IRC server/channel/nick" +msgstr "Список каналов, на которые заходить при соединении с сервером" + +msgid "server,channel,nick (channel and nicks are optional)" msgstr "" #, fuzzy msgid "list of IRC servers" msgstr "порт IRC сервера" +msgid "server pointer (optional)" +msgstr "" + +msgid "server name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of channels for an IRC server" msgstr "Список каналов, на которые заходить при соединении с сервером" +msgid "channel pointer (optional)" +msgstr "" + #, fuzzy msgid "list of nicks for an IRC channel" msgstr "список ников на канале" +msgid "nick pointer (optional)" +msgstr "" + +msgid "server,channel,nick (channel and nick are optional)" +msgstr "" + #, fuzzy msgid "list of IRC ignores" msgstr "порт IRC сервера" +msgid "ignore pointer (optional)" +msgstr "" + #, fuzzy, c-format msgid "%s%s: you are not connected to server" msgstr "%s вы не подключены к серверу\n" @@ -4971,6 +5015,10 @@ msgstr "" msgid "list of logger buffers" msgstr "время в буферах" +#, fuzzy +msgid "logger pointer (optional)" +msgstr "Сохраняю конфигурацию\n" + #, fuzzy msgid "WeeChat version" msgstr "слоган WeeChat" @@ -5026,34 +5074,68 @@ msgstr "команда users отключена" msgid "list of bars" msgstr "Список сокращений:\n" +msgid "bar pointer (optional)" +msgstr "" + +msgid "bar name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of bar items" msgstr "Список сокращений:\n" +msgid "bar item pointer (optional)" +msgstr "" + +msgid "bar item name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of bar windows" msgstr "Список игнорирования:\n" +msgid "bar window pointer (optional)" +msgstr "" + #, fuzzy msgid "list of buffers" msgstr "Список сокращений:\n" +msgid "buffer pointer (optional)" +msgstr "" + +msgid "buffer name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "lines of a buffer" msgstr "загрузка буфера не удалась" +#, fuzzy +msgid "buffer pointer" +msgstr "поиск текста в истории буфера" + #, fuzzy msgid "list of filters" msgstr "Список сокращений:\n" +msgid "filter name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "history of commands" msgstr "Внутренние команды %s:\n" +msgid "buffer pointer (if not set, return global history) (optional)" +msgstr "" + #, fuzzy msgid "list of hooks" msgstr "Список сокращений:\n" +msgid "hook type: command, timer, .. (optional)" +msgstr "" + #, fuzzy msgid "list of buffers in hotlist" msgstr "максимальная длина имён в хотлисте" @@ -5066,18 +5148,36 @@ msgstr "Список игнорирования:\n" msgid "nicks in nicklist for a buffer" msgstr "некорректная длина буфера" +msgid "nick_xxx or group_xxx to get only nick/group xxx (optional)" +msgstr "" + #, fuzzy msgid "list of options" msgstr "настроить параметры конфигурации" +msgid "option name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of plugins" msgstr "настроить параметры конфигурации" +msgid "plugin pointer (optional)" +msgstr "" + +msgid "plugin name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy msgid "list of windows" msgstr "Список игнорирования:\n" +msgid "window pointer (optional)" +msgstr "" + +msgid "window name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, fuzzy, c-format msgid "%sError: unable to load plugin \"%s\": %s" msgstr "%s не могу загрузить plugin \"%s\": %s\n" @@ -5310,6 +5410,9 @@ msgstr "" msgid "list of relay clients" msgstr "Список сокращений:\n" +msgid "relay pointer (optional)" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error sending data to client %s" msgstr "%s ошибка при отправке данных IRC серверу\n" @@ -5513,6 +5616,12 @@ msgstr "" msgid "list of scripts" msgstr "Список сокращений:\n" +msgid "script pointer (optional)" +msgstr "" + +msgid "script name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)" msgstr "" @@ -5888,6 +5997,9 @@ msgstr "автоматически подтверждать dcc-чат (испо msgid "list of xfer" msgstr "Список сокращений:\n" +msgid "xfer pointer (optional)" +msgstr "" + #, fuzzy, c-format msgid "%s%s: unable to create pipe" msgstr "%s DCC: не могу создать pipe\n" @@ -5932,6 +6044,25 @@ msgstr "%s DCC: не могу установить неблокирующий р msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s нет аргумента для параметра \"%s\"\n" +#, fuzzy +msgid "Plugin" +msgstr " (нет pluginа)\n" + +msgid "Name" +msgstr "" + +#, fuzzy +msgid "Description" +msgstr " . описание: %s\n" + +#, fuzzy +msgid "Arguments" +msgstr "адресат тип [аргументы]" + +#, fuzzy +msgid "Pointer" +msgstr "минута" + #~ msgid "[-o]" #~ msgstr "[-o]" @@ -6270,10 +6401,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n" #~ msgid "Jabber debug messages" #~ msgstr "выводить отладочные сообщения" -#, fuzzy -#~ msgid "get buffer pointer for a Jabber server/MUC" -#~ msgstr "Список каналов, на которые заходить при соединении с сервером" - #, fuzzy #~ msgid "list of Jabber servers" #~ msgstr "порт IRC сервера" @@ -6442,10 +6569,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n" #~ msgid " (used by a plugin)" #~ msgstr " (нет pluginа)\n" -#, fuzzy -#~ msgid "plugin:" -#~ msgstr " (нет pluginа)\n" - #, fuzzy #~ msgid "%s%s: unknown/missing channel name for \"%s\" command" #~ msgstr "%s нет аргументов для \"%s\" команды\n" diff --git a/po/srcfiles.cmake b/po/srcfiles.cmake index 2953d5783..7ae423990 100644 --- a/po/srcfiles.cmake +++ b/po/srcfiles.cmake @@ -229,4 +229,5 @@ SET(WEECHAT_SOURCES ./src/plugins/xfer/xfer-network.h ./src/plugins/xfer/xfer-upgrade.c ./src/plugins/xfer/xfer-upgrade.h +./doc/docgen.pl ) diff --git a/po/weechat.pot b/po/weechat.pot index 793e81920..5dd45b872 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-10 10:33+0100\n" +"POT-Creation-Date: 2010-02-12 16:45+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2056,6 +2056,12 @@ msgstr "" msgid "list of aliases" msgstr "" +msgid "alias pointer (optional)" +msgstr "" + +msgid "alias name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: \"%s\" removed" msgstr "" @@ -3650,30 +3656,63 @@ msgstr[1] "" msgid "1 if string is an IRC channel" msgstr "" +msgid "channel name" +msgstr "" + msgid "get current nick on a server" msgstr "" +msgid "server name" +msgstr "" + msgid "get nick from IRC host" msgstr "" +msgid "IRC host (like `:nick!name@server.com`)" +msgstr "" + msgid "get nick color" msgstr "" -msgid "get buffer pointer for an IRC server/channel" +msgid "nickname" +msgstr "" + +msgid "get buffer pointer for an IRC server/channel/nick" +msgstr "" + +msgid "server,channel,nick (channel and nicks are optional)" msgstr "" msgid "list of IRC servers" msgstr "" +msgid "server pointer (optional)" +msgstr "" + +msgid "server name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of channels for an IRC server" msgstr "" +msgid "channel pointer (optional)" +msgstr "" + msgid "list of nicks for an IRC channel" msgstr "" +msgid "nick pointer (optional)" +msgstr "" + +msgid "server,channel,nick (channel and nick are optional)" +msgstr "" + msgid "list of IRC ignores" msgstr "" +msgid "ignore pointer (optional)" +msgstr "" + #, c-format msgid "%s%s: you are not connected to server" msgstr "" @@ -4303,6 +4342,9 @@ msgstr "" msgid "list of logger buffers" msgstr "" +msgid "logger pointer (optional)" +msgstr "" + msgid "WeeChat version" msgstr "" @@ -4348,27 +4390,60 @@ msgstr "" msgid "list of bars" msgstr "" +msgid "bar pointer (optional)" +msgstr "" + +msgid "bar name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar items" msgstr "" +msgid "bar item pointer (optional)" +msgstr "" + +msgid "bar item name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of bar windows" msgstr "" +msgid "bar window pointer (optional)" +msgstr "" + msgid "list of buffers" msgstr "" +msgid "buffer pointer (optional)" +msgstr "" + +msgid "buffer name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "lines of a buffer" msgstr "" +msgid "buffer pointer" +msgstr "" + msgid "list of filters" msgstr "" +msgid "filter name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "history of commands" msgstr "" +msgid "buffer pointer (if not set, return global history) (optional)" +msgstr "" + msgid "list of hooks" msgstr "" +msgid "hook type: command, timer, .. (optional)" +msgstr "" + msgid "list of buffers in hotlist" msgstr "" @@ -4378,15 +4453,33 @@ msgstr "" msgid "nicks in nicklist for a buffer" msgstr "" +msgid "nick_xxx or group_xxx to get only nick/group xxx (optional)" +msgstr "" + msgid "list of options" msgstr "" +msgid "option name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of plugins" msgstr "" +msgid "plugin pointer (optional)" +msgstr "" + +msgid "plugin name (can start or end with \"*\" as joker) (optional)" +msgstr "" + msgid "list of windows" msgstr "" +msgid "window pointer (optional)" +msgstr "" + +msgid "window name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%sError: unable to load plugin \"%s\": %s" msgstr "" @@ -4596,6 +4689,9 @@ msgstr "" msgid "list of relay clients" msgstr "" +msgid "relay pointer (optional)" +msgstr "" + #, c-format msgid "%s%s: error sending data to client %s" msgstr "" @@ -4792,6 +4888,12 @@ msgstr "" msgid "list of scripts" msgstr "" +msgid "script pointer (optional)" +msgstr "" + +msgid "script name (can start or end with \"*\" as joker) (optional)" +msgstr "" + #, c-format msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)" msgstr "" @@ -5122,6 +5224,9 @@ msgstr "" msgid "list of xfer" msgstr "" +msgid "xfer pointer (optional)" +msgstr "" + #, c-format msgid "%s%s: unable to create pipe" msgstr "" @@ -5165,3 +5270,18 @@ msgstr "" #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "" + +msgid "Plugin" +msgstr "" + +msgid "Name" +msgstr "" + +msgid "Description" +msgstr "" + +msgid "Arguments" +msgstr "" + +msgid "Pointer" +msgstr "" diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index 08bea3d12..fc298e226 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -2000,7 +2000,7 @@ hook_modifier_exec (struct t_weechat_plugin *plugin, const char *modifier, struct t_hook * hook_info (struct t_weechat_plugin *plugin, const char *info_name, - const char *description, + const char *description, const char *args_description, t_hook_callback_info *callback, void *callback_data) { struct t_hook *new_hook; @@ -2026,6 +2026,8 @@ hook_info (struct t_weechat_plugin *plugin, const char *info_name, new_hook_info->info_name = strdup (info_name); new_hook_info->description = (description) ? strdup (description) : strdup (""); + new_hook_info->args_description = (args_description) ? + strdup (args_description) : strdup (""); hook_add_to_list (new_hook); @@ -2085,7 +2087,8 @@ hook_info_get (struct t_weechat_plugin *plugin, const char *info_name, struct t_hook * hook_infolist (struct t_weechat_plugin *plugin, const char *infolist_name, - const char *description, + const char *description, const char *pointer_description, + const char *args_description, t_hook_callback_infolist *callback, void *callback_data) { struct t_hook *new_hook; @@ -2111,6 +2114,10 @@ hook_infolist (struct t_weechat_plugin *plugin, const char *infolist_name, new_hook_infolist->infolist_name = strdup (infolist_name); new_hook_infolist->description = (description) ? strdup (description) : strdup (""); + new_hook_infolist->pointer_description = (pointer_description) ? + strdup (pointer_description) : strdup (""); + new_hook_infolist->args_description = (args_description) ? + strdup (args_description) : strdup (""); hook_add_to_list (new_hook); @@ -2311,12 +2318,18 @@ unhook (struct t_hook *hook) free (HOOK_INFO(hook, info_name)); if (HOOK_INFO(hook, description)) free (HOOK_INFO(hook, description)); + if (HOOK_INFO(hook, args_description)) + free (HOOK_INFO(hook, args_description)); break; case HOOK_TYPE_INFOLIST: if (HOOK_INFOLIST(hook, infolist_name)) free (HOOK_INFOLIST(hook, infolist_name)); if (HOOK_INFOLIST(hook, description)) free (HOOK_INFOLIST(hook, description)); + if (HOOK_INFOLIST(hook, pointer_description)) + free (HOOK_INFOLIST(hook, pointer_description)); + if (HOOK_INFOLIST(hook, args_description)) + free (HOOK_INFOLIST(hook, args_description)); break; case HOOK_NUM_TYPES: /* this constant is used to count types only, @@ -2632,6 +2645,13 @@ hook_add_to_infolist_type (struct t_infolist *infolist, && HOOK_INFO(ptr_hook, description)[0]) ? _(HOOK_INFO(ptr_hook, description)) : "")) return 0; + if (!infolist_new_var_string (ptr_item, "args_description", HOOK_INFO(ptr_hook, args_description))) + return 0; + if (!infolist_new_var_string (ptr_item, "args_description_nls", + (HOOK_INFO(ptr_hook, args_description) + && HOOK_INFO(ptr_hook, args_description)[0]) ? + _(HOOK_INFO(ptr_hook, args_description)) : "")) + return 0; } break; case HOOK_TYPE_INFOLIST: @@ -2648,6 +2668,20 @@ hook_add_to_infolist_type (struct t_infolist *infolist, && HOOK_INFOLIST(ptr_hook, description)[0]) ? _(HOOK_INFOLIST(ptr_hook, description)) : "")) return 0; + if (!infolist_new_var_string (ptr_item, "pointer_description", HOOK_INFOLIST(ptr_hook, pointer_description))) + return 0; + if (!infolist_new_var_string (ptr_item, "pointer_description_nls", + (HOOK_INFOLIST(ptr_hook, pointer_description) + && HOOK_INFOLIST(ptr_hook, pointer_description)[0]) ? + _(HOOK_INFOLIST(ptr_hook, pointer_description)) : "")) + return 0; + if (!infolist_new_var_string (ptr_item, "args_description", HOOK_INFOLIST(ptr_hook, args_description))) + return 0; + if (!infolist_new_var_string (ptr_item, "args_description_nls", + (HOOK_INFOLIST(ptr_hook, args_description) + && HOOK_INFOLIST(ptr_hook, args_description)[0]) ? + _(HOOK_INFOLIST(ptr_hook, args_description)) : "")) + return 0; } break; case HOOK_NUM_TYPES: @@ -2878,6 +2912,7 @@ hook_print_log () log_printf (" callback. . . . . . . : 0x%lx", HOOK_INFO(ptr_hook, callback)); log_printf (" info_name . . . . . . : '%s'", HOOK_INFO(ptr_hook, info_name)); log_printf (" description . . . . . : '%s'", HOOK_INFO(ptr_hook, description)); + log_printf (" args_description. . . : '%s'", HOOK_INFO(ptr_hook, args_description)); } break; case HOOK_TYPE_INFOLIST: @@ -2887,6 +2922,8 @@ hook_print_log () log_printf (" callback. . . . . . . : 0x%lx", HOOK_INFOLIST(ptr_hook, callback)); log_printf (" infolist_name . . . . : '%s'", HOOK_INFOLIST(ptr_hook, infolist_name)); log_printf (" description . . . . . : '%s'", HOOK_INFOLIST(ptr_hook, description)); + log_printf (" pointer_description . : '%s'", HOOK_INFOLIST(ptr_hook, pointer_description)); + log_printf (" args_description. . . : '%s'", HOOK_INFOLIST(ptr_hook, args_description)); } break; case HOOK_NUM_TYPES: diff --git a/src/core/wee-hook.h b/src/core/wee-hook.h index 046d39ff3..ffe97c602 100644 --- a/src/core/wee-hook.h +++ b/src/core/wee-hook.h @@ -290,6 +290,7 @@ struct t_hook_info t_hook_callback_info *callback; /* info callback */ char *info_name; /* name of info returned */ char *description; /* description */ + char *args_description; /* description of arguments */ }; /* hook infolist */ @@ -304,6 +305,8 @@ struct t_hook_infolist t_hook_callback_infolist *callback; /* infolist callback */ char *infolist_name; /* name of infolist returned */ char *description; /* description */ + char *pointer_description; /* description of pointer */ + char *args_description; /* description of arguments */ }; /* hook variables */ @@ -409,6 +412,7 @@ extern char *hook_modifier_exec (struct t_weechat_plugin *plugin, extern struct t_hook *hook_info (struct t_weechat_plugin *plugin, const char *info_name, const char *description, + const char *args_description, t_hook_callback_info *callback, void *callback_data); extern const char *hook_info_get (struct t_weechat_plugin *plugin, @@ -417,6 +421,8 @@ extern const char *hook_info_get (struct t_weechat_plugin *plugin, extern struct t_hook *hook_infolist (struct t_weechat_plugin *plugin, const char *infolist_name, const char *description, + const char *pointer_description, + const char *args_description, t_hook_callback_infolist *callback, void *callback_data); extern struct t_infolist *hook_infolist_get (struct t_weechat_plugin *plugin, diff --git a/src/plugins/alias/alias-info.c b/src/plugins/alias/alias-info.c index d5132bb16..f4841bd1e 100644 --- a/src/plugins/alias/alias-info.c +++ b/src/plugins/alias/alias-info.c @@ -94,5 +94,7 @@ alias_info_init () { /* alias infolist hooks */ weechat_hook_infolist ("alias", N_("list of aliases"), + N_("alias pointer (optional)"), + N_("alias name (can start or end with \"*\" as joker) (optional)"), &alias_info_get_infolist_cb, NULL); } diff --git a/src/plugins/fifo/fifo-info.c b/src/plugins/fifo/fifo-info.c index ed19a2b8f..e4ed0a02a 100644 --- a/src/plugins/fifo/fifo-info.c +++ b/src/plugins/fifo/fifo-info.c @@ -53,6 +53,6 @@ void fifo_info_init () { /* fifo info hooks */ - weechat_hook_info ("fifo_filename", N_("name of FIFO pipe"), + weechat_hook_info ("fifo_filename", N_("name of FIFO pipe"), NULL, &fifo_info_get_info_cb, NULL); } diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c index a561e5ae2..60c9b6eae 100644 --- a/src/plugins/irc/irc-info.c +++ b/src/plugins/irc/irc-info.c @@ -395,23 +395,36 @@ irc_info_init () { /* info hooks */ weechat_hook_info ("irc_is_channel", N_("1 if string is an IRC channel"), + N_("channel name"), &irc_info_get_info_cb, NULL); weechat_hook_info ("irc_nick", N_("get current nick on a server"), + N_("server name"), &irc_info_get_info_cb, NULL); weechat_hook_info ("irc_nick_from_host", N_("get nick from IRC host"), + N_("IRC host (like `:nick!name@server.com`)"), &irc_info_get_info_cb, NULL); weechat_hook_info ("irc_nick_color", N_("get nick color"), + N_("nickname"), &irc_info_get_info_cb, NULL); - weechat_hook_info ("irc_buffer", N_("get buffer pointer for an IRC server/channel"), + weechat_hook_info ("irc_buffer", N_("get buffer pointer for an IRC server/channel/nick"), + N_("server,channel,nick (channel and nicks are optional)"), &irc_info_get_info_cb, NULL); /* infolist hooks */ weechat_hook_infolist ("irc_server", N_("list of IRC servers"), + N_("server pointer (optional)"), + N_("server name (can start or end with \"*\" as joker) (optional)"), &irc_info_get_infolist_cb, NULL); weechat_hook_infolist ("irc_channel", N_("list of channels for an IRC server"), + N_("channel pointer (optional)"), + N_("server name"), &irc_info_get_infolist_cb, NULL); weechat_hook_infolist ("irc_nick", N_("list of nicks for an IRC channel"), + N_("nick pointer (optional)"), + N_("server,channel,nick (channel and nick are optional)"), &irc_info_get_infolist_cb, NULL); weechat_hook_infolist ("irc_ignore", N_("list of IRC ignores"), + N_("ignore pointer (optional)"), + NULL, &irc_info_get_infolist_cb, NULL); } diff --git a/src/plugins/logger/logger-info.c b/src/plugins/logger/logger-info.c index 930c97864..0befbe10e 100644 --- a/src/plugins/logger/logger-info.c +++ b/src/plugins/logger/logger-info.c @@ -91,7 +91,9 @@ logger_info_get_infolist_cb (void *data, const char *infolist_name, void logger_info_init () { - /* irc infolist hooks */ + /* logger infolist hooks */ weechat_hook_infolist ("logger_buffer", N_("list of logger buffers"), + N_("logger pointer (optional)"), + NULL, &logger_info_get_infolist_cb, NULL); } diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c index d3286845f..4e4679a61 100644 --- a/src/plugins/plugin-api.c +++ b/src/plugins/plugin-api.c @@ -928,62 +928,91 @@ void plugin_api_init () { /* WeeChat core info hooks */ - hook_info (NULL, "version", N_("WeeChat version"), + hook_info (NULL, "version", N_("WeeChat version"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "version_number", N_("WeeChat version (as number)"), + hook_info (NULL, "version_number", N_("WeeChat version (as number)"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "date", N_("WeeChat compilation date"), + hook_info (NULL, "date", N_("WeeChat compilation date"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "dir_separator", N_("directory separator"), + hook_info (NULL, "dir_separator", N_("directory separator"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "weechat_dir", N_("WeeChat directory"), + hook_info (NULL, "weechat_dir", N_("WeeChat directory"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "weechat_libdir", N_("WeeChat \"lib\" directory"), + hook_info (NULL, "weechat_libdir", N_("WeeChat \"lib\" directory"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "weechat_sharedir", N_("WeeChat \"share\" directory"), + hook_info (NULL, "weechat_sharedir", N_("WeeChat \"share\" directory"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "weechat_localedir", N_("WeeChat \"locale\" directory"), + hook_info (NULL, "weechat_localedir", N_("WeeChat \"locale\" directory"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "weechat_site", N_("WeeChat site"), + hook_info (NULL, "weechat_site", N_("WeeChat site"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "weechat_site_download", N_("WeeChat site, download page"), + hook_info (NULL, "weechat_site_download", N_("WeeChat site, download page"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "charset_terminal", N_("terminal charset"), + hook_info (NULL, "charset_terminal", N_("terminal charset"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "charset_internal", N_("WeeChat internal charset"), + hook_info (NULL, "charset_internal", N_("WeeChat internal charset"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "inactivity", N_("keyboard inactivity (seconds)"), + hook_info (NULL, "inactivity", N_("keyboard inactivity (seconds)"), NULL, &plugin_api_info_get_internal, NULL); - hook_info (NULL, "filters_enabled", N_("1 if filters are enabled"), + hook_info (NULL, "filters_enabled", N_("1 if filters are enabled"), NULL, &plugin_api_info_get_internal, NULL); /* WeeChat core infolist hooks */ hook_infolist (NULL, "bar", N_("list of bars"), + N_("bar pointer (optional)"), + N_("bar name (can start or end with \"*\" as joker) (optional)"), &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "bar_item", N_("list of bar items"), + N_("bar item pointer (optional)"), + N_("bar item name (can start or end with \"*\" as joker) (optional)"), &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "bar_window", N_("list of bar windows"), + N_("bar window pointer (optional)"), + NULL, &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "buffer", N_("list of buffers"), + N_("buffer pointer (optional)"), + N_("buffer name (can start or end with \"*\" as joker) (optional)"), &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "buffer_lines", N_("lines of a buffer"), + N_("buffer pointer"), + NULL, &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "filter", N_("list of filters"), + NULL, + N_("filter name (can start or end with \"*\" as joker) (optional)"), &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "history", N_("history of commands"), + N_("buffer pointer (if not set, return global history) (optional)"), + NULL, &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "hook", N_("list of hooks"), + NULL, + N_("hook type: command, timer, .. (optional)"), &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "hotlist", N_("list of buffers in hotlist"), + NULL, + NULL, &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "key", N_("list of key bindings"), + NULL, + NULL, &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "nicklist", N_("nicks in nicklist for a buffer"), + N_("buffer pointer"), + N_("nick_xxx or group_xxx to get only nick/group xxx " + "(optional)"), &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "option", N_("list of options"), + NULL, + N_("option name (can start or end with \"*\" as joker) (optional)"), &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "plugin", N_("list of plugins"), + N_("plugin pointer (optional)"), + N_("plugin name (can start or end with \"*\" as joker) (optional)"), &plugin_api_infolist_get_internal, NULL); hook_infolist (NULL, "window", N_("list of windows"), + N_("window pointer (optional)"), + N_("window name (can start or end with \"*\" as joker) (optional)"), &plugin_api_infolist_get_internal, NULL); } diff --git a/src/plugins/relay/relay-info.c b/src/plugins/relay/relay-info.c index 1b3fd50ad..b1a0ab3d3 100644 --- a/src/plugins/relay/relay-info.c +++ b/src/plugins/relay/relay-info.c @@ -92,5 +92,7 @@ relay_info_init () { /* relay infolist hooks */ weechat_hook_infolist ("relay", N_("list of relay clients"), + N_("relay pointer (optional)"), + NULL, &relay_info_get_infolist_cb, NULL); } diff --git a/src/plugins/scripts/lua/weechat-lua-api.c b/src/plugins/scripts/lua/weechat-lua-api.c index ff2db2fd1..d166782b9 100644 --- a/src/plugins/scripts/lua/weechat-lua-api.c +++ b/src/plugins/scripts/lua/weechat-lua-api.c @@ -4291,7 +4291,7 @@ weechat_lua_api_hook_info_cb (void *data, const char *info_name, static int weechat_lua_api_hook_info (lua_State *L) { - const char *info_name, *description, *function, *data; + const char *info_name, *description, *args_description, *function, *data; char *result; int n; @@ -4305,19 +4305,22 @@ weechat_lua_api_hook_info (lua_State *L) } info_name = NULL; + description = NULL; + args_description = NULL; function = NULL; data = NULL; n = lua_gettop (lua_current_interpreter); - if (n < 4) + if (n < 5) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(LUA_CURRENT_SCRIPT_NAME, "hook_info"); LUA_RETURN_EMPTY; } - info_name = lua_tostring (lua_current_interpreter, -4); - description = lua_tostring (lua_current_interpreter, -3); + info_name = lua_tostring (lua_current_interpreter, -5); + description = lua_tostring (lua_current_interpreter, -4); + args_description = lua_tostring (lua_current_interpreter, -3); function = lua_tostring (lua_current_interpreter, -2); data = lua_tostring (lua_current_interpreter, -1); @@ -4325,6 +4328,7 @@ weechat_lua_api_hook_info (lua_State *L) lua_current_script, info_name, description, + args_description, &weechat_lua_api_hook_info_cb, function, data)); @@ -4375,7 +4379,8 @@ weechat_lua_api_hook_infolist_cb (void *data, const char *info_name, static int weechat_lua_api_hook_infolist (lua_State *L) { - const char *infolist_name, *description, *function, *data; + const char *infolist_name, *description, *pointer_description; + const char *args_description, *function, *data; char *result; int n; @@ -4389,19 +4394,24 @@ weechat_lua_api_hook_infolist (lua_State *L) } infolist_name = NULL; + description = NULL; + pointer_description = NULL; + args_description = NULL; function = NULL; data = NULL; n = lua_gettop (lua_current_interpreter); - if (n < 4) + if (n < 6) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(LUA_CURRENT_SCRIPT_NAME, "hook_infolist"); LUA_RETURN_EMPTY; } - infolist_name = lua_tostring (lua_current_interpreter, -4); - description = lua_tostring (lua_current_interpreter, -3); + infolist_name = lua_tostring (lua_current_interpreter, -6); + description = lua_tostring (lua_current_interpreter, -5); + pointer_description = lua_tostring (lua_current_interpreter, -4); + args_description = lua_tostring (lua_current_interpreter, -3); function = lua_tostring (lua_current_interpreter, -2); data = lua_tostring (lua_current_interpreter, -1); @@ -4409,6 +4419,8 @@ weechat_lua_api_hook_infolist (lua_State *L) lua_current_script, infolist_name, description, + pointer_description, + args_description, &weechat_lua_api_hook_infolist_cb, function, data)); diff --git a/src/plugins/scripts/perl/weechat-perl-api.c b/src/plugins/scripts/perl/weechat-perl-api.c index 4406b097c..660af505f 100644 --- a/src/plugins/scripts/perl/weechat-perl-api.c +++ b/src/plugins/scripts/perl/weechat-perl-api.c @@ -3650,7 +3650,7 @@ weechat_perl_api_hook_info_cb (void *data, const char *info_name, XS (XS_weechat_api_hook_info) { - char *result, *info_name, *description, *function, *data; + char *result, *info_name, *description, *args_description, *function, *data; dXSARGS; /* make C compiler happy */ @@ -3662,7 +3662,7 @@ XS (XS_weechat_api_hook_info) PERL_RETURN_EMPTY; } - if (items < 4) + if (items < 5) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(PERL_CURRENT_SCRIPT_NAME, "hook_info"); PERL_RETURN_EMPTY; @@ -3670,13 +3670,15 @@ XS (XS_weechat_api_hook_info) info_name = SvPV (ST (0), PL_na); description = SvPV (ST (1), PL_na); - function = SvPV (ST (2), PL_na); - data = SvPV (ST (3), PL_na); + args_description = SvPV (ST (2), PL_na); + function = SvPV (ST (3), PL_na); + data = SvPV (ST (4), PL_na); result = script_ptr2str (script_api_hook_info (weechat_perl_plugin, perl_current_script, info_name, description, + args_description, &weechat_perl_api_hook_info_cb, function, data)); @@ -3726,7 +3728,8 @@ weechat_perl_api_hook_infolist_cb (void *data, const char *infolist_name, XS (XS_weechat_api_hook_infolist) { - char *result, *infolist_name, *description, *function, *data; + char *result, *infolist_name, *description, *pointer_description; + char *args_description, *function, *data; dXSARGS; /* make C compiler happy */ @@ -3738,7 +3741,7 @@ XS (XS_weechat_api_hook_infolist) PERL_RETURN_EMPTY; } - if (items < 4) + if (items < 6) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(PERL_CURRENT_SCRIPT_NAME, "hook_infolist"); PERL_RETURN_EMPTY; @@ -3746,13 +3749,17 @@ XS (XS_weechat_api_hook_infolist) infolist_name = SvPV (ST (0), PL_na); description = SvPV (ST (1), PL_na); - function = SvPV (ST (2), PL_na); - data = SvPV (ST (3), PL_na); + pointer_description = SvPV (ST (2), PL_na); + args_description = SvPV (ST (3), PL_na); + function = SvPV (ST (4), PL_na); + data = SvPV (ST (5), PL_na); result = script_ptr2str (script_api_hook_infolist (weechat_perl_plugin, perl_current_script, infolist_name, description, + pointer_description, + args_description, &weechat_perl_api_hook_infolist_cb, function, data)); diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c index f54772f55..5ab77a57a 100644 --- a/src/plugins/scripts/python/weechat-python-api.c +++ b/src/plugins/scripts/python/weechat-python-api.c @@ -3838,7 +3838,7 @@ weechat_python_api_hook_info_cb (void *data, const char *info_name, static PyObject * weechat_python_api_hook_info (PyObject *self, PyObject *args) { - char *info_name, *description, *function, *data, *result; + char *info_name, *description, *args_description, *function, *data, *result; PyObject *object; /* make C compiler happy */ @@ -3852,11 +3852,12 @@ weechat_python_api_hook_info (PyObject *self, PyObject *args) info_name = NULL; description = NULL; + args_description = NULL; function = NULL; data = NULL; - if (!PyArg_ParseTuple (args, "ssss", &info_name, &description, &function, - &data)) + if (!PyArg_ParseTuple (args, "sssss", &info_name, &description, + &args_description, &function, &data)) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(PYTHON_CURRENT_SCRIPT_NAME, "hook_info"); PYTHON_RETURN_EMPTY; @@ -3866,6 +3867,7 @@ weechat_python_api_hook_info (PyObject *self, PyObject *args) python_current_script, info_name, description, + args_description, &weechat_python_api_hook_info_cb, function, data)); @@ -3916,7 +3918,8 @@ weechat_python_api_hook_infolist_cb (void *data, const char *infolist_name, static PyObject * weechat_python_api_hook_infolist (PyObject *self, PyObject *args) { - char *infolist_name, *description, *function, *data, *result; + char *infolist_name, *description, *pointer_description, *args_description; + char *function, *data, *result; PyObject *object; /* make C compiler happy */ @@ -3930,11 +3933,14 @@ weechat_python_api_hook_infolist (PyObject *self, PyObject *args) infolist_name = NULL; description = NULL; + pointer_description = NULL; + args_description = NULL; function = NULL; data = NULL; - if (!PyArg_ParseTuple (args, "ssss", &infolist_name, &description, - &function, &data)) + if (!PyArg_ParseTuple (args, "ssssss", &infolist_name, &description, + &pointer_description, &args_description, &function, + &data)) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(PYTHON_CURRENT_SCRIPT_NAME, "hook_infolist"); PYTHON_RETURN_EMPTY; @@ -3944,6 +3950,8 @@ weechat_python_api_hook_infolist (PyObject *self, PyObject *args) python_current_script, infolist_name, description, + pointer_description, + args_description, &weechat_python_api_hook_infolist_cb, function, data)); diff --git a/src/plugins/scripts/ruby/weechat-ruby-api.c b/src/plugins/scripts/ruby/weechat-ruby-api.c index f81be474b..a5af066cd 100644 --- a/src/plugins/scripts/ruby/weechat-ruby-api.c +++ b/src/plugins/scripts/ruby/weechat-ruby-api.c @@ -4428,9 +4428,10 @@ weechat_ruby_api_hook_info_cb (void *data, const char *info_name, static VALUE weechat_ruby_api_hook_info (VALUE class, VALUE info_name, VALUE description, - VALUE function, VALUE data) + VALUE args_description, VALUE function, VALUE data) { - char *c_info_name, *c_description, *c_function, *c_data, *result; + char *c_info_name, *c_description, *c_args_description, *c_function; + char *c_data, *result; VALUE return_value; /* make C compiler happy */ @@ -4444,11 +4445,12 @@ weechat_ruby_api_hook_info (VALUE class, VALUE info_name, VALUE description, c_info_name = NULL; c_description = NULL; + c_args_description = NULL; c_function = NULL; c_data = NULL; - if (NIL_P (info_name) || NIL_P (description) || NIL_P (function) - || NIL_P (data)) + if (NIL_P (info_name) || NIL_P (description) || NIL_P (args_description) + || NIL_P (function) || NIL_P (data)) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(RUBY_CURRENT_SCRIPT_NAME, "hook_info"); RUBY_RETURN_EMPTY; @@ -4456,11 +4458,13 @@ weechat_ruby_api_hook_info (VALUE class, VALUE info_name, VALUE description, Check_Type (info_name, T_STRING); Check_Type (description, T_STRING); + Check_Type (args_description, T_STRING); Check_Type (function, T_STRING); Check_Type (data, T_STRING); c_info_name = STR2CSTR (info_name); c_description = STR2CSTR (description); + c_args_description = STR2CSTR (args_description); c_function = STR2CSTR (function); c_data = STR2CSTR (data); @@ -4468,6 +4472,7 @@ weechat_ruby_api_hook_info (VALUE class, VALUE info_name, VALUE description, ruby_current_script, c_info_name, c_description, + c_args_description, &weechat_ruby_api_hook_info_cb, c_function, c_data)); @@ -4517,10 +4522,12 @@ weechat_ruby_api_hook_infolist_cb (void *data, const char *infolist_name, static VALUE weechat_ruby_api_hook_infolist (VALUE class, VALUE infolist_name, - VALUE description, VALUE function, + VALUE description, VALUE pointer_description, + VALUE args_description, VALUE function, VALUE data) { - char *c_infolist_name, *c_description, *c_function, *c_data, *result; + char *c_infolist_name, *c_description, *c_pointer_description; + char *c_args_description, *c_function, *c_data, *result; VALUE return_value; /* make C compiler happy */ @@ -4534,11 +4541,14 @@ weechat_ruby_api_hook_infolist (VALUE class, VALUE infolist_name, c_infolist_name = NULL; c_description = NULL; + c_pointer_description = NULL; + c_args_description = NULL; c_function = NULL; c_data = NULL; - if (NIL_P (infolist_name) || NIL_P (description) || NIL_P (function) - || NIL_P (data)) + if (NIL_P (infolist_name) || NIL_P (description) + || NIL_P (pointer_description) || NIL_P (args_description) + || NIL_P (function) || NIL_P (data)) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(RUBY_CURRENT_SCRIPT_NAME, "hook_infolist"); RUBY_RETURN_EMPTY; @@ -4546,11 +4556,15 @@ weechat_ruby_api_hook_infolist (VALUE class, VALUE infolist_name, Check_Type (infolist_name, T_STRING); Check_Type (description, T_STRING); + Check_Type (pointer_description, T_STRING); + Check_Type (args_description, T_STRING); Check_Type (function, T_STRING); Check_Type (data, T_STRING); c_infolist_name = STR2CSTR (infolist_name); c_description = STR2CSTR (description); + c_pointer_description = STR2CSTR (pointer_description); + c_args_description = STR2CSTR (args_description); c_function = STR2CSTR (function); c_data = STR2CSTR (data); @@ -4558,6 +4572,8 @@ weechat_ruby_api_hook_infolist (VALUE class, VALUE infolist_name, ruby_current_script, c_infolist_name, c_description, + c_pointer_description, + c_args_description, &weechat_ruby_api_hook_infolist_cb, c_function, c_data)); @@ -7078,8 +7094,8 @@ weechat_ruby_api_init (VALUE ruby_mWeechat) rb_define_module_function (ruby_mWeechat, "hook_completion_list_add", &weechat_ruby_api_hook_completion_list_add, 4); rb_define_module_function (ruby_mWeechat, "hook_modifier", &weechat_ruby_api_hook_modifier, 3); rb_define_module_function (ruby_mWeechat, "hook_modifier_exec", &weechat_ruby_api_hook_modifier_exec, 3); - rb_define_module_function (ruby_mWeechat, "hook_info", &weechat_ruby_api_hook_info, 4); - rb_define_module_function (ruby_mWeechat, "hook_infolist", &weechat_ruby_api_hook_infolist, 4); + rb_define_module_function (ruby_mWeechat, "hook_info", &weechat_ruby_api_hook_info, 5); + rb_define_module_function (ruby_mWeechat, "hook_infolist", &weechat_ruby_api_hook_infolist, 6); rb_define_module_function (ruby_mWeechat, "unhook", &weechat_ruby_api_unhook, 1); rb_define_module_function (ruby_mWeechat, "unhook_all", &weechat_ruby_api_unhook_all, 0); rb_define_module_function (ruby_mWeechat, "buffer_new", &weechat_ruby_api_buffer_new, 5); diff --git a/src/plugins/scripts/script-api.c b/src/plugins/scripts/script-api.c index 89ba84444..879e5bb97 100644 --- a/src/plugins/scripts/script-api.c +++ b/src/plugins/scripts/script-api.c @@ -1169,6 +1169,7 @@ script_api_hook_info (struct t_weechat_plugin *weechat_plugin, struct t_plugin_script *script, const char *info_name, const char *description, + const char *args_description, const char *(*callback)(void *data, const char *info_name, const char *arguments), @@ -1182,7 +1183,7 @@ script_api_hook_info (struct t_weechat_plugin *weechat_plugin, if (!new_script_callback) return NULL; - new_hook = weechat_hook_info (info_name, description, + new_hook = weechat_hook_info (info_name, description, args_description, callback, new_script_callback); if (!new_hook) { @@ -1209,6 +1210,8 @@ script_api_hook_infolist (struct t_weechat_plugin *weechat_plugin, struct t_plugin_script *script, const char *infolist_name, const char *description, + const char *pointer_description, + const char *args_description, struct t_infolist *(*callback)(void *data, const char *infolist_name, void *pointer, @@ -1224,6 +1227,7 @@ script_api_hook_infolist (struct t_weechat_plugin *weechat_plugin, return NULL; new_hook = weechat_hook_infolist (infolist_name, description, + pointer_description, args_description, callback, new_script_callback); if (!new_hook) { diff --git a/src/plugins/scripts/script-api.h b/src/plugins/scripts/script-api.h index 4b641f502..2f99b819e 100644 --- a/src/plugins/scripts/script-api.h +++ b/src/plugins/scripts/script-api.h @@ -236,6 +236,7 @@ extern struct t_hook *script_api_hook_info (struct t_weechat_plugin *weechat_plu struct t_plugin_script *script, const char *info_name, const char *description, + const char *args_description, const char *(*callback)(void *data, const char *info_name, const char *arguments), @@ -245,6 +246,8 @@ extern struct t_hook *script_api_hook_infolist (struct t_weechat_plugin *weechat struct t_plugin_script *script, const char *infolist_name, const char *description, + const char *pointer_description, + const char *args_description, struct t_infolist *(*callback)(void *data, const char *infolist_name, void *pointer, diff --git a/src/plugins/scripts/script.c b/src/plugins/scripts/script.c index aea1f2611..8d8cf8fc6 100644 --- a/src/plugins/scripts/script.c +++ b/src/plugins/scripts/script.c @@ -278,6 +278,8 @@ script_init (struct t_weechat_plugin *weechat_plugin, weechat_hook_completion (string, N_("list of scripts"), callback_completion, NULL); weechat_hook_infolist (string, N_("list of scripts"), + N_("script pointer (optional)"), + N_("script name (can start or end with \"*\" as joker) (optional)"), callback_infolist, NULL); free (string); } diff --git a/src/plugins/scripts/tcl/weechat-tcl-api.c b/src/plugins/scripts/tcl/weechat-tcl-api.c index 2e3553256..65fcb1bd4 100644 --- a/src/plugins/scripts/tcl/weechat-tcl-api.c +++ b/src/plugins/scripts/tcl/weechat-tcl-api.c @@ -4110,7 +4110,7 @@ weechat_tcl_api_hook_info (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { Tcl_Obj *objp; - char *result, *info_name, *description, *function, *data; + char *result, *info_name, *description, *args_description, *function, *data; int i; /* make C compiler happy */ @@ -4122,7 +4122,7 @@ weechat_tcl_api_hook_info (ClientData clientData, Tcl_Interp *interp, TCL_RETURN_EMPTY; } - if (objc < 5) + if (objc < 6) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(TCL_CURRENT_SCRIPT_NAME, "hook_info"); TCL_RETURN_EMPTY; @@ -4130,13 +4130,15 @@ weechat_tcl_api_hook_info (ClientData clientData, Tcl_Interp *interp, info_name = Tcl_GetStringFromObj (objv[1], &i); description = Tcl_GetStringFromObj (objv[2], &i); - function = Tcl_GetStringFromObj (objv[3], &i); - data = Tcl_GetStringFromObj (objv[4], &i); + args_description = Tcl_GetStringFromObj (objv[3], &i); + function = Tcl_GetStringFromObj (objv[4], &i); + data = Tcl_GetStringFromObj (objv[5], &i); result = script_ptr2str (script_api_hook_info (weechat_tcl_plugin, tcl_current_script, info_name, description, + args_description, &weechat_tcl_api_hook_info_cb, function, data)); @@ -4189,7 +4191,8 @@ weechat_tcl_api_hook_infolist (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { Tcl_Obj *objp; - char *result, *infolist_name, *description, *function, *data; + char *result, *infolist_name, *description, *pointer_description; + char *args_description, *function, *data; int i; /* make C compiler happy */ @@ -4201,7 +4204,7 @@ weechat_tcl_api_hook_infolist (ClientData clientData, Tcl_Interp *interp, TCL_RETURN_EMPTY; } - if (objc < 5) + if (objc < 7) { WEECHAT_SCRIPT_MSG_WRONG_ARGS(TCL_CURRENT_SCRIPT_NAME, "hook_infolist"); TCL_RETURN_EMPTY; @@ -4209,13 +4212,17 @@ weechat_tcl_api_hook_infolist (ClientData clientData, Tcl_Interp *interp, infolist_name = Tcl_GetStringFromObj (objv[1], &i); description = Tcl_GetStringFromObj (objv[2], &i); - function = Tcl_GetStringFromObj (objv[3], &i); - data = Tcl_GetStringFromObj (objv[4], &i); + pointer_description = Tcl_GetStringFromObj (objv[3], &i); + args_description = Tcl_GetStringFromObj (objv[4], &i); + function = Tcl_GetStringFromObj (objv[5], &i); + data = Tcl_GetStringFromObj (objv[6], &i); result = script_ptr2str (script_api_hook_infolist (weechat_tcl_plugin, tcl_current_script, infolist_name, description, + pointer_description, + args_description, &weechat_tcl_api_hook_infolist_cb, function, data)); diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index 5fafeec0c..5f6a0e4e3 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -34,7 +34,7 @@ struct t_weelist; struct timeval; /* API version (used to check that plugin has same API and can be loaded) */ -#define WEECHAT_PLUGIN_API_VERSION "20100209-01" +#define WEECHAT_PLUGIN_API_VERSION "20100212-01" /* macros for defining plugin infos */ #define WEECHAT_PLUGIN_NAME(__name) \ @@ -462,6 +462,7 @@ struct t_weechat_plugin struct t_hook *(*hook_info) (struct t_weechat_plugin *plugin, const char *info_name, const char *description, + const char *args_description, const char *(*callback)(void *data, const char *info_name, const char *arguments), @@ -469,6 +470,8 @@ struct t_weechat_plugin struct t_hook *(*hook_infolist) (struct t_weechat_plugin *plugin, const char *infolist_name, const char *description, + const char *pointer_description, + const char *args_description, struct t_infolist *(*callback)(void *data, const char *infolist_name, void *pointer, @@ -1017,14 +1020,18 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); __string) \ weechat_plugin->hook_modifier_exec(weechat_plugin, __modifier, \ __modifier_data, __string) -#define weechat_hook_info(__info_name, __description, __callback, \ - __data) \ +#define weechat_hook_info(__info_name, __description, \ + __args_description, __callback, __data) \ weechat_plugin->hook_info(weechat_plugin, __info_name, \ - __description, __callback, __data) + __description, __args_description, \ + __callback, __data) #define weechat_hook_infolist(__infolist_name, __description, \ - __callback, __data) \ + __pointer_description, \ + __args_description, __callback, __data) \ weechat_plugin->hook_infolist(weechat_plugin, __infolist_name, \ - __description, __callback, __data) + __description, __pointer_description, \ + __args_description, __callback, \ + __data) #define weechat_unhook(__hook) \ weechat_plugin->unhook( __hook) #define weechat_unhook_all() \ diff --git a/src/plugins/xfer/xfer-info.c b/src/plugins/xfer/xfer-info.c index de18a0974..947c0c698 100644 --- a/src/plugins/xfer/xfer-info.c +++ b/src/plugins/xfer/xfer-info.c @@ -91,5 +91,7 @@ xfer_info_init () { /* xfer infolist hooks */ weechat_hook_infolist ("xfer", N_("list of xfer"), + N_("xfer pointer (optional)"), + NULL, &xfer_info_get_infolist_cb, NULL); }