1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 11:56:38 +02:00

Compare commits

...

16 Commits

Author SHA1 Message Date
Sebastien Helleu 18339e9608 Version 0.3.2 2010-04-18 10:16:19 +02:00
Sebastien Helleu 5bd729d6a0 Add missing file cmake/FindGcrypt.cmake in packages built by autotools 2010-04-18 09:55:45 +02:00
Sebastien Helleu 26041f4a1c Update polish translations and FAQ 2010-04-16 22:04:03 +02:00
Sebastien Helleu 9eaea6bc19 Update italian autogen files for doc 2010-04-15 11:39:57 +02:00
Sebastien Helleu fed65826b5 Update italian docs and translations 2010-04-15 11:24:51 +02:00
Sebastien Helleu 4456a6047f Remove unused variable 2010-04-14 19:25:59 +02:00
Sebastien Helleu 1dba2c8c92 Fix crash on /quit when scrolling in buffer and if first line displayed was from a plugin 2010-04-14 19:24:54 +02:00
Sebastien Helleu 42b9038919 Update spanish translations 2010-04-14 18:29:13 +02:00
Sebastien Helleu aeee1856eb Fix bug with perl script filename when multiplicity is disabled (bug #29530) 2010-04-13 00:02:07 +02:00
Sebastien Helleu acca17d142 Fix display of perl errors (use tab to force empty prefix on message) 2010-04-12 15:29:30 +02:00
Sebastien Helleu ea3588a8d7 Fix crash on /quit or unload of Perl plugin under FreeBSD and Cygwin (bug #29467) 2010-04-12 14:08:26 +02:00
Sebastien Helleu 339e42df76 Fix bug with writing of configuration files under Cygwin 2010-04-12 14:06:33 +02:00
Sebastien Helleu ea5fa86793 Update italian scripting guide 2010-04-11 20:10:40 +02:00
Sebastien Helleu ca76653a2c Update german translations 2010-04-11 14:32:38 +02:00
Sebastien Helleu 1df46609ce Add italian scripting guide 2010-04-11 13:17:03 +02:00
Jiri Golembiovsky b1fa81468e Updated czech translations 2010-04-10 21:58:58 +02:00
26 changed files with 1601 additions and 717 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ ENDIF(PREFIX)
SET(VERSION_MAJOR "0")
SET(VERSION_MINOR "3")
SET(VERSION_PATCH "2-rc1")
SET(VERSION_PATCH "2")
SET(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
SET(LICENSE "GPL3")
SET(PKG_STRING "${PROJECT_NAME} ${VERSION}")
+5 -2
View File
@@ -1,10 +1,10 @@
WeeChat ChangeLog
=================
FlashCode <flashcode@flashtux.org>
v0.3.2-dev, 2010-04-05
v0.3.2, 2010-04-18
Version 0.3.2 (under dev!)
Version 0.3.2 (2010-04-18)
--------------------------
* core: add new options for command /key: listdefault, listdiff and reset
@@ -57,6 +57,9 @@ Version 0.3.2 (under dev!)
* scripts: fix bug with callbacks when loading a script already loaded
* perl: fix crash when callbacks are called during script initialization
(bug #29018)
* perl: fix crash on /quit or unload of plugin under FreeBSD and Cygwin
(bug #29467)
* perl: fix bug with script filename when multiplicity is disabled (bug #29530)
* irc: add SASL authentication, with PLAIN and DH-BLOWFISH mechanisms
(task #8829)
* irc: fix crash with SSL connection if option ssl_cert is set (bug #28752)
+1
View File
@@ -26,6 +26,7 @@ EXTRA_DIST = CMakeLists.txt \
cmake/cmake_uninstall.cmake.in \
cmake/FindAsciidoc.cmake \
cmake/FindAspell.cmake \
cmake/FindGcrypt.cmake \
cmake/FindGettext.cmake \
cmake/FindGnuTLS.cmake \
cmake/FindIconv.cmake \
+2 -2
View File
@@ -1,10 +1,10 @@
WeeChat News
============
FlashCode <flashcode@flashtux.org>
v0.3.2-dev, 2010-04-04
v0.3.2, 2010-04-18
Version 0.3.2 (under dev!)
Version 0.3.2 (2010-04-18)
--------------------------
If you are using `/upgrade` from a previous release, then you must execute this
+2 -2
View File
@@ -18,10 +18,10 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.56)
AC_INIT(WeeChat, 0.3.2-rc1, flashcode@flashtux.org)
AC_INIT(WeeChat, 0.3.2, flashcode@flashtux.org)
AC_CONFIG_SRCDIR([src/core/weechat.c])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([weechat], [0.3.2-rc1])
AM_INIT_AUTOMAKE([weechat], [0.3.2])
LICENSE="GPL3"
# Checks for programs
+11
View File
@@ -38,6 +38,17 @@ ADD_CUSTOM_COMMAND(
ADD_CUSTOM_TARGET(doc-plugin-api-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.it.html)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.it.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
# scripting guide
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=3 -a toc-title='Indice' -a date=`date "+%F"` -a revision="${VERSION}" -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.txt
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.txt
COMMENT "Building weechat_scripting.it.html"
)
ADD_CUSTOM_TARGET(doc-scripting-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
# FAQ
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.it.html
+6
View File
@@ -19,6 +19,7 @@ docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
weechat_user.it.txt \
weechat_plugin_api.it.txt \
weechat_scripting.it.txt \
weechat_faq.it.txt \
weechat_quickstart.it.txt \
weechat_tester.it.txt \
@@ -27,6 +28,7 @@ EXTRA_DIST = CMakeLists.txt \
all-local: weechat_user.it.html \
weechat_plugin_api.it.html \
weechat_scripting.it.html \
weechat_faq.it.html \
weechat_quickstart.it.html \
weechat_tester.it.html
@@ -39,6 +41,10 @@ weechat_user.it.html: weechat_user.it.txt $(wildcard autogen/user/*.txt)
weechat_plugin_api.it.html: weechat_plugin_api.it.txt $(wildcard autogen/plugin_api/*.txt)
$(ASCIIDOC) -a toc -a toclevels=3 -a toc-title='Indice' -a date=`date "+%F"` -a revision="$(VERSION)" -n -o weechat_plugin_api.it.html weechat_plugin_api.it.txt
# scripting guide
weechat_scripting.it.html: weechat_scripting.it.txt
$(ASCIIDOC) -a toc -a toclevels=3 -a toc-title='Indice' -a date=`date "+%F"` -a revision="$(VERSION)" -n -o weechat_scripting.it.html weechat_scripting.it.txt
# FAQ
weechat_faq.it.html: weechat_faq.it.txt
$(ASCIIDOC) -a toc -a toc-title='Indice' -a date=`date "+%F"` -a revision="$(VERSION)" -n -o weechat_faq.it.html weechat_faq.it.txt
+1 -1
View File
@@ -423,7 +423,7 @@
&bull; *`/reconnect`* `[-all [-nojoin] | nome_server [nome_server ...] [-nojoin]]`::
........................................
riconnetti a uno (o più) server
riconnette a uno (o più) server
-all: riconnetti a tutti i server
nome_server: nome del server a cui riconnettersi
+5 -5
View File
@@ -215,7 +215,7 @@
&bull; *`/layout`* `[[save | apply | reset] [buffers | windows]]`::
........................................
salva/applica/resetta il layout per i buffer e le finestre
salva/applica/ripristina il layout per i buffer e le finestre
save: salva il layout corrente
apply: applica il layout salvato
@@ -296,7 +296,7 @@
&bull; *`/quit`* `[argomenti]`::
........................................
esci da WeeChat
esce da WeeChat
argomenti: testo inviato con il segnale "quit"
(ad esempio il plugin irc usa questo testo per inviare il messaggio di uscita al server)
@@ -342,11 +342,11 @@
&bull; *`/unset`* `[opzione]`::
........................................
annulla/resetta opzione
annulla/ripristina opzione
opzione: nome di un'opzione (può cominciare o finire con "*" per il reset di più opzioni, attenzione!)
opzione: nome di un'opzione (può cominciare o finire con "*" per il ripristino di più opzioni, attenzione!)
A seconda dell'opzione, viene resettata (per le opzioni standard) o rimossa (per le impostazioni opzionali, come i valori del server)
A seconda dell'opzione, essa viene ripristinata (per le opzioni standard) o rimossa (per le impostazioni opzionali, come i valori del server)
........................................
&bull; *`/upgrade`* `[percorso_del_binario]`::
+16 -16
View File
@@ -840,7 +840,7 @@ Esempio in C:
[source,C]
----------------------------------------
int hl = weechat_string_has_highlight ("mia stringa di test", "test,word2"); /* == 1 */
int hl = weechat_string_has_highlight ("my test string", "test,word2"); /* == 1 */
----------------------------------------
Script (Python):
@@ -851,7 +851,7 @@ Script (Python):
highlight = weechat.string_has_highlight(string, highlight_words)
# esempio
highlight = weechat.string_has_highlight("mia stringa di test", "test,word2") # 1
highlight = weechat.string_has_highlight("my test string", "test,word2") # 1
----------------------------------------
weechat_string_mask_to_regex
@@ -1150,12 +1150,12 @@ Esempi:
[source,C]
----------------------------------------
/* rimuove i codici colore */
char *str = weechat_string_remove_color (mia_stringa1, NULL);
char *str = weechat_string_remove_color (my_string1, NULL);
/* ... */
free (str);
/* sostituisce i codici colore con "?" */
char *str = weechat_string_remove_color (mia_stringa2, "?");
char *str = weechat_string_remove_color (my_string2, "?");
/* ... */
free (str);
----------------------------------------
@@ -1168,7 +1168,7 @@ Script (Python):
str = weechat.string_remove_color(string, replacement)
# esempio
str = weechat.string_remove_color(mia_stringa, "?")
str = weechat.string_remove_color(my_string, "?")
----------------------------------------
weechat_string_encode_base64
@@ -1874,7 +1874,7 @@ Esempio in C:
[source,C]
----------------------------------------
if (!weechat_mkdir_parents ("/tmp/mia/cartella", 0755))
if (!weechat_mkdir_parents ("/tmp/my/dir", 0755))
{
/* errore */
}
@@ -2129,7 +2129,7 @@ Script (Python):
item = weechat.list_add(list, data, where, user_data)
# esempio
item = weechat.list_add(list, "miei dati", weechat.WEECHAT_LIST_POS_SORT, "")
item = weechat.list_add(list, "my data", weechat.WEECHAT_LIST_POS_SORT, "")
----------------------------------------
weechat_list_search
@@ -2169,7 +2169,7 @@ Script (Python):
item = weechat.list_search(list, data)
# esempio
item = weechat.list_search(list, "miei dati")
item = weechat.list_search(list, "my data")
----------------------------------------
weechat_list_casesearch
@@ -9060,7 +9060,7 @@ Esempio in C:
[source,C]
----------------------------------------
weechat_printf (NULL, "integer = %d",
weechat_infolist_integer (infolist, "mio_intero"));
weechat_infolist_integer (infolist, "my_integer"));
----------------------------------------
Script (Python):
@@ -9071,7 +9071,7 @@ Script (Python):
value = weechat.infolist_integer(infolist, var)
# esempio
weechat.prnt("", "integer = %d" % weechat.infolist_integer(infolist, "mio_intero"))
weechat.prnt("", "integer = %d" % weechat.infolist_integer(infolist, "my_integer"))
----------------------------------------
weechat_infolist_string
@@ -9101,7 +9101,7 @@ Esempio in C:
[source,C]
----------------------------------------
weechat_printf (NULL, "string = %s",
weechat_infolist_string (infolist, "mia_stringa"));
weechat_infolist_string (infolist, "my_string"));
----------------------------------------
Script (Python):
@@ -9112,7 +9112,7 @@ Script (Python):
value = weechat.infolist_string(infolist, var)
# esempio
weechat.prnt("", "string = %s" % weechat.infolist_string(infolist, "mia_stringa"))
weechat.prnt("", "string = %s" % weechat.infolist_string(infolist, "my_string"))
----------------------------------------
weechat_infolist_pointer
@@ -9142,7 +9142,7 @@ Esempio in C:
[source,C]
----------------------------------------
weechat_printf (NULL, "pointer = 0x%lx",
weechat_infolist_pointer (infolist, "mio_puntatore"));
weechat_infolist_pointer (infolist, "my_pointer"));
----------------------------------------
Script (Python):
@@ -9153,7 +9153,7 @@ Script (Python):
value = weechat.infolist_pointer(infolist, var)
# esempio
weechat.prnt("", "pointer = 0x%lx" % weechat.infolist_pointer(infolist, "mio_puntatore"))
weechat.prnt("", "pointer = 0x%lx" % weechat.infolist_pointer(infolist, "my_pointer"))
----------------------------------------
weechat_infolist_buffer
@@ -9300,7 +9300,7 @@ Esempio in C:
[source,C]
----------------------------------------
struct t_upgrade_file *upgrade_file = weechat_upgrade_new ("mio_file", 1);
struct t_upgrade_file *upgrade_file = weechat_upgrade_new ("my_file", 1);
----------------------------------------
Script (Python):
@@ -9311,7 +9311,7 @@ Script (Python):
upgrade_file = weechat.upgrade_new(filename, write)
# esempio
upgrade_file = weechat.upgrade_new("mio_file", 1)
upgrade_file = weechat.upgrade_new("my_file", 1)
----------------------------------------
weechat_upgrade_write_object
+773
View File
@@ -0,0 +1,773 @@
Guida allo Scripting di WeeChat
===============================
FlashCode <flashcode@flashtux.org>
Questo manuale documenta il client di chat WeeChat, ed è parte
del programma stesso.
La versione più recente di questo documento si trova qui:
http://www.weechat.org/doc
[[introduction]]
Introduzione
------------
WeeChat (Wee Enhanced Environment for Chat) è un client di chat libero,
veloce e leggero, realizzato per molti sistemi operativi.
Questo manuale documenta i metodi per la realizzazione di script per
WeeChat, utilizzando uno dei cinque linguaggi di script supportati: perl,
python, ruby, lua o tcl.
[NOTE]
Quasi tutti gli esempi in questo manuale sono scritti in Python, ma l'API
è identica per gli altri linguaggi.
[[scripts_in_weechat]]
Script in WeeChat
-----------------
[[languages_specifities]]
Specifiche per i linguaggi
~~~~~~~~~~~~~~~~~~~~~~~~~~
Alcune cose sono specifiche per i linguaggi:
* perl:
** le funzioni sono chiamate con `weechat::xxx(arg1, arg2, ...);`
* python:
** è necessario `import weechat`
** le funzioni `print*` sono chiamate `prnt*` in python (dato che 'print'
è una parola riservata)
** le funzioni sono chiamate con `weechat.xxx(arg1, arg2, ...)`
* ruby:
** è necessario definire 'weechat_init' e chiamare 'register' all'interno
** le funzioni sono chiamate con `Weechat.xxx(arg1, arg2, ...)`
* tcl:
** le funzioni sono chiamate con `weechat::xxx arg1 arg2 ...`
[[register_function]]
Registrare una funzione
~~~~~~~~~~~~~~~~~~~~~~~
Tutti gli script WeeChat devono "registrare" loro stessi in WeeChat, e questo
deve essere la prima funzione chiamata nello script di WeeChat.
Prototipo:
[source,python]
----------------------------------------
weechat.register(name, author, version, license, description, shutdown_function, charset)
----------------------------------------
Argomenti:
* 'name': stringa, nome interno dello script
* 'author': stringa, nome dell'autore
* 'version': stringa, versione dello script
* 'license': stringa, licenza dello script
* 'description': stringa, breve descrizione dello script
* 'shutdown_function': stringa, nome della funzione chiamata quando lo script
viene disattivato
* 'charset': stringa, set caratteri dello script (opzionale, se il proprio script è in UTF-8,
è possibile utilizzare un valore nullo qui, dato che UTF-8 è il set caratteri predefinito)
Esempio di script, per ogni linguaggio:
* perl:
[source,perl]
----------------------------------------
weechat::register("test_perl", "FlashCode", "1.0", "GPL3", "Test script", "", "");
weechat::print("", "Hello, from perl script!");
----------------------------------------
* python:
[source,python]
----------------------------------------
import weechat
weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Test script", "", "")
weechat.prnt("", "Hello, from python script!")
----------------------------------------
* ruby:
[source,ruby]
----------------------------------------
def weechat_init
Weechat.register("test_ruby", "FlashCode", "1.0", "GPL3", "Test script", "", "")
Weechat.print("", "Hello, from ruby script!")
return Weechat::WEECHAT_RC_OK
end
----------------------------------------
* lua:
[source,lua]
----------------------------------------
weechat.register("test_lua", "FlashCode", "1.0", "GPL3", "Test script", "", "")
weechat.print("", "Hello, from lua script!")
----------------------------------------
* tcl:
// [source,tcl]
----------------------------------------
weechat::register "test_tcl" "FlashCode" "1.0" "GPL3" "Test script" "" ""
weechat::print "" "Hello, from tcl script!"
----------------------------------------
[[load_script]]
Caricare uno script
~~~~~~~~~~~~~~~~~~~
Il comando da utilizzare, in base al linguaggio:
----------------------------------------
/perl load perl/script.pl
/python load python/script.py
/ruby load ruby/script.rb
/lua load lua/script.lua
/tcl load tcl/script.tcl
----------------------------------------
È possibile creare un link nella cartella 'linguaggio/autoload' per attivare
automaticamente gli script all'avvio di WeeChat.
Ad esempio con Python:
----------------------------------------
$ cd ~/.weechat/python/autoload
$ ln -s ../script.py
----------------------------------------
[[differences_with_c_api]]
Differenze con le API in C
--------------------------
Le API per gli script sono quasi identiche di quelle per i plugin C.
È possibile consultare '*' per i dettagli su ogni funzione nelle API:
prototipo, argomenti, valori restituiti, esempi.
È importante fare la differenza tra un 'plugin' ed uno 'script':
un plugin è un file binario compilato ed attivato con il comando
`plugin`, mentre uno 'script' è un file di testo caricato tramite
un plugin come 'python' con il comando `python`.
Quando il proprio script 'test.py' chiama una funzione delle API di
Weechat, il percorso è simile a questo:
........................................
(script API) (C API)
\/ \/
test.py -------> python plugin (python.so) -------> core di WeeChat
........................................
Quando WeeChat chiama una callback nel proprio script 'test.py', è
l'opposto del percorso precedente:
........................................
(C API) (script API)
\/ \/
WeeChat core -------> python plugin (python.so) -------> test.py
........................................
[[pointers]]
Puntatori
~~~~~~~~~
Come è già noto probabilmente, non esistono realmente i "puntatori"
negli script. Quando le funzioni API restituiscono un puntatore, viene
covertito in una stringa per lo script.
Ad esempio, se la funzione restituisce il puntatore 0x1234ab56, lo
script riceverà la stringa "0x1234ab56".
E quando una funzione API si aspetta un puntatore nell'argomento, lo script
deve fornire quel valore stringa. Il plugin C lo convertirà in un puntatore reale
prima di chiamare la funzione API in C.
Sono consentite stringhe vuote oppure "0x0", valgono come NULL in C.
Ad esempio, per stampare dei dati sul buffer core (il buffer principale di
WeeChat), è possibile fare questo:
[source,python]
----------------------------------------
weechat.prnt("", "hi!")
----------------------------------------
[WARNING]
In molte funzioni, per motivi legati alla velocità, WeeChat non verifica se
il puntatore è corretto oppure no. È il proprio lavoro controllare che si
stia fornendo un puntatore valido, altrimenti potrebbe comparire una
bella segnalazione per un errore ;)
[[callbacks]]
Callback
~~~~~~~~
Quasi tutte le callback di WeeChat devono restituire WEECHAT_RC_OK
oppure WEECHAT_RC_ERROR (l'eccezione è la callback modifier, che
restituisce una stringa).
Le callback in C utilizzano un argomento "data", che è un puntatore.
Nelle API per gli script, questo "data" è una stringa con un qualsiasi
valore (non è un puntatore).
Ad esempio:
[source,python]
----------------------------------------
weechat.hook_timer(1000, 0, 1, "my_timer_cb", "my data")
def my_timer_cb(data, remaining_calls):
# this will display: "my data"
weechat.prnt("", data)
return weechat.WEECHAT_RC_OK
----------------------------------------
[[script_api]]
Script API
----------
Per maggiori informazioni sulle funzioni nelle API,
consultare 'Referenze API per Plugin di WeeChat'.
[[script_api_functions]]
Funzioni
~~~~~~~~
Elenco di funzioni nelle API per gli script:
[width="100%",cols="^1,10",options="header"]
|========================================
| Categoria | Funzioni
| generale |
register
| plugin |
plugin_get_name
| stringhe |
charset_set, iconv_to_internal, iconv_from_internal, gettext, ngettext, +
string_match, string_has_highlight, string_mask_to_regex,
string_remove_color, string_is_command_char, string_input_for_buffer
| cartelle |
mkdir_home, mkdir, mkdir_parents
| liste ordinate |
list_new, list_add, list_search, list_casesearch, list_get, list_set,
list_next, list_prev, list_string, list_size, list_remove, list_remove_all,
list_free
| file di configurazione |
config_new, config_new_section, config_search_section, config_new_option,
config_search_option, +
config_string_to_boolean, config_option_reset, config_option_set,
config_option_set_null, config_option_unset, config_option_rename,
config_option_is_null, config_option_default_is_null, +
config_boolean, config_boolean_default, config_integer, config_integer_default,
config_string, config_string_default, config_color, config_color_default, +
config_write_option, config_write_line, config_write, config_read,
config_reload, +
config_option_free, config_section_free_options, config_section_free,
config_free, +
config_get, config_get_plugin, config_is_set_plugin, config_set_plugin,
config_unset_plugin
| visualizzazione |
prefix, color, print (for python: prnt), print_date_tags (for python:
prnt_date_tags), print_y (for python: prnt_y), log_print
| hook |
hook_command, hook_command_run, hook_timer, hook_fd, hook_process,
hook_connect, hook_print, hook_signal, hook_signal_send, hook_config,
hook_completion, hook_completion_list_add, hook_modifier, hook_modifier_exec,
hook_info, hook_infolist, unhook, unhook_all
| buffer |
buffer_new, current_buffer, buffer_search, buffer_search_main, buffer_clear,
buffer_close, buffer_merge, buffer_unmerge, buffer_get_integer,
buffer_get_string, buffer_get_pointer, buffer_set,
buffer_string_replace_local_var
| finestre |
current_window, window_get_integer, window_get_string, window_get_pointer,
window_set_title
| lista nick |
nicklist_add_group, nicklist_search_group, nicklist_add_nick,
nicklist_search_nick, nicklist_remove_group, nicklist_remove_nick,
nicklist_remove_all
| barre |
bar_item_search, bar_item_new, bar_item_update, bar_item_remove, bar_search,
bar_new, bar_set, bar_update, bar_remove
| comandi |
comando
| info |
info_get
| liste info |
infolist_new, infolist_new_item, infolist_new_var_integer,
infolist_new_var_string, infolist_new_var_pointer, infolist_new_var_time, +
infolist_get, infolist_next, infolist_prev, infolist_fields, infolist_integer,
infolist_string, infolist_pointer, infolist_time, infolist_free
| aggiornamento |
upgrade_new, upgrade_write_object, upgrade_read, upgrade_close
|========================================
[[script_api_constants]]
Costanti
~~~~~~~~
Elenco di costanti nelle API per gli script:
[width="100%",cols="^1,10",options="header"]
|========================================
| Categoria | Costanti
| codici restituiti |
WEECHAT_RC_OK, WEECHAT_RC_OK_EAT, WEECHAT_RC_ERROR
| file di configurazione |
WEECHAT_CONFIG_READ_OK, WEECHAT_CONFIG_READ_MEMORY_ERROR,
WEECHAT_CONFIG_READ_FILE_NOT_FOUND, WEECHAT_CONFIG_WRITE_OK,
WEECHAT_CONFIG_WRITE_ERROR, WEECHAT_CONFIG_WRITE_MEMORY_ERROR, +
WEECHAT_CONFIG_OPTION_SET_OK_CHANGED, WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE,
WEECHAT_CONFIG_OPTION_SET_ERROR, WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND,
WEECHAT_CONFIG_OPTION_UNSET_OK_NO_RESET, WEECHAT_CONFIG_OPTION_UNSET_OK_RESET,
WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED, WEECHAT_CONFIG_OPTION_UNSET_ERROR
| liste ordinate |
WEECHAT_LIST_POS_SORT, WEECHAT_LIST_POS_BEGINNING, WEECHAT_LIST_POS_END
| hotlist |
WEECHAT_HOTLIST_LOW, WEECHAT_HOTLIST_MESSAGE, WEECHAT_HOTLIST_PRIVATE,
WEECHAT_HOTLIST_HIGHLIGHT
| hook su processo |
WEECHAT_HOOK_PROCESS_RUNNING, WEECHAT_HOOK_PROCESS_ERROR
| hook su connessione |
WEECHAT_HOOK_CONNECT_OK, WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND,
WEECHAT_HOOK_CONNECT_IP_ADDRESS_NOT_FOUND, WEECHAT_HOOK_CONNECT_CONNECTION_REFUSED,
WEECHAT_HOOK_CONNECT_PROXY_ERROR, WEECHAT_HOOK_CONNECT_LOCAL_HOSTNAME_ERROR,
WEECHAT_HOOK_CONNECT_GNUTLS_INIT_ERROR, WEECHAT_HOOK_CONNECT_GNUTLS_HANDSHAKE_ERROR,
WEECHAT_HOOK_CONNECT_MEMORY_ERROR
| hook su segnale |
WEECHAT_HOOK_SIGNAL_STRING, WEECHAT_HOOK_SIGNAL_INT, WEECHAT_HOOK_SIGNAL_POINTER
|========================================
[[common_tasks]]
Compiti comuni
--------------
Questo capitolo spiega alcuni compiti comuni, con degli esempi.
Verranno utilizzati soltanto degli elementi parziali contenuti
nelle API, per un riferimento completo consultare
'Referenze API per Plugin di WeeChat'.
[[buffers]]
Buffer
~~~~~~
[[buffers_display_messages]]
Visualizzare messaggi
^^^^^^^^^^^^^^^^^^^^^
Una stringa vuota è utilizzata spesso per lavorare con il buffer core di
WeeChat. Per gli altri buffer, è necessario fornire un puntatore (come
stringa, consultare <<pointers,pointers>>).
Esempi:
[source,python]
----------------------------------------
# display "hello" on core buffer
weechat.prnt("", "hello")
# visualizza il prefisso "==>" ed il messaggio "hello" sul buffer corrente
# (prefisso e messaggio vanno separati da una tabulazione)
weechat.prnt(weechat.current_buffer(), "==>\thello")
# visualizza un messaggio di errore sul buffer core (con il prefisso di errore)
weechat.prnt("", "%swrong arguments" % weechat.prefix("error"))
# visualizza messaggio con il colore sul buffer core
weechat.prnt("", "text %syellow on blue" % weechat.color("yellow,blue"))
# cerca buffer e visualizza messaggiosearch buffer and display message
# (il nome completo del buffer è plugin.nome, ad esempio: "irc.freenode.#weechat")
buffer = weechat.buffer_search("irc", "freenode.#weechat")
weechat.prnt(buffer, "message on #weechat channel")
# altra soluzione per cercare un buffer IRC (migliore)
# (nota: server e canale sono separati da virgola)
buffer = weechat.info_get("irc_buffer", "freenode,#weechat")
weechat.prnt(buffer, "message on #weechat channel")
----------------------------------------
[NOTE]
La funzione print si chiama `print` in Perl/Ruby/Lua/Tcl e `prnt` in Python.
[[buffers_send_text]]
Invia testo al buffer
^^^^^^^^^^^^^^^^^^^^^
È possibile inviare del testo o un comando ad un buffer. È esattamente come
se si digitasse del testo o un comando, seguiti da [Enter].
Esempi:
[source,python]
----------------------------------------
# esegue il comando "/help" sul buffer core
weechat.command("", "/help")
# invia "hello" sul canale IRC #weechat (gli utenti sul canale vedranno il messaggio)
buffer = weechat.info_get("irc_buffer", "freenode,#weechat")
weechat.command(buffer, "hello")
----------------------------------------
[[buffers_new]]
Creare un nuovo buffer
^^^^^^^^^^^^^^^^^^^^^^
È possibile creare un nuovo buffer nel proprio script, per poi utilizzarlo per
visualizzare i messaggi.
Possono essere chiamate due callback (sono opzionali): una per i dati in
input (quando viene digitato del testo e premuto [Enter] sul buffer), l'altra
quando il buffer viene chiuso (ad esempio con `/buffer close`).
Esempio:
[source,python]
----------------------------------------
# callback per i dati ricevuti in input
def buffer_input_cb(data, buffer, input_data):
# ...
return weechat.WEECHAT_RC_OK
# callback chiamata alla chiusura del buffer
def buffer_close_cb(data, buffer):
# ...
return weechat.WEECHAT_RC_OK
# crea un buffer
buffer = weechat.buffer_new("mybuffer", "buffer_input_cb", "", "buffer_close_cb", "")
# imposta titolo
weechat.buffer_set(buffer, "title", "Questo titolo è per il mio buffer.")
# disabilita il logging, impostando la variabile locale "no_log" ad "1"
weechat.buffer_set(buffer, "localvar_set_no_log", "1")
----------------------------------------
[[buffers_properties]]
Proprietà dei buffer
^^^^^^^^^^^^^^^^^^^^
Si possono leggere le proprietà del buffer, come stringa, intero o puntatore.
Esempi:
[source,python]
----------------------------------------
buffer = weechat.current_buffer()
number = weechat.buffer_get_integer(buffer, "number")
name = weechat.buffer_get_string(buffer, "name")
short_name = weechat.buffer_get_string(buffer, "short_name")
----------------------------------------
È possibile aggiungere, leggere o eliminare le variabili locali nel buffer:
[source,python]
----------------------------------------
# aggiunge la variabile locale
weechat.buffer_set(buffer, "localvar_set_myvar", "my_value")
# legge la variabile locale
myvar = weechat.buffer_get_string(buffer, "localvar_myvar")
# elimina la variabile locale
weechat.buffer_set(buffer, "localvar_del_myvar", "")
----------------------------------------
Per impostare le variabili locali di un buffer, digitare questo comando
in WeeChat:
----------------------------------------
/buffer localvar
----------------------------------------
[[hooks]]
Hook
~~~~
[[hook_command]]
Aggiungere un nuovo comando
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aggiunge un comando personalizzato con `hook_command`. Si può fare uso di
un template di completamento personalizzato per completare gli argomenti
del proprio comando.
Esempio:
[source,python]
----------------------------------------
def my_command_cb(data, buffer, args):
# ...
return weechat.WEECHAT_RC_OK
hook = weechat.hook_command("myfilter", "descrizione di myfilter",
"[list] | [enable|disable|toggle [name]] | [add name plugin.buffer tags regex] | [del name|-all]",
"descrizione degli argomenti...",
"list"
" || enable %(filters_names)"
" || disable %(filters_names)"
" || toggle %(filters_names)"
" || add %(filters_names) %(buffers_plugins_names)|*"
" || del %(filters_names)|-all",
"my_command_cb", "")
----------------------------------------
E poi in WeeChat:
----------------------------------------
/help myfilter
/myfilter arguments...
----------------------------------------
[[hook_timer]]
Aggiungere un timer
^^^^^^^^^^^^^^^^^^^
Aggiungere un timer con `hook_timer`.
Esempio:
[source,python]
----------------------------------------
def timer_cb(data, remaining_calls):
# ...
return weechat.WEECHAT_RC_OK
# timer chiamato ogni minuto quandi i secondi sono 00
weechat.hook_timer(60 * 1000, 60, 0, "timer_cb", "")
----------------------------------------
[[hook_process]]
Eseguire un processo in background
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
È possibile eseguire un processo in background con `hook_process`. La
callback verrà chiamata quando i dati sono pronti. Può essere chiamata
più volte.
Per l'ultima chiamata alla callback, 'rc' è impostato a zero o su un
valore positivo, è il codice restituito dal comando.
Esempio:
[source,python]
----------------------------------------
# Visualizza le versioni dei kernel di Linux.
kernel_txt = ""
def kernel_process_cb(data, command, rc, stdout, stderr):
""" Callback reading command output. """
global kernel_txt
if stdout != "":
kernel_txt += stdout
if int(rc) >= 0:
weechat.prnt("", kernel_txt)
return weechat.WEECHAT_RC_OK
weechat.hook_process("python -c \"import urllib; " \
"print urllib.urlopen('http://www.kernel.org/kdist/finger_banner').read()\"",
10 * 1000, "kernel_process_cb", "")
----------------------------------------
[[config_options]]
Configurazione / opzioni
~~~~~~~~~~~~~~~~~~~~~~~~
[[config_options_set_script]]
Impostare l'opzione per lo script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
La funzione `config_is_set_plugin` viene utilizzare per verificare se un'opzione
è impostata oppure no, e `config_set_plugin` per impostare l'opzione.
Esempio:
[source,python]
----------------------------------------
script_options = {
"option1" : "value1",
"option2" : "value2",
"option3" : "value3",
}
for option, default_value in script_options.iteritems():
if not weechat.config_is_set_plugin(option):
weechat.config_set_plugin(option, default_value)
----------------------------------------
[[config_options_detect_changes]]
Rilevare le modifiche
^^^^^^^^^^^^^^^^^^^^^
È necessario utilizzare `hook_config` per essere notificati se l'utente dovesse
modificare alcune opzioni dello script.
Esempio:
[source,python]
----------------------------------------
SCRIPT_NAME = "myscript"
# ...
def config_cb(data, option, value):
""" Callback called when a script option is changed. """
# for example, read all script options to script variables...
# ...
return weechat.WEECHAT_RC_OK
# ...
weechat.hook_config("plugins.var.python." + SCRIPT_NAME + ".*", "config_cb", "")
# for other languages, change "python" with your language ("perl", "ruby", "lua" or "tcl")
----------------------------------------
[[config_options_weechat]]
Leggere le opzioni di WeeChat
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
La funzione `config_get` restituisce il puntatore all'opzione. Poi, in base al tipo
di opzione, è necessario chiamare `config_string`, `config_boolean`,
`config_integer` oppure `config_color`.
[source,python]
----------------------------------------
# stringa
weechat.prnt("", "value of option weechat.look.item_time_format is: %s"
% (weechat.config_string(weechat.config_get("weechat.look.item_time_format"))))
# bool
weechat.prnt("", "value of option weechat.look.day_change is: %d"
% (weechat.config_boolean(weechat.config_get("weechat.look.day_change"))))
# intero
weechat.prnt("", "value of option weechat.look.scroll_page_percent is: %d"
% (weechat.config_integer(weechat.config_get("weechat.look.scroll_page_percent"))))
# colore
weechat.prnt("", "value of option weechat.color.chat_delimiters is: %s"
% (weechat.config_color(weechat.config_get("weechat.color.chat_delimiters"))))
----------------------------------------
[[irc]]
IRC
~~~
[[irc_catch_messages]]
Catturare messaggi
^^^^^^^^^^^^^^^^^^
Il plugin IRC invia due segnali per un messaggio ricevuto (`xxx` è il nome
interno del server IRC, `yyy` è il nome del comando IRC come JOIN, QUIT,
PRIVMSG, 301, ..):
xxxx,irc_in_yyy::
segnale inviato prima di esaminare il messaggio
xxx,irc_in2_yyy::
segnale inviato dopo aver esaminato il messaggio
[source,python]
----------------------------------------
def join_cb(data, signal, signal_data):
# signal è per esempio: "freenode,irc_in2_join"
# signal_data è il messaggio IRC message, ad esempio: ":nick!user@host JOIN :#channel"
nick = weechat.info_get("irc_nick_from_host", signal_data)
server = signal.split(",")[0]
channel = signal_data.split(":")[-1]
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, channel))
if buffer:
weechat.prnt(buffer, "Eheh, %s has joined this channel!" % nick)
return weechat.WEECHAT_RC_OK
# può essere utile qui utilizzare "*" come server, per catturare
# i messaggi JOIN su tutti i server IRC
weechat.hook_signal("*,irc_in2_join", "join_cb", "")
----------------------------------------
[[infos]]
Info
~~~~
[[infos_weechat_version]]
Versione di WeeChat
^^^^^^^^^^^^^^^^^^^
Il modo migliore per verificare la versione è richiedere "version_number" e
comparare l'intero con il numero di versione esadecimale.
Esempio:
[source,python]
----------------------------------------
version = weechat.info_get("version_number", "") or 0
if int(version) >= 0x00030200:
weechat.prnt("", "This is WeeChat 0.3.2 or newer")
else:
weechat.prnt("", "This is WeeChat 0.3.1 or older")
----------------------------------------
[NOTE]
Le versioni < = 0.3.1.1 restituiscono una stringa vuota per
'info_get("version_number")', per cui bisogna verificare che
il valore restituito *non* sia vuoto.
To get version as string:
[source,python]
----------------------------------------
# this will display for example "Version 0.3.2"
weechat.prnt("", "Version %s" % weechat.info_get("version", ""))
----------------------------------------
[[infos_other]]
Altre informazioni
^^^^^^^^^^^^^^^^^^
[source,python]
----------------------------------------
# la cartella home di WeeChat, ad esempio: "/home/xxxx/.weechat"
weechat.prnt("", "WeeChat home dir: %s" % weechat.info_get("weechat_dir", ""))
# inattività della tastiera
weechat.prnt("", "Inactivity since %s seconds" % weechat.info_get("inactivity", ""))
----------------------------------------
[[infolists]]
Liste info
~~~~~~~~~~
[[infolists_read]]
Leggere una lista info
^^^^^^^^^^^^^^^^^^^^^^
È possibile leggere una lista info compilata da WeeChat
o da altri plugin.
Esempio:
[source,python]
----------------------------------------
# legge la lista info "buffer", per ottenere la lista dei buffer
infolist = weechat.infolist_get("buffer", "", "")
if infolist:
while weechat.infolist_next(infolist):
name = weechat.infolist_string(infolist, "name")
weechat.prnt("", "buffer: %s" % name)
weechat.infolist_free(infolist)
----------------------------------------
[IMPORTANT]
Non dimenticare di chiamare `infolist_free` per liberare la memoria
utilizzata dalla lista info, perché WeeChat non libererà automaticamente
la memoria.
+28 -28
View File
@@ -77,8 +77,8 @@ Nowym użytkowniką zaleca się przeczytanie quickstart (szybki start)
[[display]]
Wyświetlać
----------
Wyświetlanie
------------
[[charset]]
@@ -92,7 +92,7 @@ Dla wersji < 0.2.3, zaleca się uaktualnienie do najnowszej stabilnej wersji.
Dla wersji > = 0.2.3:
* sprawdź czy weechat-curses jest zlinkowany z libncursesw (uwaga: wymagane na
więkrzości dystrybucji ale nie wszystkich): `ldd /path/to/weechat-curses`
więkrzości dystrybucji ale nie wszystkich): `ldd /ścieżka/do/weechat-curses`
* sprawdź czy wtyczka "Charset" jest załadowana za pomocą komendy `/plugin`
(jeśli nie jest, to najprawdopodbniej potrzebujesz pakietu "weechat-plugins")
* sprawdź ustawienia kodowania (w buforze serwera). Powinieneś ujrzeć 'ISO-XXXXXX'
@@ -215,22 +215,22 @@ Przypisania klawiszy
[[meta_keys]]
Some meta keys (alt + key) are not working, why?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Niektóre skróty klawiszowe (alt + klawisz) nie działają, dlaczego?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you're using some terminals like xterm or uxterm, some meta keys does not
work by default. You can add a line in file '~/.Xresources':
Jeśli używasz terminali jak xterm lub uxterm, niektóre skróty domyślnie
nie będą działać. Możesz dodać następujące linie do pliku '~/.Xresources':
* for xterm:
* dla xterm:
----------------------------------------
XTerm*metaSendsEscape: true
----------------------------------------
* for uxterm:
* dla uxterm:
----------------------------------------
UXTerm*metaSendsEscape: true
----------------------------------------
And then reload resources (`xrdb -override ~/.Xresources`) or restart X.
Następnie przeładować zasoby (`xrdb -override ~/.Xresources`) lub zrestartować X.
[[customize_key_bindings]]
@@ -291,37 +291,37 @@ W zależności od wersji WeeChat:
[[filter_voice_messages]]
How can I filter voice messages (eg on Bitlbee server)?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jak moge filtrować informacje o przyznaniu voice (np na serwerze Bitlbee)?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's not easy to filter voice messages, because voice mode can be set with other
modes in same IRC message.
Filtrowanie wiadomości o przyznaiu voice nie jest proste, ponieważ może on
zostać nadany wraz z innymi atrybutami w jednej wiadomości IRC.
If you want to do that, it's probably because Bitlbee is using voice to show
away users, and you are flooded with voice messages. Therefore, you can change
that and let WeeChat use a special color for away nicks in nicklist.
Zapewne chcesz to zrobić, ponieważ Bitlbee używa voice do wskazania nieobecnych
użytkowników, oraz jesteś zasypywany takimi wiadomościami. Możesz to zmienić oraz
pozwolić WeeChat używać specjalnego koloru dla nieobecnych nicków.
On channel '&bitlbee', do:
Na kanale '&bitlbee', wykonaj:
----------------------------------------
set away_devoice false
----------------------------------------
For checking away nicks in WeeChat, see question about
<<color_away_nicks,away nicks>>.
Aby dowiedzieć się jak sprawdzić nieobecność w WeeChat, spójrz na pytanie o
<<color_away_nicks,nieobecnych osobach>>.
[[color_away_nicks]]
How can I see away nicks in nicklist?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jak mogę zobaczyć kto jest aktualnie nieobecny ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You have to set option 'irc.network.away_check' to a positive value (minutes
between each check of away nicks).
Należy ustawić opcję 'irc.network.away_check' na wartość większą od zera
(minuty pomiędzy sprawdzaniem czy nick jest nieobecny).
You can set option 'irc.network.away_check_max_nicks' to limit away check on
small channels only.
Możesz ustawić opcję 'irc.network.away_check_max_nicks' w celu ustalenia
sprawdzania nieobecności dla małych kanałów.
For example, check every 5 minutes for away nicks, for channels with max 25
nicks:
Na przykład, aby sprawdzać nieonecność nicków co 5, dla kanałów z maksymalnie 25
osobami:
----------------------------------------
/set irc.network.away_check 5
+1 -1
View File
@@ -1,4 +1,4 @@
.TH WEECHAT 1 "February 2010" "FlashCode"
.TH WEECHAT 1 "April 2010" "FlashCode"
.SH NAME
weechat-curses \- Wee Enhanced Environment for Chat (Curses version)
+151 -109
View File
@@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Project-Id-Version: WeeChat 0.3.2\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-04-05 12:44+0200\n"
"PO-Revision-Date: 2010-03-23 10:19+0100\n"
"POT-Creation-Date: 2010-04-18 09:21+0200\n"
"PO-Revision-Date: 2010-04-17 11:25+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -338,21 +338,19 @@ msgstr "%sNení dostupná žádná nápověda, \"%s\" není příkaz nebo volba"
msgid "Buffer command history:"
msgstr "Historie příkazů bufferu:"
#, fuzzy
msgid "default command:"
msgstr "příkazy weechat"
msgstr "výchozí příkaz:"
#, fuzzy, c-format
#, c-format
msgid "Key bindings added or redefined (%d):"
msgstr "Klávesové zkratky (%d):"
msgstr "Klávesové zkratky přidány nebo předefinovány (%d):"
#, fuzzy, c-format
#, c-format
msgid "Key bindings deleted (%d):"
msgstr "Klávesové zkratky (%d):"
msgstr "Klávesové zkratky smazány (%d):"
#, fuzzy
msgid "No key binding added, redefined or removed"
msgstr "Klávesové zkratky (%d):"
msgstr "Nebyly přidány, předefinovány nebo smazny žádné klávesové zkratky"
msgid "No key binding defined"
msgstr "Žádné klávesové zkratky nejsou definovány"
@@ -361,13 +359,12 @@ msgstr "Žádné klávesové zkratky nejsou definovány"
msgid "Key bindings (%d):"
msgstr "Klávesové zkratky (%d):"
#, fuzzy
msgid "No default key binding"
msgstr "Výchozí klávesové zkratky obnoveny"
msgstr "Žádné výchozí klávesové zkratky"
#, fuzzy, c-format
#, c-format
msgid "Default key bindings (%d):"
msgstr "Výchozí klávesové zkratky obnoveny"
msgstr "Výchozí klávesové zkratky (%d):"
msgid "Key:"
msgstr "Klávesa:"
@@ -389,11 +386,11 @@ msgstr "%sChyba: nemohu odpojit klávesu \"%s\""
#, c-format
msgid "Key \"%s\" has already default value"
msgstr ""
msgstr "Klávesa \"%s\" již má výhozí hodnotu"
#, fuzzy, c-format
#, c-format
msgid "%sKey \"%s\" not found"
msgstr "%s%s: přesměrování \"%s\" nenalezeno"
msgstr "%sKlávesa \"%s\" nenalezena"
msgid "Default key bindings restored"
msgstr "Výchozí klávesové zkratky obnoveny"
@@ -869,7 +866,6 @@ msgstr ""
msgid "manage buffers"
msgstr "řídit buffery"
#, fuzzy
msgid ""
"[clear [number | -merged | -all] | move number | merge number | unmerge "
"[number] | close [n1[-n2]] | list | notify level | localvar | set property "
@@ -877,9 +873,8 @@ msgid ""
msgstr ""
"[clear [číslo | -merged | -all] | move číslo | merge číslo | unmerge [číslo] "
"| close [n1[-n2]] | list | notify úroveň | localvar | set vlastnost hodnota "
"| číslo | jméno]"
"| get vlastnost | číslo | jméno]"
#, fuzzy
msgid ""
" clear: clear buffer content (number for a buffer, -merged for merged "
"buffers, -all for all buffers, or nothing for current buffer)\n"
@@ -930,6 +925,7 @@ msgstr ""
" move: přesune buffer v seznamu (může být relativní, například -1)\n"
" merge: spojí aktuální buffer s jiným bufferem (oblast rozhovoru bude "
"mixem obou bufferů)\n"
" (výchozí klávesová zkratka pro přepínaní mezi buffery je ctrl-x)\n"
" unmerge: odpojit buffer od ostatních bufferů, které mají stejné číslo\n"
" close: zavře buffer (číslo/rozsah je nepovinné)\n"
" list: vypíše seznam bufferů (žádný parametr, implikuje tento seznam)\n"
@@ -942,6 +938,7 @@ msgstr ""
" reset: obnovit výchozí hodnotu (all)\n"
"localvar: zobrazí lokální proměnné pro aktuální buffer\n"
" set: nastavit proměnnou pro aktuální buffer\n"
" get: zobrazit proměnnou aktuálního bufferu\n"
" číslo: skočí na buffer podle čísla, možný prefix:\n"
" '+': relativní skok, přičíst číslo k aktuálnímu\n"
" '-': relativní skok, odečíst číslo od aktuálního\n"
@@ -950,15 +947,22 @@ msgstr ""
" jméno: skočit na buffer podle (částečného) jména\n"
"\n"
"Příklady:\n"
" vyčistí aktuální buffer: /buffer clear\n"
" vyčistí všechny buffery: /buffer clear -all\n"
" posune buffer: /buffer move 5\n"
"spojí s hlavním bufferem: /buffer merge 1\n"
" rozpojí buffer: /buffer unmerge\n"
" zavře aktuální buffer: /buffer close\n"
" zavře buffery 5 až 7: /buffer close 5-7\n"
" skočí na #weechat: /buffer #weechat\n"
" skočí na další buffer: /buffer +1"
" vyčistí aktuální buffer:\n"
" /buffer clear\n"
" přesune buffer na číslo 5:\n"
" /buffer move 5\n"
" spojí s hlavním bufferem:\n"
" /buffer merge 1\n"
" odpojit buffer:\n"
" /buffer unmerge\n"
" zavřít aktuální buffer:\n"
" /buffer close\n"
" zavřít buffery 5 až 7:\n"
" /buffer close 5-7\n"
" skočit na #weechat:\n"
" /buffer #weechat\n"
" skočit na další buffer:\n"
" /buffer +1"
msgid "launch explicit WeeChat or plugin command"
msgstr "pustit uvedený WeeChat nebo plugin příkaz"
@@ -1013,7 +1017,6 @@ msgstr ""
"[list] | [enable|disable|toggle [name]] | [add jméno plugin.buffer tags "
"regex] | [del name|-all]"
#, fuzzy
msgid ""
" list: list all filters\n"
" enable: enable filters (filters are enabled by default)\n"
@@ -1070,11 +1073,21 @@ msgstr ""
"\n"
"Výchozí klávesa pro zapnutí/vypnutí filtrování je alt+'='.\n"
"\n"
"Nejvíce používané tagy:\n"
" no_filter, no_highlight, log0..log9 (úroveň logování),\n"
" notify_message, notify_private, notify_highlight,\n"
" irc_xxx (xxx je jméno příkazu nebo číslo, viz /server raw), irc_numeric, "
"irc_error, irc_action, irc_ctcp, irc_ctcp_reply, irc_smart_filter, "
"away_info.\n"
"\n"
"Příklady:\n"
" použití chytrého IRC filtru pro zprávy join/part/quit:\n"
" /filter add irc_smart * irc_smart_filter *\n"
" filtrovat všechny IRC zprávy join/part/quit:\n"
" /filter add joinquit * irc_join,irc_part,irc_quit *\n"
" filtrovat přezdívky zobrazené při připojování ke kanálu nebo pomocí /"
"names:\n"
" /filter add nicks * irc_366 *\n"
" filtrovat přezdívku \"toto\" na IRC kanálu #weechat:\n"
" /filter add toto irc.freenode.#weechat * toto\\t\n"
" filtrovat řádky obsahující slovo \"spam\":\n"
@@ -1117,13 +1130,13 @@ msgstr "Tento příkaz je používán napojenou klávesou nebo pluginy."
msgid "bind/unbind keys"
msgstr "napojit/odpojit klávesy"
#, fuzzy
msgid ""
"[list | listdefault | listdiff] | [bind key [command [args]]] | [unbind key] "
"| [reset key] | [resetall -yes] | [missing]"
msgstr "[bind key [command [args]]] | [unbind key] | [reset -yes] | [missing]"
msgstr ""
"[list | listdefault | listdiff] | [bind klávesa [příkaz [argumenty]]] | "
"[unbind key] | [reset klávesa] | [reset -yes] | [missing]"
#, fuzzy
msgid ""
" list: list all current keys (without argument, this list is "
"displayed)\n"
@@ -1150,15 +1163,30 @@ msgid ""
" restore default binding for key alt-r:\n"
" /key reset meta-r"
msgstr ""
" bind: napojí příkaz na klávesu nebo zobrazí napojený příkaz\n"
" unbind: odpojí klávesu\n"
" reset: obnoví klávesy na výchozí hodnoty a smaže VŠECHNY uživatlské "
"zkratky (používejte opatrně!)missing: přidá chybějící klávesy (použije "
"výchozí napojení)\n"
" list: vypsat všechny aktuální klávesy (pokud není vuveden žádný "
"argument, je vypsán tento list)\n"
"listdefault: vypíše výchozí klávesy\n"
" listdiff: vypíše rozdíly mezi aktuálníma a výchozíma klávesama (přidané, "
"předefinované nebo odebrané klávesy)\n"
" bind: napojí příkaz na klávesu nebo zobrazí napojený příkaz\n"
" unbind: odpojí klávesu\n"
" reset: obnoví klávesu na výchozí hodnotu\n"
" resetall: obnoví klávesy na výchozí hodnoty a smaže VŠECHNY uživatlské "
"zkratky (používejte opatrně!)\n"
" missing: přidá chybějící klávesy (použije výchozí napojení), používejte "
"po nainstalování nové verze WeeChat\n"
"\n"
"Při napojování příkazu na klávesu je doporučeno použít klávesy alt+k (nebo "
"Esc pak k) a poté stisknout klávesu pro napojení. Tento postup vloží kód "
"klávesy do příkazové řádky."
"Esc pak k) a poté stisknout klávesu pro napojení: toto vloží kód klávesy do "
"příkazové řádky.\n"
"\n"
"Příklady:\n"
" klávesa alt-x pro přepnutí pole přezdívek:\n"
" /key bind meta-x /bar toggle nicklist\n"
" klávesa alt-r pro skok na IRC kanál #weechat:\n"
" /key bind meta-r /buffer #weechat\n"
" obnoví výchozí napojení pro klávesu alt-r:\n"
" /key reset meta-r"
msgid "save/apply/reset layout for buffers and windows"
msgstr "uložit/použít/resetovat rozložení bufferů a oken"
@@ -1189,7 +1217,6 @@ msgstr "vykonat příkaz v tichosti"
msgid "[-current | -buffer name | -all] command"
msgstr "[-current | -buffer jméno | -all] příkaz"
#, fuzzy
msgid ""
"-current: no output on curent buffer\n"
" -buffer: no output on specified buffer\n"
@@ -1222,10 +1249,12 @@ msgstr ""
"nastavení utišen pouze hlavní buffer WeeChat.\n"
"\n"
"Příklady:\n"
" uložení konfigurace: /mute save\n"
" zpráva pro aktuální IRC kanál: /mute -current msg * hi!\n"
" zpráva pro kanál #weechat: /mute -buffer irc.freenode.#weechat msg "
"#weechat hi!"
" uložení konfigurace:\n"
" /mute save\n"
" zpráva pro aktuální IRC kanál:\n"
" /mute -current msg * hi!\n"
" zpráva pro kanál #weechat:\n"
" /mute -buffer irc.freenode.#weechat msg #weechat hi!"
msgid "list/load/unload plugins"
msgstr "seznam/načíst/odebrat pluginy"
@@ -1455,7 +1484,6 @@ msgstr "naplánovat spuštění příkazu v budoucnosti"
msgid "number[unit] command"
msgstr "číslo[jednotka] příkaz"
#, fuzzy
msgid ""
" number: amount of time to wait (integer number)\n"
" unit: optional, values are:\n"
@@ -1484,7 +1512,7 @@ msgstr ""
" s: sekundy (výchozí)\n"
" m: minuty\n"
" h: hodiny\n"
" příkaz: příkaz, který spustit (nebo text, který poslat bufferu, pokud "
" příkaz: příkaz, který spustit (nebo text, který poslat bufferu, pokud "
"příkaz nezačíná '/')\n"
"\n"
"Poznámka: příkaz je spuštěn v bufferu, kde bylo /wait spuštěno (pokud není "
@@ -1492,9 +1520,12 @@ msgstr ""
"příkaz spuštěn v bufferu jádra WeeChat).\n"
"\n"
"Příklady:\n"
" připojit se na kanál za 10 sekund: /wait 10 /join #test\n"
" nastavit nepřítomnost za 15 minut: /wait 15m /away -all I'm away\n"
" říct 'hello' za 2 minuty: /wait 2m hello"
" připojit na kanál za 10 sekund:\n"
" /wait 10 /join #test\n"
" nastavit nepřítomnost za 15 minut:\n"
" /wait 15m /away -all I'm away\n"
" říct 'hello' za 2 minuty:\n"
" /wait 2m hello"
msgid "manage windows"
msgstr "spravuje okna"
@@ -1510,7 +1541,6 @@ msgstr ""
"scroll_up | scroll_down | scroll_top | scroll_bottom | "
"scroll_previous_highlight | scroll_next_highlight | zoom]"
#, fuzzy
msgid ""
" list: list opened windows (without argument, this list is "
"displayed)\n"
@@ -1565,7 +1595,6 @@ msgstr ""
" splitv: rozdělí aktuální okno vertikálně\n"
" resize: změní velikost okna, nová velikost je <pct> nadřazeného okna\n"
" merge: spojí okno s jiným (all = nechej akorát jedno okno)\n"
"\n"
" page_up: posunout o stránku nahoru\n"
" page_down: posunout o stránku dolů\n"
" refresh: překreslit okno\n"
@@ -1584,10 +1613,14 @@ msgstr ""
"vytvořít nové okno s velikostí = aktuální_velikost / 4\n"
"\n"
"Příklady:\n"
" přesunout na okno s bufferem číslo 1: /window b1\n"
" posunout o 2 řádky nahoru: /window scroll -2\n"
" posunout o 2 dva dny nahoru: /window scroll -2d\n"
" posunout na začátek aktuálního dne: /window scroll -d"
" skočit na okno zobrazující buffer #1:\n"
" /window b1\n"
" posunout o dva řádky nahoru:\n"
" /window scroll -2\n"
" posunout o dva dny nahoru:\n"
" /window scroll -2d\n"
" posunout na začátek aktuálního dne:\n"
" /window scroll -d"
msgid ""
"Warning: you should now issue /save to write \"save_config_on_exit\" option "
@@ -1979,9 +2012,8 @@ msgstr "barva textu pro skupiny v seznamu přezdívek"
msgid "text color for away nicknames"
msgstr "barva textu pro nepřítomné přezdíveky"
#, fuzzy
msgid "text color for offline nicknames"
msgstr "barva textu pro nepřítomné přezdíveky"
msgstr "barva textu pro nepřipojené přezdíveky"
msgid "text color for prefix #1 in nicklist"
msgstr "barva textu pro 1. prefix v seznamu přezdívek"
@@ -2067,7 +2099,6 @@ msgstr ""
msgid "file containing the certificate authorities"
msgstr "soubor obsahuje certifikační autority"
#, fuzzy
msgid ""
"comma separated list of plugins to load automatically at startup, \"*\" "
"means all plugins found, a name beginning with \"!\" is a negative value to "
@@ -2075,8 +2106,9 @@ msgid ""
"match several plugins (examples: \"*\" or \"*,!lua,!tcl\")"
msgstr ""
"čárkou rozdělený seznam pluginů pro automatické načtení při spuštění \"*\" "
"znamená všechny nalezené pluginy (jména mohou být částečná, například \"perl"
"\" je OK pro \"perl.so\")"
"znamená všechny nalezené pluginy, jméno začínající \"!\" je negativní "
"hodnota k zabránění načtení pluginu, jména mohou začínat nebo končit \"*\" "
"pro vybrání několika pluginů (příklady: \"*\" nebo \"*,!lua,!tcl\")"
msgid ""
"enable debug messages by default in all plugins (option disabled by default, "
@@ -2120,9 +2152,9 @@ msgstr "(výchozí volby)"
msgid "%sError: cannot create file \"%s\""
msgstr "%sChyba: nemohu vytvořit soubor \"%s\""
#, fuzzy, c-format
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%s%s: chyba při vytváření konfiguračního souboru"
msgstr "%sChyba při zápisu konfiguračního souboru \"%s\""
#, c-format
msgid "%sWarning: configuration file \"%s\" not found"
@@ -2439,13 +2471,11 @@ msgstr "čísla bufferů"
msgid "names of buffers (including plugins names)"
msgstr "jména bufferů (včetně jmen pluginů)"
#, fuzzy
msgid "properties that can be set on a buffer"
msgstr "řádků bufferu"
msgstr "vlastnosti, které mohou být nastaveny bufferu"
#, fuzzy
msgid "properties that can be read on a buffer"
msgstr "řádků bufferu"
msgstr "vlastnosti, které mohou být čteny o bufferu"
msgid "configuration files"
msgstr "konfigurační soubory"
@@ -2498,9 +2528,10 @@ msgstr "volby pro pole"
msgid "key codes"
msgstr "klávesové kódy"
#, fuzzy
msgid "key codes that can be reset (keys added, redefined or removed)"
msgstr "Klávesové zkratky (%d):"
msgstr ""
"klávesové kódy mohou být resetovány (klávesy přidány, redefinovány nebo "
"smazány)"
msgid "Error: not enough memory to add a buffer to hotlist"
msgstr "Chyba: nedostatek paměti pro přidáni bufferu do hotlistu"
@@ -2556,11 +2587,10 @@ msgstr "%s%s: chyba při vytváření konfiguračního souboru"
msgid "create an alias for a command"
msgstr "vytvoří alias pro příkaz"
#, fuzzy
msgid "[[-completion completion] alias_name [command [arguments]]]"
msgstr "[jméno_aliasu [příkaz [argumenty]]]"
msgstr "[[-completion doplňování] jméno_aliasu [příkaz [argumenty]]]"
#, fuzzy, c-format
#, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
@@ -2592,6 +2622,8 @@ msgid ""
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgstr ""
" completion: doplňování pro alias (nepovinné, jako výchozí doplňování je "
"použito doplňování příkazu)\n"
"jméno_aliasu: jméno aliasu (může začínat i končit \"*\" pro výpis aliasů)\n"
" příkaz: jméno příkazu (více příkazů se rozděluje středníky)\n"
" argumenty: argumenty příkazu\n"
@@ -2607,7 +2639,16 @@ msgstr ""
" $~: poslední argument\n"
" $nick: aktuální přezdívka\n"
" $channel: aktuální kanál\n"
" $server: aktuální server"
" $server: aktuální server\n"
"\n"
"Příklady:\n"
" alias /split pro horizontální rozdělení okna:\n"
" /alias split /window splith\n"
" alias /hello pro poslání \"hello\" na všechny kanály kromě #weechat:\n"
" /alias hello /allchan -exclude=#weechat msg * hello\n"
" alias /forcejoin pro poslání IRC příkazu \"forcejoin\" s doplňováním z /"
"sajoin:\n"
" /alias -completion %%sajoin forcejoin /quote forcejoin"
msgid "remove aliases"
msgstr "odebere aliasy"
@@ -2621,9 +2662,9 @@ msgstr "jméno_aliasu: jméno aliasu pro odebrání"
msgid "list of aliases"
msgstr "seznam aliasů"
#, fuzzy, c-format
#, c-format
msgid "%s%s: error creating completion for alias \"%s\": alias not found"
msgstr "%sChyba: volba nastavení \"%s\" nenalezena"
msgstr "%s%s: chyba vytváření doplňování pro alias \"%s\": alias nenalezen"
msgid "alias pointer (optional)"
msgstr "ukazatel aliasu (volitelné)"
@@ -3239,15 +3280,13 @@ msgstr ""
msgid "connect to IRC server(s)"
msgstr "připojit se k IRC serveru/serverům"
#, fuzzy
msgid ""
"[-all [-nojoin] | -open [-nojoin] | servername [servername ...] [-nojoin] | "
"hostname[/port] [-option[=value]] [-nooption]]"
msgstr ""
"[-all [-nojoin] | jméno_serveru [jméno_serveru ...] [-nojoin] | jméno_hosta[/"
"port] [-volba[=hodnota]] [-novolba]]"
"[-all [-nojoin] | -open [-nojoin] | jméno_serveru [jméno_serveru ...] [-"
"nojoin] | jméno_hosta[/port] [-volba[=hodnota]] [-novolba]]"
#, fuzzy
msgid ""
" -all: connect to all servers defined in configuration\n"
" -open: connect to all opened servers that are not currently connected\n"
@@ -3267,7 +3306,9 @@ msgid ""
" /connect irc6.oftc.net/6697 -ipv6 -ssl\n"
" /connect my.server.org/6697 -ssl -password=test"
msgstr ""
" -all: připojit ke všem serverům\n"
" -all: připojit ke všem serverům definovaným v konfiguraci\n"
" -open: připojit ke všem otevřeným serverům, které nejsou přáve "
"připojeny\n"
"jméno_serveru: vnitřní jméno serveru pro přípojení (server musí být vytvořen "
"pomocí /server add)\n"
" -nojoin: nepřipojovat se na kanály (i pokud je na serveru zpanuto "
@@ -3319,7 +3360,6 @@ msgstr "spustit DCC (soubor nebo rozhovor)"
msgid "action [nickname [file]]"
msgstr "akce [přezdívka [soubor]]"
#, fuzzy
msgid ""
" action: 'send' (file) or 'chat'\n"
"nickname: nickname to send file or chat\n"
@@ -3333,7 +3373,12 @@ msgid ""
msgstr ""
" akce: 'send' (soubor) nebo 'chat'\n"
"nickname: přezdívka, které poslat soubor nebo rozhovor\n"
" soubor: jméno souboru (na lokálním počítači)"
" soubor: jméno souboru (na lokálním počítači)\n"
"Příklady:\n"
" rozhovor s přezdívkou \"toto\":\n"
" /dcc chat toto\n"
" poslat soubor \"/home/foo/bar.txt\" přezdívce \"toto\":\n"
" /dcc send toto /home/foo/bar.txt"
msgid "remove half channel operator status from nickname(s)"
msgstr "odebrat status polovičního operátora kanálu z přezdívky (přezdívek)"
@@ -3469,7 +3514,6 @@ msgstr ""
msgid "kicks and bans a nick from a channel"
msgstr "vyhodit a zakázat přezdívku na kanálu"
#, fuzzy
msgid ""
" channel: channel where user is\n"
"nickname: nickname to kick and ban\n"
@@ -3487,9 +3531,11 @@ msgstr ""
" komentář: komentář pro vykopnutí\n"
"\n"
"Je možné použít masku pro vykopnutí/zakázání, přezdívka bude extrahována z "
"masky a nahrazena \"*\", napříkald:\n"
" /kickban toto!*@host.com\n"
" zakáže \"*!*@host.com\" a pak vykopne \"toto\"."
"masky a nahrazena \"*\".\n"
"\n"
"Příklad:\n"
" zakázat \"*!*@host.com\" a potom vykopnout \"toto\":\n"
" /kickban toto!*@host.com"
msgid "close client-server connection"
msgstr "zavřít spojení klient-server"
@@ -3521,9 +3567,8 @@ msgstr ""
msgid "list channels and their topic"
msgstr "vypsat kanály a jejich témata"
#, fuzzy
msgid "[channel[,channel] [server] [-re regexp]]"
msgstr "[kanál,[,kanál] [server]]"
msgstr "[kanál,[,kanál] [server] [-re regexp]]"
msgid ""
"channel: channel to list\n"
@@ -3539,6 +3584,19 @@ msgid ""
"networks):\n"
" /list -re #weechat.*"
msgstr ""
" kanál: kanál, který vypsat\n"
"server: jméno serveru\n"
"regexp: regulární výraz pro filtrování výsledků\n"
"\n"
"Příklady:\n"
" vypsat všechny kanály na serveru (na velkých sítích může být velmi "
"pomalé):\n"
" /list\n"
" vypsat kanál #weechat:\n"
" /list #weechat\n"
" vypsat všechny kanály začínající na \"#weechat\" (na velkých sítích může "
"být velmi pomalé):\n"
" /list -re #weechat.*"
msgid "get statistics about the size of the IRC network"
msgstr "získat statistiku o velikosti IRC sítě"
@@ -3862,7 +3920,6 @@ msgstr ""
"nové_jméno_serveru] | [keep jméno_serveru] | [del jméno_serveru] | [deloutq] "
"| [jump] | [raw]"
#, fuzzy
msgid ""
" list: list servers (without argument, this list is displayed)\n"
" listfull: list servers with detailed info for each server\n"
@@ -4406,7 +4463,7 @@ msgstr ""
"soukromý buffer, kdy existuje)"
msgid "close buffer when /part is issued on a channel"
msgstr ""
msgstr "zavřít buffer, když je na kanálu spuštěn /part"
msgid "strip colors in topic (used only when displaying buffer title)"
msgstr ""
@@ -4564,16 +4621,14 @@ msgstr[0] "kanál"
msgstr[1] "kanály"
msgstr[2] "kanálů"
#, fuzzy
msgid "1 if string is a valid IRC channel name"
msgstr "1 pokud je řetězec IRC kanál"
msgstr "1 pokud je řetězec validní jméno IRC kanálu"
msgid "channel name"
msgstr "jméno kanálu"
#, fuzzy
msgid "1 if string is a valid IRC nick name"
msgstr "1 pokud je řetězec IRC kanál"
msgstr "1 pokud je řetězec validní jméno IRC přezdívky"
msgid "nickname"
msgstr "přezdívka"
@@ -5264,7 +5319,6 @@ msgstr "konfigurace logovacího pluginu"
msgid "[list | set level | disable]"
msgstr "[list | set úroveň | disable]"
#, fuzzy
msgid ""
" list: show logging status for opened buffers\n"
" set: set logging level on current buffer\n"
@@ -5296,7 +5350,7 @@ msgid ""
msgstr ""
" list: zobrazit status logování pro otevřené buffery\n"
" set: nastavit úroveň logování pro aktuální buffer\n"
" úroveň: úroveň logování zpráv (0 = logování vypnuto, 1 = pár zpráv (pouze "
" úroveň: úroveň logování zpráv (0 = logování vypnuto, 1 = pár zpráv (nejvíce "
"důležité) .. 9 = všechny zprávy)\n"
"disable: vypne logování na aktuálním serveru (nastaví úroveň na 0)\n"
"\n"
@@ -5308,7 +5362,6 @@ msgstr ""
" /logger set 5\n"
" vypne logování pro aktuální buffer:\n"
" /logger disable\n"
"\n"
" nastaví úroveň 3 pro všechny IRC buffery:\n"
" /set logger.level.irc 3\n"
" vypne logování hlavního bufferu WeeChat:\n"
@@ -6400,14 +6453,3 @@ msgstr "Argumenty"
msgid "Pointer"
msgstr "Ukazatel"
#~ msgid ""
#~ "channel: channel to list (a regexp is allowed)\n"
#~ "server: server name"
#~ msgstr ""
#~ "kanál: kanál, který se má vypsat (regulární výraz je povolen)\n"
#~ "server: jméno serveru"
#, fuzzy
#~ msgid "No key added or redefined"
#~ msgstr "Žádné klávesové zkratky nejsou definovány"
+7 -7
View File
@@ -8,10 +8,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Project-Id-Version: WeeChat 0.3.2\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-04-05 12:44+0200\n"
"PO-Revision-Date: 2010-04-04 12:20+0100\n"
"POT-Creation-Date: 2010-04-18 09:21+0200\n"
"PO-Revision-Date: 2010-04-17 11:25+0200\n"
"Last-Translator: Nils G <weechatter@arcor.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -3412,15 +3412,13 @@ msgstr ""
msgid "connect to IRC server(s)"
msgstr "Mit IRC-Server(n) verbinden"
#, fuzzy
msgid ""
"[-all [-nojoin] | -open [-nojoin] | servername [servername ...] [-nojoin] | "
"hostname[/port] [-option[=value]] [-nooption]]"
msgstr ""
"[-all [-nojoin] | Servername [Servername ...] [-nojoin] | Hostname[/port] [-"
"option[=value]] [-nooption]]"
"[-all [-nojoin] | -open [-nojoin] | servername [servername ...] [-nojoin] | "
"hostname[/port] [-option[=value]] [-nooption]]"
#, fuzzy
msgid ""
" -all: connect to all servers defined in configuration\n"
" -open: connect to all opened servers that are not currently connected\n"
@@ -3441,6 +3439,8 @@ msgid ""
" /connect my.server.org/6697 -ssl -password=test"
msgstr ""
" -all: Verbindet mit allen Servern\n"
" -open: stellt eine Verbindung zu allen geöffneten Servern her, zu denen "
"es aktuell keine Verbindung gibt\n"
"servername: intern genutzter Servername, mit dem verbunden werden soll (Der "
"Server muss zuerst mittels \"/server add\" angelegt werden)\n"
" -nojoin: betrete (/join) keinen Channel (auch wenn die Funktion \"autojoin"
+287 -214
View File
File diff suppressed because it is too large Load Diff
+3 -13
View File
@@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Project-Id-Version: WeeChat 0.3.2\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-04-05 12:44+0200\n"
"PO-Revision-Date: 2010-04-05 12:45+0200\n"
"POT-Creation-Date: 2010-04-18 09:21+0200\n"
"PO-Revision-Date: 2010-04-17 11:25+0200\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -6598,13 +6598,3 @@ msgstr "Paramètres"
msgid "Pointer"
msgstr "Pointeur"
#~ msgid ""
#~ "channel: channel to list (a regexp is allowed)\n"
#~ "server: server name"
#~ msgstr ""
#~ "canal: canal à lister (une expression régulière est acceptée)\n"
#~ "serveur: nom du serveur"
#~ msgid "No key added or redefined"
#~ msgstr "Pas de touche ajoutée ou redéfinie"
+3 -14
View File
@@ -10,10 +10,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Project-Id-Version: WeeChat 0.3.2\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-04-05 12:44+0200\n"
"PO-Revision-Date: 2010-03-23 10:20+0100\n"
"POT-Creation-Date: 2010-04-18 09:21+0200\n"
"PO-Revision-Date: 2010-04-17 11:25+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -6265,14 +6265,3 @@ msgstr "fogadó típusa [paraméterek]"
#, fuzzy
msgid "Pointer"
msgstr "perc"
#~ msgid ""
#~ "channel: channel to list (a regexp is allowed)\n"
#~ "server: server name"
#~ msgstr ""
#~ " szoba: listázandó szoba (regexp engedélyezett)\n"
#~ "szerver: szerver neve"
#, fuzzy
#~ msgid "No key added or redefined"
#~ msgstr "Nincs aliasz definiálva.\n"
+15 -56
View File
@@ -6,10 +6,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Weechat 0.3.2-dev\n"
"Project-Id-Version: Weechat 0.3.2\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-04-05 12:44+0200\n"
"PO-Revision-Date: 2010-04-04 22:51+0200\n"
"POT-Creation-Date: 2010-04-18 09:21+0200\n"
"PO-Revision-Date: 2010-04-17 11:25+0200\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -1191,7 +1191,7 @@ msgstr ""
" /key reset meta-r"
msgid "save/apply/reset layout for buffers and windows"
msgstr "salva/applica/resetta il layout per i buffer e le finestre"
msgstr "salva/applica/ripristina il layout per i buffer e le finestre"
msgid "[[save | apply | reset] [buffers | windows]]"
msgstr "[[save | apply | reset] [buffers | windows]]"
@@ -1353,7 +1353,7 @@ msgstr ""
" /proxy del mioproxy"
msgid "quit WeeChat"
msgstr "esci da WeeChat"
msgstr "esce da WeeChat"
msgid "[arguments]"
msgstr "[argomenti]"
@@ -1427,7 +1427,7 @@ msgstr ""
"speciali dei plugin."
msgid "unset/reset config options"
msgstr "annulla/resetta opzione"
msgstr "annulla/ripristina opzione"
msgid "[option]"
msgstr "[opzione]"
@@ -1439,11 +1439,11 @@ msgid ""
"According to option, it's reset (for standard options) or removed (for "
"optional settings, like server values)."
msgstr ""
"opzione: nome di un'opzione (può cominciare o finire con \"*\" per il reset "
"di più opzioni, attenzione!)\n"
"opzione: nome di un'opzione (può cominciare o finire con \"*\" per il "
"ripristino di più opzioni, attenzione!)\n"
"\n"
"A seconda dell'opzione, viene resettata (per le opzioni standard) o rimossa "
"(per le impostazioni opzionali, come i valori del server)"
"A seconda dell'opzione, essa viene ripristinata (per le opzioni standard) o "
"rimossa (per le impostazioni opzionali, come i valori del server)"
msgid "upgrade WeeChat without disconnecting from servers"
msgstr "aggiorna WeeChat senza disconnettere dai server"
@@ -3339,8 +3339,8 @@ msgid ""
"[-all [-nojoin] | -open [-nojoin] | servername [servername ...] [-nojoin] | "
"hostname[/port] [-option[=value]] [-nooption]]"
msgstr ""
"[-all [-nojoin] | -open [-nojoin] | nome_server [nome_server ...] [-nojoin] | "
"nome_host[/porta] [-opzione[=valore]] [-nooption]"
"[-all [-nojoin] | -open [-nojoin] | nome_server [nome_server ...] [-nojoin] "
"| nome_host[/porta] [-opzione[=valore]] [-nooption]"
msgid ""
" -all: connect to all servers defined in configuration\n"
@@ -3362,7 +3362,8 @@ msgid ""
" /connect my.server.org/6697 -ssl -password=test"
msgstr ""
" -all: connette a tutti i server definiti nella configurazione\n"
" -open: connette a tutti i server aperti ai quali non si è attualmente connessi\n"
" -open: connette a tutti i server aperti ai quali non si è attualmente "
"connessi\n"
"nome_server: nome interno del server a cui connettersi (il server deve "
"essere stato creato con /server add)\n"
" -nojoin: non entrare in nessun canale (anche se l'ingresso automatico è "
@@ -3868,7 +3869,7 @@ msgstr ""
" dati: dati grezzi da inviare"
msgid "reconnect to server(s)"
msgstr "riconnetti a uno (o più) server"
msgstr "riconnette a uno (o più) server"
msgid "[-all [-nojoin] | servername [servername ...] [-nojoin]]"
msgstr "[-all [-nojoin] | nome_server [nome_server ...] [-nojoin]]"
@@ -6548,45 +6549,3 @@ msgstr "Argomenti"
msgid "Pointer"
msgstr "Puntatore"
#~ msgid ""
#~ "channel: channel to list (a regexp is allowed)\n"
#~ "server: server name"
#~ msgstr ""
#~ "canale: canale da elencare (è consentita un'espressione regolare)\n"
#~ "server: nome del server"
#~ msgid ""
#~ " bind: bind a command to a key or display command bound to key\n"
#~ " unbind: remove a key binding\n"
#~ " reset: restore bindings to the default values and delete ALL personal "
#~ "bindings (use carefully!)\n"
#~ "missing: add missing keys (using default bindings)\n"
#~ "\n"
#~ "When binding a command to a key, it is recommended to use key alt+k (or "
#~ "Esc then k), and then press the key to bind: this will insert key code in "
#~ "command line."
#~ msgstr ""
#~ " bind: associa un comando ad un tasto o visualizza il comando "
#~ "associato al tasto\n"
#~ " unbind: elimina l'associazione di un tasto\n"
#~ " reset: ripristina le associazioni ai valori predefiniti ed elimina "
#~ "TUTTE le associazioni personalizzate (attenzione!)\n"
#~ " missing: aggiunge i tasti mancanti (utilizzando le associazioni "
#~ "predefinite)\n"
#~ "\n"
#~ "Quando viene associato un comando ad una chiave, è consigliato utilizzare "
#~ "il tasto alt+k (oppure Esc e k), e poi premere il tasto da associare: il "
#~ "codice tasto verrà inserito nella riga di comando."
#~ msgid "Welcome to %sWeeChat%s, %s"
#~ msgstr "Benvenuto in %sWeeChat%s, %s"
#~ msgid "WeeChat slogan (if empty, slogan is not used)"
#~ msgstr "Slogan WeeChat (se è vuoto, non viene utilizzato)"
#~ msgid "the geekiest chat client!"
#~ msgstr "il client chat più geek!"
#~ msgid "text color for '+' when scrolling nicks in nicklist"
#~ msgstr "colore del testo per '+' allo scorrimento dei nick nella lista nick"
+253 -210
View File
File diff suppressed because it is too large Load Diff
+3 -14
View File
@@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.2-dev\n"
"Project-Id-Version: WeeChat 0.3.2\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-04-05 12:44+0200\n"
"PO-Revision-Date: 2010-03-23 10:20+0100\n"
"POT-Creation-Date: 2010-04-18 09:21+0200\n"
"PO-Revision-Date: 2010-04-17 11:25+0200\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -6263,14 +6263,3 @@ msgstr "адресат тип [аргументы]"
#, fuzzy
msgid "Pointer"
msgstr "минута"
#~ msgid ""
#~ "channel: channel to list (a regexp is allowed)\n"
#~ "server: server name"
#~ msgstr ""
#~ " канал: перечисляемый канал (возможно регулярное выражение)\n"
#~ "сервер: название сервера"
#, fuzzy
#~ msgid "No key added or redefined"
#~ msgstr "Сокращения не заданы.\n"
+1 -1
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2010-04-05 12:44+0200\n"
"POT-Creation-Date: 2010-04-18 09:21+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
+1 -1
View File
@@ -1918,7 +1918,7 @@ config_file_write_internal (struct t_config_file *config_file,
(default_options) ? _("(default options)") : "");
/* open temp file in write mode */
config_file->file = fopen (filename2, "w");
config_file->file = fopen (filename2, "wb");
if (!config_file->file)
{
gui_chat_printf (NULL,
+12 -12
View File
@@ -501,8 +501,20 @@ gui_line_remove_from_list (struct t_gui_buffer *buffer,
struct t_gui_line *line,
int free_data)
{
struct t_gui_window *ptr_win;
int update_prefix_max_length;
/* reset scroll for any window starting with this line */
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window)
{
if (ptr_win->start_line == line)
{
ptr_win->start_line = ptr_win->start_line->next_line;
ptr_win->start_line_pos = 0;
gui_buffer_ask_chat_refresh (buffer, 2);
}
}
update_prefix_max_length =
(line->data->prefix_length == lines->prefix_max_length);
@@ -621,7 +633,6 @@ void
gui_line_free (struct t_gui_buffer *buffer, struct t_gui_line *line)
{
struct t_gui_line *ptr_line;
struct t_gui_window *ptr_win;
/* first remove mixed line if it exists */
if (buffer->mixed_lines)
@@ -640,17 +651,6 @@ gui_line_free (struct t_gui_buffer *buffer, struct t_gui_line *line)
}
}
/* reset scroll for any window starting with this line */
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window)
{
if (ptr_win->start_line == line)
{
ptr_win->start_line = ptr_win->start_line->next_line;
ptr_win->start_line_pos = 0;
gui_buffer_ask_chat_refresh (buffer, 2);
}
}
/* remove line from lines list */
gui_line_remove_from_list (buffer, buffer->own_lines, line, 1);
}
+9 -6
View File
@@ -120,8 +120,8 @@ char *perl_weechat_code =
" }"
" return 0;"
"}"
"$SIG{__WARN__} = sub { weechat::print(\"\", \"perl error: $_[0]\"); };"
"$SIG{__DIE__} = sub { weechat::print(\"\", \"perl error: $_[0]\"); };"
"$SIG{__WARN__} = sub { weechat::print(\"\", \"\tperl error: $_[0]\"); };"
"$SIG{__DIE__} = sub { weechat::print(\"\", \"\tperl error: $_[0]\"); };"
};
@@ -288,6 +288,7 @@ weechat_perl_load (const char *filename)
}
perl_current_script = NULL;
perl_current_script_filename = filename;
perl_registered_script = NULL;
#ifdef MULTIPLICITY
@@ -302,8 +303,6 @@ weechat_perl_load (const char *filename)
return 0;
}
perl_current_script_filename = filename;
PERL_SET_CONTEXT (perl_current_interpreter);
perl_construct (perl_current_interpreter);
temp_script.interpreter = (PerlInterpreter *) perl_current_interpreter;
@@ -892,8 +891,12 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
perl_main = NULL;
}
#endif
#ifdef PERL_SYS_TERM
#if defined(PERL_SYS_TERM) && !defined(__FreeBSD__) && !defined(WIN32) && !defined(__CYGWIN__)
/*
* we call this function on all OS, but NOT on FreeBSD or Cygwin,
* because it crashes with no reason (bug in Perl?)
*/
if (perl_quit_or_upgrade)
PERL_SYS_TERM ();
#endif
+4 -2
View File
@@ -17,7 +17,7 @@
#
%define name weechat
%define version 0.3.1
%define version 0.3.2
%define release 1
Name: %{name}
@@ -28,7 +28,7 @@ Source: http://www.weechat.org/files/src/%{name}-%{version}.tar.gz
URL: http://www.weechat.org/
Group: Productivity/Networking/IRC
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Requires: perl, python, ruby, gnutls, ncurses
Requires: perl, python, ruby, lua, tcl, gcrypt, gnutls, ncurses
License: GPL
Vendor: FlashCode <flashcode@flashtux.org>
Packager: [Odin] <odin@dtdm.org>
@@ -67,6 +67,8 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/%{name}/weechat-plugin.h
%changelog
* Sun Apr 18 2010 FlashCode <flashcode@flashtux.org> 0.3.2-1
- Released version 0.3.2
* Sat Jan 23 2010 FlashCode <flashcode@flashtux.org> 0.3.1-1
- Released version 0.3.1
* Sun Sep 06 2009 FlashCode <flashcode@flashtux.org> 0.3.0-1