[[languages_specificities]]
=== Besonderheiten der einzelnen Skriptsprachen
+[[language_python]]
==== Python
+[[python_module]]
===== Module
WeeChat definiert ein `weechat` Module welches mittels `import weechat`
A Python stub for WeeChat API is available in the repository:
https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
+[[python_functions]]
===== Funktionen
Funktionen werden aufgerufen mittels `+weechat.xxx(arg1, arg2, ...)+`.
Die Funktionen `+print*+` werden bei python durch `+prnt*+` ersetzt
(`print` war ein reserviertes Schlüsselwort unter Python 2).
+[[python_strings]]
===== In Callbacks empfangene Zeichen
Mit Python 3 und WeeChat ≥ 2.7 sind die Zeichenketten in Callbacks
Zeichenkette die an die Callbacks gesendet wird immer vom Typ `str` und kann deshalb bei den
oben genannten Fällen, ungültige UTF-8 Daten enthalten.
+[[language_perl]]
==== Perl
+[[perl_functions]]
===== Funktionen
Funktionen werden aufgerufen mittels `+weechat::xxx(arg1, arg2, ...);+`.
+[[language_ruby]]
==== Ruby
+[[ruby_init]]
===== Initialization
Es muss _weechat_init_ definiert werden und darin dann _register_ ausgeführt werden.
+[[ruby_functions]]
===== Functions
Funktionen werden aufgerufen mittels `+Weechat.xxx(arg1, arg2, ...)+`.
["default", "default", "default", "default"], "0", "items")
----
+[[language_lua]]
==== Lua
+[[lua_functions]]
===== Funktionen
Funktionen werden aufgerufen mittels `+weechat.xxx(arg1, arg2, ...)+`.
+[[language_tcl]]
==== Tcl
+[[tcl_functions]]
===== Funktionen
Funktionen werden aufgerufen mittels `+weechat::xxx arg1 arg2 ...+`.
+[[language_guile]]
==== Guile (Scheme)
+[[guile_functions]]
===== Funktionen
Funktionen werden aufgerufen mittels `+(weechat:xxx arg1 arg2 ...)+`.
* config_new_option
* bar_new
+[[language_javascript]]
==== JavaScript
+[[javascript_functions]]
===== Funktionen
Funktionen werden aufgerufen mittels `+weechat.xxx(arg1, arg2, ...);+`.
+[[language_php]]
==== PHP
+[[php_functions]]
===== Functions
Funktionen werden aufgerufen mittels `+weechat_xxx(arg1, arg2, ...);+`.
[[languages_specificities]]
=== Languages specificities
+[[language_python]]
==== Python
+[[python_module]]
===== Module
WeeChat defines a `weechat` module which must be imported with `import weechat`. +
A Python stub for WeeChat API is available in the repository:
https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
+[[python_functions]]
===== Functions
Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
Functions `+print*+` are called `+prnt*+` in python (because `print` was a
reserved keyword in Python 2).
+[[python_strings]]
===== Strings received in callbacks
In Python 3 and with WeeChat ≥ 2.7, the strings received in callbacks have type
strings sent to callbacks are always of type `str`, and may contain invalid
UTF-8 data, in the cases mentioned above.
+[[language_perl]]
==== Perl
+[[perl_functions]]
===== Functions
Functions are called with `+weechat::xxx(arg1, arg2, ...);+`.
+[[language_ruby]]
==== Ruby
+[[ruby_init]]
===== Initialization
You have to define _weechat_init_ and call _register_ inside.
+[[ruby_functions]]
===== Functions
Functions are called with `+Weechat.xxx(arg1, arg2, ...)+`.
["default", "default", "default", "default"], "0", "items")
----
+[[language_lua]]
==== Lua
+[[lua_functions]]
===== Functions
Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
+[[language_tcl]]
==== Tcl
+[[tcl_functions]]
===== Functions
Functions are called with `+weechat::xxx arg1 arg2 ...+`.
+[[language_guile]]
==== Guile (Scheme)
+[[guile_functions]]
===== Functions
Functions are called with `+(weechat:xxx arg1 arg2 ...)+`.
* config_new_option
* bar_new
+[[language_javascript]]
==== JavaScript
+[[javascript_functions]]
===== Functions
Functions are called with `+weechat.xxx(arg1, arg2, ...);+`.
+[[language_php]]
==== PHP
+[[php_functions]]
===== Functions
Functions are called with `+weechat_xxx(arg1, arg2, ...);+`.
[[languages_specificities]]
=== Spécificités des langages
+[[language_python]]
==== Python
+[[python_module]]
===== Module
WeeChat définit un module `weechat` qui doit être importé avec `import weechat`. +
Un "stub" Python pour l'API WeeChat est disponible dans le dépôt :
https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
+[[python_functions]]
===== Fonctions
Les fonctions sont appelées avec `+weechat.xxx(arg1, arg2, ...)+`.
Les fonctions `+print*+` se nomment `+prnt*+` en python (car `print` était un
mot clé réservé en Python 2).
+[[python_strings]]
===== Chaînes reçues dans les fonctions de rappel
En Python 3 et avec WeeChat ≥ 2.7, les chaînes reçues dans les fonctions de
envoyées aux fonctions de rappel sont toujours de type `str`, et peuvent contenir
des données invalides UTF-8, dans les cas mentionnés ci-dessus.
+[[language_perl]]
==== Perl
+[[perl_functions]]
===== Fonctions
Les fonctions sont appelées par `+weechat::xxx(arg1, arg2, ...);+`.
+[[language_ruby]]
==== Ruby
+[[ruby_init]]
===== Initialisation
Vous devez définir _weechat_init_ et appeler _register_ dedans.
+[[ruby_functions]]
===== Fonctions
Les fonctions sont appelées par `+Weechat.xxx(arg1, arg2, ...)+`.
["default", "default", "default", "default"], "0", "items")
----
+[[language_lua]]
==== Lua
+[[lua_functions]]
===== Fonctions
Les fonctions sont appelées par `+weechat.xxx(arg1, arg2, ...)+`.
+[[language_tcl]]
==== Tcl
+[[tcl_functions]]
===== Fonctions
Les fonctions sont appelées par `+weechat::xxx arg1 arg2 ...+`.
+[[language_guile]]
==== Guile (Scheme)
+[[guile_functions]]
===== Fonctions
Les fonctions sont appelées par `+(weechat:xxx arg1 arg2 ...)+`.
* config_new_option
* bar_new
+[[language_javascript]]
==== JavaScript
+[[javascript_functions]]
===== Fonctions
Les fonctions sont appelées par `+weechat.xxx(arg1, arg2, ...);+`.
+[[language_php]]
==== PHP
+[[php_functions]]
===== Fonctions
Les fonctions sont appelées par `+weechat_xxx(arg1, arg2, ...);+`.
[[languages_specificities]]
=== Specifiche per i linguaggi
+[[language_python]]
==== Python
// TRANSLATION MISSING
+[[python_module]]
===== Module
WeeChat defines a `weechat` module which must be imported with `import weechat`. +
https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
// TRANSLATION MISSING
+[[python_functions]]
===== Functions
Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
reserved keyword in Python 2).
// TRANSLATION MISSING
+[[python_strings]]
===== Strings received in callbacks
In Python 3 and with WeeChat ≥ 2.7, the strings received in callbacks have type
strings sent to callbacks are always of type `str`, and may contain invalid
UTF-8 data, in the cases mentioned above.
+[[language_perl]]
==== Perl
// TRANSLATION MISSING
+[[perl_functions]]
===== Functions
Functions are called with `+weechat::xxx(arg1, arg2, ...);+`.
+[[language_ruby]]
==== Ruby
// TRANSLATION MISSING
+[[ruby_init]]
===== Initialization
You have to define _weechat_init_ and call _register_ inside.
// TRANSLATION MISSING
+[[ruby_functions]]
===== Functions
Functions are called with `+Weechat.xxx(arg1, arg2, ...)+`.
["default", "default", "default", "default"], "0", "items")
----
+[[language_lua]]
==== Lua
// TRANSLATION MISSING
+[[lua_functions]]
===== Functions
Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
+[[language_tcl]]
==== Tcl
// TRANSLATION MISSING
+[[tcl_functions]]
===== Functions
Functions are called with `+weechat::xxx arg1 arg2 ...+`.
+[[language_guile]]
==== Guile (Scheme)
// TRANSLATION MISSING
+[[guile_functions]]
===== Functions
Functions are called with `+(weechat:xxx arg1 arg2 ...)+`.
* config_new_option
* bar_new
+[[language_javascript]]
==== JavaScript
// TRANSLATION MISSING
+[[javascript_functions]]
===== Functions
Functions are called with `+weechat.xxx(arg1, arg2, ...);+`.
+[[language_php]]
==== PHP
// TRANSLATION MISSING
+[[php_functions]]
===== Functions
Functions are called with `+weechat_xxx(arg1, arg2, ...);+`.
[[languages_specificities]]
=== 言語仕様
+[[language_python]]
==== Python
// TRANSLATION MISSING
+[[python_module]]
===== Module
WeeChat defines a `weechat` module which must be imported with `import weechat`. +
https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
// TRANSLATION MISSING
+[[python_functions]]
===== Functions
Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
reserved keyword in Python 2).
// TRANSLATION MISSING
+[[python_strings]]
===== Strings received in callbacks
In Python 3 and with WeeChat ≥ 2.7, the strings received in callbacks have type
strings sent to callbacks are always of type `str`, and may contain invalid
UTF-8 data, in the cases mentioned above.
+[[language_perl]]
==== Perl
// TRANSLATION MISSING
+[[perl_functions]]
===== Functions
Functions are called with `+weechat::xxx(arg1, arg2, ...);+`.
+[[language_ruby]]
==== Ruby
// TRANSLATION MISSING
+[[ruby_init]]
===== Initialization
You have to define _weechat_init_ and call _register_ inside.
// TRANSLATION MISSING
+[[ruby_functions]]
===== Functions
Functions are called with `+Weechat.xxx(arg1, arg2, ...)+`.
["default", "default", "default", "default"], "0", "items")
----
+[[language_lua]]
==== Lua
// TRANSLATION MISSING
+[[lua_functions]]
===== Functions
Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
+[[language_tcl]]
==== Tcl
// TRANSLATION MISSING
+[[tcl_functions]]
===== Functions
Functions are called with `+weechat::xxx arg1 arg2 ...+`.
+[[language_guile]]
==== Guile (Scheme)
// TRANSLATION MISSING
+[[guile_functions]]
===== Functions
Functions are called with `+(weechat:xxx arg1 arg2 ...)+`.
* config_new_option
* bar_new
+[[language_javascript]]
==== JavaScript
// TRANSLATION MISSING
+[[javascript_functions]]
===== Functions
Functions are called with `+weechat.xxx(arg1, arg2, ...);+`.
+[[language_php]]
==== PHP
// TRANSLATION MISSING
+[[php_functions]]
===== Functions
Functions are called with `+weechat_xxx(arg1, arg2, ...);+`.
[[languages_specificities]]
=== Specyfika języków
+[[language_python]]
==== Python
+[[python_module]]
===== Moduł
WeeChat definiuje moduł `weechat`, który należy zaimportowac poprzez `import weechat`. +
A Python stub for WeeChat API is available in the repository:
https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
+[[python_functions]]
===== Funkcje
Funkcje są wywoływane za pomocą `+weechat.xxx(arg1, arg2, ...)+`.
Funkcje `+print*+` nzwyają się `+prnt*+` (ponieważ `print` był zarezerwowanym
łowem kluczowym w Pythonie 2).
+[[python_strings]]
===== Ciągi otrzymywane w callbackach
W Pythonie 3 i dla wersji WeeChat ≥ 2.7, ciągi te mają typ `str` jeśli ciąg
ciągi wysyłane do callbacków są zawsze typu `str` i mogą zawierać niepoprawne
dane UTF-8 w przypadkach wspomnianych wyżej.
+[[language_perl]]
==== Perl
+[[perl_functions]]
===== Funkcje
Funkcje są wywoływane za pomocą `+weechat::xxx(arg1, arg2, ...);+`.
+[[language_ruby]]
==== Ruby
+[[ruby_init]]
===== Inicjalizacja
Musisz zdefiniowac _weechat_init_ i wywołać wewnątrz _register_.
+[[ruby_functions]]
===== Funkcje
Funkcje wywoływane są za pomocą `+Weechat.xxx(arg1, arg2, ...)+`.
["default", "default", "default", "default"], "0", "items")
----
+[[language_lua]]
==== Lua
+[[lua_functions]]
===== Funkcje
Funkcje są wywoływane za pomocą `+weechat.xxx(arg1, arg2, ...)+`.
+[[language_tcl]]
==== Tcl
+[[tcl_functions]]
===== Funkcje
Funkcje są wywoływane za pomocą `+weechat::xxx arg1 arg2 ...+`.
+[[language_guile]]
==== Guile (Scheme)
+[[guile_functions]]
===== Funkcje
Funkcje są wywoływane za pomocą `+(weechat:xxx arg1 arg2 ...)+`.
* config_new_option
* bar_new
+[[language_javascript]]
==== JavaScript
+[[javascript_functions]]
===== Funkcje
Funkcje są wywoływane za pomocą `+weechat.xxx(arg1, arg2, ...);+`.
+[[language_php]]
==== PHP
+[[php_functions]]
===== Funkcje
Funkcje są wywoływane za pomocą `+weechat_xxx(arg1, arg2, ...);+`.