diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-03-16 16:06:16 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-03-16 16:06:16 +0100 |
commit | e1e3109da3ecf6b81cb6c725f500c8c6e93192f4 (patch) | |
tree | 180be7402c5a688d12f890360582c25b1efe9273 /doc/pl | |
parent | 3fb123510ab764b21479af1372582ba2d00d8e7e (diff) | |
download | weechat-e1e3109da3ecf6b81cb6c725f500c8c6e93192f4.zip |
doc: add link to weechat.org/info in scripting guide (URL transfer) and plugin API reference (function hook_process)
Diffstat (limited to 'doc/pl')
-rw-r--r-- | doc/pl/weechat_scripting.pl.txt | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/doc/pl/weechat_scripting.pl.txt b/doc/pl/weechat_scripting.pl.txt index c046afcab..0d4c36958 100644 --- a/doc/pl/weechat_scripting.pl.txt +++ b/doc/pl/weechat_scripting.pl.txt @@ -715,23 +715,28 @@ Aby pobrać URL (albo wysłać do URL), należy użyć funkcji `hook_process`, l Przykład transferu URL bez opcji: strona HTML jest otrzymywana jako "out" (standardowe wyjście procesu): +// TRANSLATION MISSING [source,python] ---------------------------------------- -# Wyświetla wersje Linuksowych kerneli. -kernel_txt = "" +# Display current stable version of WeeChat. +weechat_version = "" -def kernel_process_cb(data, command, rc, out, err): - global kernel_txt +def weechat_process_cb(data, command, rc, out, err): + global weechat_version if out != "": - kernel_txt += out + weechat_version += out if int(rc) >= 0: - weechat.prnt("", kernel_txt) + weechat.prnt("", "Current WeeChat stable is: %s" % weechat_version) return weechat.WEECHAT_RC_OK -weechat.hook_process("url:http://www.kernel.org/kdist/finger_banner", - 30 * 1000, "kernel_process_cb", "") +weechat.hook_process("url:http://weechat.org/info/stable/", + 30 * 1000, "weechat_process_cb", "") ---------------------------------------- +// TRANSLATION MISSING +[TIP] +All infos available about WeeChat are on page http://weechat.org/info + Przykładowy transfer URL z opcją: pobranie najnowszej wersji rozwojowej WeeChat do pliku '/tmp/weechat-devel.tar.gz': |