diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | doc/de/autogen/plugin_api/hdata.txt | 108 | ||||
-rw-r--r-- | doc/en/autogen/plugin_api/hdata.txt | 108 | ||||
-rw-r--r-- | doc/fr/autogen/plugin_api/hdata.txt | 108 | ||||
-rw-r--r-- | doc/it/autogen/plugin_api/hdata.txt | 108 | ||||
-rw-r--r-- | doc/ja/autogen/plugin_api/hdata.txt | 108 | ||||
-rw-r--r-- | po/cs.po | 37 | ||||
-rw-r--r-- | po/de.po | 37 | ||||
-rw-r--r-- | po/es.po | 37 | ||||
-rw-r--r-- | po/fr.po | 39 | ||||
-rw-r--r-- | po/hu.po | 37 | ||||
-rw-r--r-- | po/it.po | 37 | ||||
-rw-r--r-- | po/ja.po | 37 | ||||
-rw-r--r-- | po/pl.po | 37 | ||||
-rw-r--r-- | po/pt_BR.po | 37 | ||||
-rw-r--r-- | po/ru.po | 37 | ||||
-rw-r--r-- | po/tr.po | 37 | ||||
-rw-r--r-- | po/weechat.pot | 34 | ||||
-rw-r--r-- | src/plugins/plugin-script-callback.c | 38 | ||||
-rw-r--r-- | src/plugins/plugin-script-callback.h | 2 | ||||
-rw-r--r-- | src/plugins/plugin-script.c | 13 | ||||
-rw-r--r-- | src/plugins/script/script-buffer.c | 234 |
22 files changed, 1227 insertions, 47 deletions
@@ -1,7 +1,7 @@ WeeChat ChangeLog ================= Sébastien Helleu <flashcode@flashtux.org> -v0.4.2-dev, 2013-07-27 +v0.4.2-dev, 2013-07-28 This document lists all changes for each version. @@ -67,6 +67,8 @@ Version 0.4.2 (under dev!) * lua: fix interpreter used in API functions (bug #39470) * relay: add command "ping" in weechat protocol (task #12689) * relay: fix binding to an IP address (bug #39119) +* script: add info about things defined by script (like commands, options, ...) + in the detailed view of script (/script show) * xfer: add option xfer.look.pv_tags * xfer: fix compilation on OpenBSD (bug #39071) diff --git a/doc/de/autogen/plugin_api/hdata.txt b/doc/de/autogen/plugin_api/hdata.txt index b7f42f7d1..f5c6ff80e 100644 --- a/doc/de/autogen/plugin_api/hdata.txt +++ b/doc/de/autogen/plugin_api/hdata.txt @@ -2,6 +2,22 @@ |======================================== | Erweiterung | Name | Beschreibung | Variablen | Update erlaubt | Listen +| guile | guile_callback | callback of a script | + 'script' (pointer, hdata: "guile_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "guile_callback") + + 'next_callback' (pointer, hdata: "guile_callback") | + | + - + | guile | guile_script | Liste der Skripten | 'filename' (string) + 'interpreter' (pointer) + @@ -12,7 +28,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "guile_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "guile_script") + 'next_script' (pointer, hdata: "guile_script") | @@ -206,6 +222,22 @@ 'irc_servers' + 'last_irc_server' +| lua | lua_callback | callback of a script | + 'script' (pointer, hdata: "lua_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "lua_callback") + + 'next_callback' (pointer, hdata: "lua_callback") | + | + - + | lua | lua_script | Liste der Skripten | 'filename' (string) + 'interpreter' (pointer) + @@ -216,7 +248,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "lua_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "lua_script") + 'next_script' (pointer, hdata: "lua_script") | @@ -224,6 +256,22 @@ 'last_script' + 'scripts' +| perl | perl_callback | callback of a script | + 'script' (pointer, hdata: "perl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "perl_callback") + + 'next_callback' (pointer, hdata: "perl_callback") | + | + - + | perl | perl_script | Liste der Skripten | 'filename' (string) + 'interpreter' (pointer) + @@ -234,7 +282,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "perl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "perl_script") + 'next_script' (pointer, hdata: "perl_script") | @@ -242,6 +290,22 @@ 'last_script' + 'scripts' +| python | python_callback | callback of a script | + 'script' (pointer, hdata: "python_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "python_callback") + + 'next_callback' (pointer, hdata: "python_callback") | + | + - + | python | python_script | Liste der Skripten | 'filename' (string) + 'interpreter' (pointer) + @@ -252,7 +316,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "python_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "python_script") + 'next_script' (pointer, hdata: "python_script") | @@ -260,6 +324,22 @@ 'last_script' + 'scripts' +| ruby | ruby_callback | callback of a script | + 'script' (pointer, hdata: "ruby_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "ruby_callback") + + 'next_callback' (pointer, hdata: "ruby_callback") | + | + - + | ruby | ruby_script | Liste der Skripten | 'filename' (string) + 'interpreter' (pointer) + @@ -270,7 +350,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "ruby_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "ruby_script") + 'next_script' (pointer, hdata: "ruby_script") | @@ -306,6 +386,22 @@ 'last_script_repo' + 'scripts_repo' +| tcl | tcl_callback | callback of a script | + 'script' (pointer, hdata: "tcl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "tcl_callback") + + 'next_callback' (pointer, hdata: "tcl_callback") | + | + - + | tcl | tcl_script | Liste der Skripten | 'filename' (string) + 'interpreter' (pointer) + @@ -316,7 +412,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "tcl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "tcl_script") + 'next_script' (pointer, hdata: "tcl_script") | diff --git a/doc/en/autogen/plugin_api/hdata.txt b/doc/en/autogen/plugin_api/hdata.txt index 6ecf890b6..e795d0732 100644 --- a/doc/en/autogen/plugin_api/hdata.txt +++ b/doc/en/autogen/plugin_api/hdata.txt @@ -2,6 +2,22 @@ |======================================== | Plugin | Name | Description | Variables | Update allowed | Lists +| guile | guile_callback | callback of a script | + 'script' (pointer, hdata: "guile_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "guile_callback") + + 'next_callback' (pointer, hdata: "guile_callback") | + | + - + | guile | guile_script | list of scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -12,7 +28,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "guile_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "guile_script") + 'next_script' (pointer, hdata: "guile_script") | @@ -206,6 +222,22 @@ 'irc_servers' + 'last_irc_server' +| lua | lua_callback | callback of a script | + 'script' (pointer, hdata: "lua_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "lua_callback") + + 'next_callback' (pointer, hdata: "lua_callback") | + | + - + | lua | lua_script | list of scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -216,7 +248,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "lua_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "lua_script") + 'next_script' (pointer, hdata: "lua_script") | @@ -224,6 +256,22 @@ 'last_script' + 'scripts' +| perl | perl_callback | callback of a script | + 'script' (pointer, hdata: "perl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "perl_callback") + + 'next_callback' (pointer, hdata: "perl_callback") | + | + - + | perl | perl_script | list of scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -234,7 +282,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "perl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "perl_script") + 'next_script' (pointer, hdata: "perl_script") | @@ -242,6 +290,22 @@ 'last_script' + 'scripts' +| python | python_callback | callback of a script | + 'script' (pointer, hdata: "python_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "python_callback") + + 'next_callback' (pointer, hdata: "python_callback") | + | + - + | python | python_script | list of scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -252,7 +316,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "python_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "python_script") + 'next_script' (pointer, hdata: "python_script") | @@ -260,6 +324,22 @@ 'last_script' + 'scripts' +| ruby | ruby_callback | callback of a script | + 'script' (pointer, hdata: "ruby_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "ruby_callback") + + 'next_callback' (pointer, hdata: "ruby_callback") | + | + - + | ruby | ruby_script | list of scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -270,7 +350,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "ruby_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "ruby_script") + 'next_script' (pointer, hdata: "ruby_script") | @@ -306,6 +386,22 @@ 'last_script_repo' + 'scripts_repo' +| tcl | tcl_callback | callback of a script | + 'script' (pointer, hdata: "tcl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "tcl_callback") + + 'next_callback' (pointer, hdata: "tcl_callback") | + | + - + | tcl | tcl_script | list of scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -316,7 +412,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "tcl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "tcl_script") + 'next_script' (pointer, hdata: "tcl_script") | diff --git a/doc/fr/autogen/plugin_api/hdata.txt b/doc/fr/autogen/plugin_api/hdata.txt index 2485567b3..d24815bcc 100644 --- a/doc/fr/autogen/plugin_api/hdata.txt +++ b/doc/fr/autogen/plugin_api/hdata.txt @@ -2,6 +2,22 @@ |======================================== | Extension | Nom | Description | Variables | Mise à jour autorisée | Listes +| guile | guile_callback | callback d'un script | + 'script' (pointer, hdata: "guile_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "guile_callback") + + 'next_callback' (pointer, hdata: "guile_callback") | + | + - + | guile | guile_script | liste des scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -12,7 +28,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "guile_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "guile_script") + 'next_script' (pointer, hdata: "guile_script") | @@ -206,6 +222,22 @@ 'irc_servers' + 'last_irc_server' +| lua | lua_callback | callback d'un script | + 'script' (pointer, hdata: "lua_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "lua_callback") + + 'next_callback' (pointer, hdata: "lua_callback") | + | + - + | lua | lua_script | liste des scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -216,7 +248,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "lua_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "lua_script") + 'next_script' (pointer, hdata: "lua_script") | @@ -224,6 +256,22 @@ 'last_script' + 'scripts' +| perl | perl_callback | callback d'un script | + 'script' (pointer, hdata: "perl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "perl_callback") + + 'next_callback' (pointer, hdata: "perl_callback") | + | + - + | perl | perl_script | liste des scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -234,7 +282,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "perl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "perl_script") + 'next_script' (pointer, hdata: "perl_script") | @@ -242,6 +290,22 @@ 'last_script' + 'scripts' +| python | python_callback | callback d'un script | + 'script' (pointer, hdata: "python_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "python_callback") + + 'next_callback' (pointer, hdata: "python_callback") | + | + - + | python | python_script | liste des scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -252,7 +316,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "python_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "python_script") + 'next_script' (pointer, hdata: "python_script") | @@ -260,6 +324,22 @@ 'last_script' + 'scripts' +| ruby | ruby_callback | callback d'un script | + 'script' (pointer, hdata: "ruby_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "ruby_callback") + + 'next_callback' (pointer, hdata: "ruby_callback") | + | + - + | ruby | ruby_script | liste des scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -270,7 +350,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "ruby_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "ruby_script") + 'next_script' (pointer, hdata: "ruby_script") | @@ -306,6 +386,22 @@ 'last_script_repo' + 'scripts_repo' +| tcl | tcl_callback | callback d'un script | + 'script' (pointer, hdata: "tcl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "tcl_callback") + + 'next_callback' (pointer, hdata: "tcl_callback") | + | + - + | tcl | tcl_script | liste des scripts | 'filename' (string) + 'interpreter' (pointer) + @@ -316,7 +412,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "tcl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "tcl_script") + 'next_script' (pointer, hdata: "tcl_script") | diff --git a/doc/it/autogen/plugin_api/hdata.txt b/doc/it/autogen/plugin_api/hdata.txt index 31bc627ea..cadd47187 100644 --- a/doc/it/autogen/plugin_api/hdata.txt +++ b/doc/it/autogen/plugin_api/hdata.txt @@ -2,6 +2,22 @@ |======================================== | Plugin | Nome | Descrizione | Variabili | Aggiornamento consentito | Liste +| guile | guile_callback | callback of a script | + 'script' (pointer, hdata: "guile_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "guile_callback") + + 'next_callback' (pointer, hdata: "guile_callback") | + | + - + | guile | guile_script | elenco degli script | 'filename' (string) + 'interpreter' (pointer) + @@ -12,7 +28,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "guile_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "guile_script") + 'next_script' (pointer, hdata: "guile_script") | @@ -206,6 +222,22 @@ 'irc_servers' + 'last_irc_server' +| lua | lua_callback | callback of a script | + 'script' (pointer, hdata: "lua_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "lua_callback") + + 'next_callback' (pointer, hdata: "lua_callback") | + | + - + | lua | lua_script | elenco degli script | 'filename' (string) + 'interpreter' (pointer) + @@ -216,7 +248,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "lua_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "lua_script") + 'next_script' (pointer, hdata: "lua_script") | @@ -224,6 +256,22 @@ 'last_script' + 'scripts' +| perl | perl_callback | callback of a script | + 'script' (pointer, hdata: "perl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "perl_callback") + + 'next_callback' (pointer, hdata: "perl_callback") | + | + - + | perl | perl_script | elenco degli script | 'filename' (string) + 'interpreter' (pointer) + @@ -234,7 +282,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "perl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "perl_script") + 'next_script' (pointer, hdata: "perl_script") | @@ -242,6 +290,22 @@ 'last_script' + 'scripts' +| python | python_callback | callback of a script | + 'script' (pointer, hdata: "python_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "python_callback") + + 'next_callback' (pointer, hdata: "python_callback") | + | + - + | python | python_script | elenco degli script | 'filename' (string) + 'interpreter' (pointer) + @@ -252,7 +316,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "python_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "python_script") + 'next_script' (pointer, hdata: "python_script") | @@ -260,6 +324,22 @@ 'last_script' + 'scripts' +| ruby | ruby_callback | callback of a script | + 'script' (pointer, hdata: "ruby_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "ruby_callback") + + 'next_callback' (pointer, hdata: "ruby_callback") | + | + - + | ruby | ruby_script | elenco degli script | 'filename' (string) + 'interpreter' (pointer) + @@ -270,7 +350,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "ruby_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "ruby_script") + 'next_script' (pointer, hdata: "ruby_script") | @@ -306,6 +386,22 @@ 'last_script_repo' + 'scripts_repo' +| tcl | tcl_callback | callback of a script | + 'script' (pointer, hdata: "tcl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "tcl_callback") + + 'next_callback' (pointer, hdata: "tcl_callback") | + | + - + | tcl | tcl_script | elenco degli script | 'filename' (string) + 'interpreter' (pointer) + @@ -316,7 +412,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "tcl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "tcl_script") + 'next_script' (pointer, hdata: "tcl_script") | diff --git a/doc/ja/autogen/plugin_api/hdata.txt b/doc/ja/autogen/plugin_api/hdata.txt index 3e984b9e1..104c3bd93 100644 --- a/doc/ja/autogen/plugin_api/hdata.txt +++ b/doc/ja/autogen/plugin_api/hdata.txt @@ -2,6 +2,22 @@ |======================================== | プラグイン | 名前 | 説明 | 変数 | アップデート可 | リスト +| guile | guile_callback | callback of a script | + 'script' (pointer, hdata: "guile_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "guile_callback") + + 'next_callback' (pointer, hdata: "guile_callback") | + | + - + | guile | guile_script | スクリプトのリスト | 'filename' (string) + 'interpreter' (pointer) + @@ -12,7 +28,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "guile_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "guile_script") + 'next_script' (pointer, hdata: "guile_script") | @@ -206,6 +222,22 @@ 'irc_servers' + 'last_irc_server' +| lua | lua_callback | callback of a script | + 'script' (pointer, hdata: "lua_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "lua_callback") + + 'next_callback' (pointer, hdata: "lua_callback") | + | + - + | lua | lua_script | スクリプトのリスト | 'filename' (string) + 'interpreter' (pointer) + @@ -216,7 +248,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "lua_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "lua_script") + 'next_script' (pointer, hdata: "lua_script") | @@ -224,6 +256,22 @@ 'last_script' + 'scripts' +| perl | perl_callback | callback of a script | + 'script' (pointer, hdata: "perl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "perl_callback") + + 'next_callback' (pointer, hdata: "perl_callback") | + | + - + | perl | perl_script | スクリプトのリスト | 'filename' (string) + 'interpreter' (pointer) + @@ -234,7 +282,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "perl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "perl_script") + 'next_script' (pointer, hdata: "perl_script") | @@ -242,6 +290,22 @@ 'last_script' + 'scripts' +| python | python_callback | callback of a script | + 'script' (pointer, hdata: "python_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "python_callback") + + 'next_callback' (pointer, hdata: "python_callback") | + | + - + | python | python_script | スクリプトのリスト | 'filename' (string) + 'interpreter' (pointer) + @@ -252,7 +316,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "python_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "python_script") + 'next_script' (pointer, hdata: "python_script") | @@ -260,6 +324,22 @@ 'last_script' + 'scripts' +| ruby | ruby_callback | callback of a script | + 'script' (pointer, hdata: "ruby_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "ruby_callback") + + 'next_callback' (pointer, hdata: "ruby_callback") | + | + - + | ruby | ruby_script | スクリプトのリスト | 'filename' (string) + 'interpreter' (pointer) + @@ -270,7 +350,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "ruby_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "ruby_script") + 'next_script' (pointer, hdata: "ruby_script") | @@ -306,6 +386,22 @@ 'last_script_repo' + 'scripts_repo' +| tcl | tcl_callback | callback of a script | + 'script' (pointer, hdata: "tcl_script") + + 'function' (string) + + 'data' (string) + + 'config_file' (pointer, hdata: "config_file") + + 'config_section' (pointer, hdata: "config_section") + + 'config_option' (pointer, hdata: "config_option") + + 'hook' (pointer) + + 'buffer' (pointer, hdata: "buffer") + + 'bar_item' (pointer, hdata: "bar_item") + + 'upgrade_file' (pointer) + + 'prev_callback' (pointer, hdata: "tcl_callback") + + 'next_callback' (pointer, hdata: "tcl_callback") | + | + - + | tcl | tcl_script | スクリプトのリスト | 'filename' (string) + 'interpreter' (pointer) + @@ -316,7 +412,7 @@ 'description' (string) + 'shutdown_func' (string) + 'charset' (string) + - 'callbacks' (pointer) + + 'callbacks' (pointer, hdata: "tcl_callback") + 'unloading' (integer) + 'prev_script' (pointer, hdata: "tcl_script") + 'next_script' (pointer, hdata: "tcl_script") | @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -8561,6 +8561,10 @@ msgstr "" "jméno skriptu (může začínat nebo končit \"*\" jako zástupným znakem) " "(volitelné)" +#, fuzzy +msgid "callback of a script" +msgstr "seznam skriptů" + #, fuzzy, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -8769,6 +8773,30 @@ msgstr "%s%s: server \"%s\" již existuje, nemohu jej vytvořít!" msgid "%s: all scripts are up-to-date" msgstr "%s: skripty odebrány" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "konfigurační nastavení" + +#, fuzzy, c-format +msgid "command /%s" +msgstr "příkazy weechat" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "Volba \"%s%s%s\":" + +#, fuzzy, c-format +msgid "bar item \"%s\"" +msgstr "seznam položek polí" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "Volba \"%s%s%s\":" + +#, fuzzy +msgid "(old options?)" +msgstr "(výchozí volby)" + msgid "Script" msgstr "" @@ -8818,6 +8846,13 @@ msgstr "ukončit WeeChat" msgid "Max WeeChat" msgstr "ukončit WeeChat" +#, fuzzy +msgid "Script has defined:" +msgstr "načteny %s skripty:" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German <weechatter@arcor.de>\n" @@ -9336,6 +9336,10 @@ msgstr "" "Name des Skriptes (darf mit einem \"*\" als Platzhalter beginnen oder enden) " "(optional)" +#, fuzzy +msgid "callback of a script" +msgstr "Liste der Skripten" + #, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -9549,6 +9553,30 @@ msgstr "" msgid "%s: all scripts are up-to-date" msgstr "%s: alle Skripten sind auf dem neusten Stand" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "Konfigurationsoptionen" + +#, fuzzy, c-format +msgid "command /%s" +msgstr "Alias-Befehle" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "Option \"%s%s%s\":" + +#, fuzzy, c-format +msgid "bar item \"%s\"" +msgstr "Bar-Item" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "Option \"%s%s%s\":" + +#, fuzzy +msgid "(old options?)" +msgstr "(Standardoption)" + msgid "Script" msgstr "Skript" @@ -9594,6 +9622,13 @@ msgstr "Min WeeChat" msgid "Max WeeChat" msgstr "Max WeeChat" +#, fuzzy +msgid "Script has defined:" +msgstr "Installierte Skripten:" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "Alt+Taste/Eingabezeile: v=zurück zur Liste d=gehe zu Diff" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -8832,6 +8832,10 @@ msgstr "" "nombre del script (puede empezar o terminar con \"*\" como comodín) " "(opcional)" +#, fuzzy +msgid "callback of a script" +msgstr "lista de scripts" + #, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -9038,6 +9042,30 @@ msgstr "%s: script \"%s\" ya está instalado y al día" msgid "%s: all scripts are up-to-date" msgstr "%s: todos los scripts están al día" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "opciones de configuración" + +#, fuzzy, c-format +msgid "command /%s" +msgstr "Alias de comandos" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "Opción \"%s%s%s\":" + +#, fuzzy, c-format +msgid "bar item \"%s\"" +msgstr "elemento de barra" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "Opción \"%s%s%s\":" + +#, fuzzy +msgid "(old options?)" +msgstr "(opciones por defecto)" + msgid "Script" msgstr "Script" @@ -9083,6 +9111,13 @@ msgstr "Min WeeChat" msgid "Max WeeChat" msgstr "Max WeeChat" +#, fuzzy +msgid "Script has defined:" +msgstr "Scripts cargados:" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" -"PO-Revision-Date: 2013-07-28 12:33+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" +"PO-Revision-Date: 2013-07-28 16:12+0200\n" "Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -9097,6 +9097,9 @@ msgstr "" "nom de script (peut démarrer ou se terminer par \"*\" comme joker) " "(optionnel)" +msgid "callback of a script" +msgstr "callback d'un script" + #, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -9309,6 +9312,29 @@ msgstr "%s: le script \"%s\" est déjà installé et à jour" msgid "%s: all scripts are up-to-date" msgstr "%s: tous les scripts sont à jour" +#, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "fichier de configuration \"%s\" (options %s.*)" + +#, c-format +msgid "command /%s" +msgstr "commande /%s" + +#, c-format +msgid "completion %%(%s)" +msgstr "complétion %%(%s)" + +#, c-format +msgid "bar item \"%s\"" +msgstr "objet de barre \"%s\"" + +#, c-format +msgid "options %s%s%s" +msgstr "options %s%s%s" + +msgid "(old options?)" +msgstr "(anciennes options ?)" + msgid "Script" msgstr "Script" @@ -9354,6 +9380,12 @@ msgstr "WeeChat mini" msgid "Max WeeChat" msgstr "WeeChat maxi" +msgid "Script has defined:" +msgstr "Le script a défini :" + +msgid "(nothing)" +msgstr "(rien)" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "Alt+touche/entrée: v=retour à la liste d=sauter au diff" @@ -10238,6 +10270,9 @@ msgstr "Type" msgid "Constants" msgstr "Constantes" +#~ msgid "Script is currently using following things:" +#~ msgstr "Le script utilise actuellement les choses suivantes :" + #~ msgid "" #~ "%sChannel %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s" #~ "%s)" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -7996,6 +7996,10 @@ msgstr "" msgid "script name (can start or end with \"*\" as wildcard) (optional)" msgstr "" +#, fuzzy +msgid "callback of a script" +msgstr "Aliaszok listája:\n" + #, fuzzy, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -8204,6 +8208,30 @@ msgstr "%s a \"%s\" szerver már létezik, nem hozhatja létre!\n" msgid "%s: all scripts are up-to-date" msgstr "A \"%s\" modul eltávolítva.\n" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "Nem található az opció\n" + +#, fuzzy, c-format +msgid "command /%s" +msgstr "%s belső parancsok:\n" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "Felhasználók a %s%s%s szobában: %s[" + +#, fuzzy, c-format +msgid "bar item \"%s\"" +msgstr "Aliaszok listája:\n" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "Felhasználók a %s%s%s szobában: %s[" + +#, fuzzy +msgid "(old options?)" +msgstr "konfigurációs paraméterek beállítása" + msgid "Script" msgstr "" @@ -8254,6 +8282,13 @@ msgstr "WeeChat szlogen" msgid "Max WeeChat" msgstr "WeeChat szlogen" +#, fuzzy +msgid "Script has defined:" +msgstr "FIFO cső bezárva\n" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -8917,6 +8917,10 @@ msgstr "" "nome script (può iniziare o terminare con \"*\" come carattere jolly) " "(opzionale)" +#, fuzzy +msgid "callback of a script" +msgstr "elenco degli script" + #, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -9129,6 +9133,30 @@ msgstr "%s: script \"%s\" già registrato e aggiornato" msgid "%s: all scripts are up-to-date" msgstr "%s: tutti gli script sono aggiornati" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "opzioni di configurazione" + +#, fuzzy, c-format +msgid "command /%s" +msgstr "Alias dei comandi" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "Opzione \"%s%s%s\":" + +#, fuzzy, c-format +msgid "bar item \"%s\"" +msgstr "elemento barra" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "Opzione \"%s%s%s\":" + +#, fuzzy +msgid "(old options?)" +msgstr "(opzioni predefinite)" + msgid "Script" msgstr "Script" @@ -9174,6 +9202,13 @@ msgstr "Versione minima di WeeChat" msgid "Max WeeChat" msgstr "Versione massima di WeeChat" +#, fuzzy +msgid "Script has defined:" +msgstr "Script caricati:" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/WeeChat>\n" @@ -8790,6 +8790,10 @@ msgid "script name (can start or end with \"*\" as wildcard) (optional)" msgstr "" "スクリプト名 (ワイルドカードとして \"*\" で始めるか終われる) (オプション)" +#, fuzzy +msgid "callback of a script" +msgstr "スクリプトのリスト" + #, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -8999,6 +9003,30 @@ msgstr "%s: スクリプト \"%s\" の最新版がインストール済みです msgid "%s: all scripts are up-to-date" msgstr "%s: すべてのスクリプトは最新の状態になっています" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "設定オプション" + +#, fuzzy, c-format +msgid "command /%s" +msgstr "エイリアスコマンド" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "オプション \"%s%s%s\":" + +#, fuzzy, c-format +msgid "bar item \"%s\"" +msgstr "バーアイテム" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "オプション \"%s%s%s\":" + +#, fuzzy +msgid "(old options?)" +msgstr "(デフォルトオプション)" + msgid "Script" msgstr "スクリプト" @@ -9044,6 +9072,13 @@ msgstr "WeeChat を最小化" msgid "Max WeeChat" msgstr "WeeChat を最大化" +#, fuzzy +msgid "Script has defined:" +msgstr "ロード済みスクリプト:" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "Alt+key/input: v=リストに戻る d=比較する" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -8939,6 +8939,10 @@ msgstr "wskaźnik skryptu (opcjonalne)" msgid "script name (can start or end with \"*\" as wildcard) (optional)" msgstr "nazwa skryptu (może się zaczynać lub kończyć \"*\") (opcjonalne)" +#, fuzzy +msgid "callback of a script" +msgstr "lista skryptów" + #, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -9148,6 +9152,30 @@ msgstr "%s: skrypt \"%s\" jest już zainstalowany i jest aktualny" msgid "%s: all scripts are up-to-date" msgstr "%s: wszystkie skrypty są aktualne" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "opcje konfiguracyjne" + +#, fuzzy, c-format +msgid "command /%s" +msgstr "Aliasy komend" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "Opcja \"%s%s%s\":" + +#, fuzzy, c-format +msgid "bar item \"%s\"" +msgstr "element paska" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "Opcja \"%s%s%s\":" + +#, fuzzy +msgid "(old options?)" +msgstr "(domyślne opcje)" + msgid "Script" msgstr "Skrypt" @@ -9193,6 +9221,13 @@ msgstr "Min WeeChat" msgid "Max WeeChat" msgstr "Max WeeChat" +#, fuzzy +msgid "Script has defined:" +msgstr "Załadowane skrypty:" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "Alt+klawisz/wejście: v=wróć do listy d=skocz do diff" diff --git a/po/pt_BR.po b/po/pt_BR.po index 81fe54506..949d77697 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -8178,6 +8178,10 @@ msgstr "" "nome do script (pode começar ou terminar com \"*\" como um coringa) " "(opcional)" +#, fuzzy +msgid "callback of a script" +msgstr "list de scripts" + #, fuzzy, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -8388,6 +8392,30 @@ msgstr "" msgid "%s: all scripts are up-to-date" msgstr "%s: scripts descarregados" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "opções de configuração" + +#, fuzzy, c-format +msgid "command /%s" +msgstr "comandos do weechat" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "Opção \"%s%s%s\":" + +#, fuzzy, c-format +msgid "bar item \"%s\"" +msgstr "item da barra" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "Opção \"%s%s%s\":" + +#, fuzzy +msgid "(old options?)" +msgstr "(opções padrão)" + msgid "Script" msgstr "" @@ -8437,6 +8465,13 @@ msgstr "quit WeeChat" msgid "Max WeeChat" msgstr "quit WeeChat" +#, fuzzy +msgid "Script has defined:" +msgstr "scripts %s carregados:" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:52+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -8021,6 +8021,10 @@ msgstr "" msgid "script name (can start or end with \"*\" as wildcard) (optional)" msgstr "" +#, fuzzy +msgid "callback of a script" +msgstr "Список сокращений:\n" + #, fuzzy, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -8229,6 +8233,30 @@ msgstr "%s сервер \"%s\" уже существует, не могу соз msgid "%s: all scripts are up-to-date" msgstr "Plugin \"%s\" выгружен.\n" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "Не найден параметр\n" + +#, fuzzy, c-format +msgid "command /%s" +msgstr "Внутренние команды %s:\n" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "Ники %s%s%s: %s[" + +#, fuzzy, c-format +msgid "bar item \"%s\"" +msgstr "Список сокращений:\n" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "Ники %s%s%s: %s[" + +#, fuzzy +msgid "(old options?)" +msgstr "настроить параметры конфигурации" + msgid "Script" msgstr "" @@ -8279,6 +8307,13 @@ msgstr "слоган WeeChat" msgid "Max WeeChat" msgstr "слоган WeeChat" +#, fuzzy +msgid "Script has defined:" +msgstr "FIFO pipe закрыт\n" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-07-18 19:52+0200\n" "Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -7108,6 +7108,10 @@ msgstr "" msgid "script name (can start or end with \"*\" as wildcard) (optional)" msgstr "" +#, fuzzy +msgid "callback of a script" +msgstr "betiklerin listesi" + #, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -7306,6 +7310,30 @@ msgstr "" msgid "%s: all scripts are up-to-date" msgstr "%s: tüm betikler güncel" +#, fuzzy, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "yapılandırma seçenekleri" + +#, c-format +msgid "command /%s" +msgstr "" + +#, fuzzy, c-format +msgid "completion %%(%s)" +msgstr "Seçenek \"%s%s%s\":" + +#, c-format +msgid "bar item \"%s\"" +msgstr "" + +#, fuzzy, c-format +msgid "options %s%s%s" +msgstr "Seçenek \"%s%s%s\":" + +#, fuzzy +msgid "(old options?)" +msgstr "(varsayılan seçenekler)" + msgid "Script" msgstr "Betik" @@ -7351,6 +7379,13 @@ msgstr "" msgid "Max WeeChat" msgstr "" +#, fuzzy +msgid "Script has defined:" +msgstr "Yüklü betikler:" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index ccfa0446b..f8a7ac4ba 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-28 12:32+0200\n" +"POT-Creation-Date: 2013-07-28 16:11+0200\n" "PO-Revision-Date: 2013-02-14 18:20+0100\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -7075,6 +7075,9 @@ msgstr "" msgid "script name (can start or end with \"*\" as wildcard) (optional)" msgstr "" +msgid "callback of a script" +msgstr "" + #, c-format msgid "" "%s%s: warning, invalid pointer (\"%s\") for function \"%s\" (script: %s)" @@ -7273,6 +7276,29 @@ msgstr "" msgid "%s: all scripts are up-to-date" msgstr "" +#, c-format +msgid "configuration file \"%s\" (options %s.*)" +msgstr "" + +#, c-format +msgid "command /%s" +msgstr "" + +#, c-format +msgid "completion %%(%s)" +msgstr "" + +#, c-format +msgid "bar item \"%s\"" +msgstr "" + +#, c-format +msgid "options %s%s%s" +msgstr "" + +msgid "(old options?)" +msgstr "" + msgid "Script" msgstr "" @@ -7318,6 +7344,12 @@ msgstr "" msgid "Max WeeChat" msgstr "" +msgid "Script has defined:" +msgstr "" + +msgid "(nothing)" +msgstr "" + msgid "Alt+key/input: v=back to list d=jump to diff" msgstr "" diff --git a/src/plugins/plugin-script-callback.c b/src/plugins/plugin-script-callback.c index 1596b123f..486cea058 100644 --- a/src/plugins/plugin-script-callback.c +++ b/src/plugins/plugin-script-callback.c @@ -21,7 +21,9 @@ #include <stdlib.h> #include <unistd.h> +#include <stdio.h> #include <string.h> +#include <stddef.h> #include "weechat-plugin.h" #include "plugin-script.h" @@ -140,6 +142,42 @@ plugin_script_callback_remove_all (struct t_plugin_script *script) } /* + * Gets hdata for script callback. + */ + +struct t_hdata * +plugin_script_callback_hdata_callback_cb (void *data, + const char *hdata_name) +{ + struct t_weechat_plugin *weechat_plugin; + struct t_hdata *hdata; + char str_hdata_script[128]; + + weechat_plugin = (struct t_weechat_plugin *)data; + + hdata = weechat_hdata_new (hdata_name, "prev_callback", "next_callback", + 0, 0, NULL, NULL); + if (hdata) + { + snprintf (str_hdata_script, sizeof (str_hdata_script), + "%s_script", weechat_plugin->name); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, script, POINTER, 0, NULL, str_hdata_script); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, function, STRING, 0, NULL, NULL); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, data, STRING, 0, NULL, NULL); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, config_file, POINTER, 0, NULL, "config_file"); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, config_section, POINTER, 0, NULL, "config_section"); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, config_option, POINTER, 0, NULL, "config_option"); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, hook, POINTER, 0, NULL, NULL); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, buffer, POINTER, 0, NULL, "buffer"); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, bar_item, POINTER, 0, NULL, "bar_item"); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, upgrade_file, POINTER, 0, NULL, NULL); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, prev_callback, POINTER, 0, NULL, hdata_name); + WEECHAT_HDATA_VAR(struct t_plugin_script_cb, next_callback, POINTER, 0, NULL, hdata_name); + } + return hdata; +} + +/* * Prints callbacks in WeeChat log file (usually for crash dump). */ diff --git a/src/plugins/plugin-script-callback.h b/src/plugins/plugin-script-callback.h index f9db72f25..7b783ede6 100644 --- a/src/plugins/plugin-script-callback.h +++ b/src/plugins/plugin-script-callback.h @@ -42,6 +42,8 @@ extern struct t_plugin_script_cb *plugin_script_callback_add (struct t_plugin_sc extern void plugin_script_callback_remove (struct t_plugin_script *script, struct t_plugin_script_cb *script_callback); extern void plugin_script_callback_remove_all (struct t_plugin_script *script); +extern struct t_hdata *plugin_script_callback_hdata_callback_cb (void *data, + const char *hdata_name); extern void plugin_script_callback_print_log (struct t_weechat_plugin *weechat_plugin, struct t_plugin_script_cb *script_callback); diff --git a/src/plugins/plugin-script.c b/src/plugins/plugin-script.c index 6dccac325..d2956a84f 100644 --- a/src/plugins/plugin-script.c +++ b/src/plugins/plugin-script.c @@ -184,7 +184,7 @@ plugin_script_init (struct t_weechat_plugin *weechat_plugin, free (completion); /* add completion, hdata and infolist */ - length = strlen (weechat_plugin->name) + 16; + length = strlen (weechat_plugin->name) + 64; string = malloc (length); if (string) { @@ -192,11 +192,15 @@ plugin_script_init (struct t_weechat_plugin *weechat_plugin, weechat_hook_completion (string, N_("list of scripts"), init->callback_completion, NULL); weechat_hook_hdata (string, N_("list of scripts"), - init->callback_hdata, NULL); + init->callback_hdata, weechat_plugin); weechat_hook_infolist (string, N_("list of scripts"), N_("script pointer (optional)"), N_("script name (can start or end with \"*\" as wildcard) (optional)"), init->callback_infolist, NULL); + snprintf (string, length, "%s_callback", weechat_plugin->name); + weechat_hook_hdata (string, N_("callback of a script"), + &plugin_script_callback_hdata_callback_cb, + weechat_plugin); free (string); } @@ -1354,11 +1358,14 @@ plugin_script_hdata_script (struct t_weechat_plugin *weechat_plugin, const char *hdata_name) { struct t_hdata *hdata; + char str_hdata_callback[128]; hdata = weechat_hdata_new (hdata_name, "prev_script", "next_script", 0, 0, NULL, NULL); if (hdata) { + snprintf (str_hdata_callback, sizeof (str_hdata_callback), + "%s_callback", weechat_plugin->name); WEECHAT_HDATA_VAR(struct t_plugin_script, filename, STRING, 0, NULL, NULL); WEECHAT_HDATA_VAR(struct t_plugin_script, interpreter, POINTER, 0, NULL, NULL); WEECHAT_HDATA_VAR(struct t_plugin_script, name, STRING, 0, NULL, NULL); @@ -1368,7 +1375,7 @@ plugin_script_hdata_script (struct t_weechat_plugin *weechat_plugin, WEECHAT_HDATA_VAR(struct t_plugin_script, description, STRING, 0, NULL, NULL); WEECHAT_HDATA_VAR(struct t_plugin_script, shutdown_func, STRING, 0, NULL, NULL); WEECHAT_HDATA_VAR(struct t_plugin_script, charset, STRING, 0, NULL, NULL); - WEECHAT_HDATA_VAR(struct t_plugin_script, callbacks, POINTER, 0, NULL, NULL); + WEECHAT_HDATA_VAR(struct t_plugin_script, callbacks, POINTER, 0, NULL, str_hdata_callback); WEECHAT_HDATA_VAR(struct t_plugin_script, unloading, INTEGER, 0, NULL, NULL); WEECHAT_HDATA_VAR(struct t_plugin_script, prev_script, POINTER, 0, NULL, hdata_name); WEECHAT_HDATA_VAR(struct t_plugin_script, next_script, POINTER, 0, NULL, hdata_name); diff --git a/src/plugins/script/script-buffer.c b/src/plugins/script/script-buffer.c index 65d5d09d1..e3f7d9f57 100644 --- a/src/plugins/script/script-buffer.c +++ b/src/plugins/script/script-buffer.c @@ -23,6 +23,7 @@ #include <stdio.h> #include <string.h> #include <time.h> +#include <libgen.h> #include "../weechat-plugin.h" #include "script.h" @@ -354,6 +355,208 @@ script_buffer_detail_label (const char *text, int max_length) } /* + * Gets pointer to a script (to the script managed by the appropriate plugin, + * for example python). + */ + +struct t_plugin_script * +script_buffer_get_script_pointer (struct t_script_repo *script, + struct t_hdata *hdata_script) +{ + char *filename, *ptr_base_name; + const char *ptr_filename; + void *ptr_script; + + ptr_script = weechat_hdata_get_list (hdata_script, "scripts"); + while (ptr_script) + { + ptr_filename = weechat_hdata_string (hdata_script, + ptr_script, "filename"); + if (ptr_filename) + { + filename = strdup (ptr_filename); + if (filename) + { + ptr_base_name = basename (filename); + if (strcmp (ptr_base_name, script->name_with_extension) == 0) + { + free (filename); + return ptr_script; + } + free (filename); + } + } + ptr_script = weechat_hdata_move (hdata_script, ptr_script, 1); + } + + /* script not found */ + return NULL; +} + +/* + * Gets a list with usage of the script (commands, config options...). + */ + +struct t_weelist * +script_buffer_get_script_usage (struct t_script_repo *script) +{ + struct t_weelist *list; + char hdata_name[128], str_option[256], str_info[1024]; + int config_files; + const char *ptr_name_hdata_callback, *type; + struct t_hdata *ptr_hdata_script, *ptr_hdata_callback; + struct t_hdata *ptr_hdata_config_file, *ptr_hdata_bar_item; + void *ptr_script, *ptr_callback; + struct t_config_file *ptr_config_file; + struct t_hook *ptr_hook; + struct t_gui_bar_item *ptr_bar_item; + struct t_infolist *infolist; + + list = weechat_list_new (); + + config_files = 0; + + snprintf (hdata_name, sizeof (hdata_name), + "%s_script", script_language[script->language]); + ptr_hdata_script = weechat_hdata_get (hdata_name); + if (!ptr_hdata_script) + goto end; + + ptr_script = script_buffer_get_script_pointer (script, ptr_hdata_script); + if (!ptr_script) + goto end; + + ptr_name_hdata_callback = weechat_hdata_get_var_hdata (ptr_hdata_script, + "callbacks"); + if (!ptr_name_hdata_callback) + goto end; + ptr_hdata_callback = weechat_hdata_get (ptr_name_hdata_callback); + if (!ptr_hdata_callback) + goto end; + + ptr_hdata_config_file = weechat_hdata_get ("config_file"); + ptr_hdata_bar_item = weechat_hdata_get ("bar_item"); + + ptr_callback = weechat_hdata_pointer (ptr_hdata_script, + ptr_script, + "callbacks"); + while (ptr_callback) + { + str_info[0] = '\0'; + ptr_config_file = weechat_hdata_pointer (ptr_hdata_callback, + ptr_callback, + "config_file"); + ptr_hook = weechat_hdata_pointer (ptr_hdata_callback, + ptr_callback, + "hook"); + ptr_bar_item = weechat_hdata_pointer (ptr_hdata_callback, + ptr_callback, + "bar_item"); + if (ptr_config_file) + { + snprintf (str_info, sizeof (str_info), + _("configuration file \"%s\" (options %s.*)"), + weechat_hdata_string (ptr_hdata_config_file, + ptr_config_file, + "filename"), + weechat_hdata_string (ptr_hdata_config_file, + ptr_config_file, + "name")); + config_files++; + } + else if (ptr_hook) + { + infolist = weechat_infolist_get ("hook", ptr_hook, NULL); + if (infolist) + { + if (weechat_infolist_next (infolist)) + { + type = weechat_infolist_string (infolist, "type"); + if (type) + { + if (strcmp (type, "command") == 0) + { + snprintf (str_info, sizeof (str_info), + _("command /%s"), + weechat_infolist_string (infolist, + "command")); + } + else if (strcmp (type, "completion") == 0) + { + snprintf (str_info, sizeof (str_info), + _("completion %%(%s)"), + weechat_infolist_string (infolist, + "completion_item")); + } + else if (strcmp (type, "info") == 0) + { + snprintf (str_info, sizeof (str_info), + "info \"%s\"", + weechat_infolist_string (infolist, + "info_name")); + } + else if (strcmp (type, "info_hashtable") == 0) + { + snprintf (str_info, sizeof (str_info), + "info_hashtable \"%s\"", + weechat_infolist_string (infolist, + "info_name")); + } + else if (strcmp (type, "infolist") == 0) + { + snprintf (str_info, sizeof (str_info), + "infolist \"%s\"", + weechat_infolist_string (infolist, + "infolist_name")); + } + } + } + weechat_infolist_free (infolist); + } + } + else if (ptr_bar_item) + { + snprintf (str_info, sizeof (str_info), + _("bar item \"%s\""), + weechat_hdata_string (ptr_hdata_bar_item, + ptr_bar_item, + "name")); + } + if (str_info[0]) + { + weechat_list_add (list, str_info, + WEECHAT_LIST_POS_END, NULL); + } + ptr_callback = weechat_hdata_move (ptr_hdata_callback, + ptr_callback, + 1); + } + +end: + snprintf (str_option, sizeof (str_option), + "plugins.var.%s.%s.*", + script_language[script->language], + weechat_hdata_string (ptr_hdata_script, ptr_script, "name")); + infolist = weechat_infolist_get ("option", NULL, str_option); + if (infolist) + { + if (weechat_infolist_next (infolist)) + { + snprintf (str_info, sizeof (str_info), + _("options %s%s%s"), + str_option, + (config_files > 0) ? " " : "", + (config_files > 0) ? _("(old options?)") : ""); + weechat_list_add (list, str_info, + WEECHAT_LIST_POS_END, NULL); + } + weechat_infolist_free (infolist); + } + + return list; +} + +/* * Displays detail on a script. */ @@ -369,6 +572,8 @@ script_buffer_display_detail_script (struct t_script_repo *script) N_("Min WeeChat"), N_("Max WeeChat"), NULL }; int i, length, max_length, line; + struct t_weelist *list; + struct t_weelist_item *ptr_item; max_length = 0; for (i = 0; labels[i]; i++) @@ -475,6 +680,35 @@ script_buffer_display_detail_script (struct t_script_repo *script) (script->max_weechat) ? script->max_weechat : "-"); line++; + if (script->status & SCRIPT_STATUS_RUNNING) + { + list = script_buffer_get_script_usage (script); + if (list) + { + line++; + weechat_printf_y (script_buffer, line + 1, + _("Script has defined:")); + i = 0; + ptr_item = weechat_list_get (list, 0); + while (ptr_item) + { + line++; + weechat_printf_y (script_buffer, line + 1, + " %s", weechat_list_string (ptr_item)); + ptr_item = weechat_list_next (ptr_item); + i++; + } + if (i == 0) + { + line++; + weechat_printf_y (script_buffer, line + 1, + " %s", _("(nothing)")); + } + line++; + weechat_list_free (list); + } + } + script_buffer_detail_script_last_line = line + 2; script_buffer_detail_script_line_diff = -1; } |