diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/de/weechat_scripting.de.adoc | 19 | ||||
-rw-r--r-- | doc/en/weechat_scripting.en.adoc | 19 | ||||
-rw-r--r-- | doc/fr/weechat_scripting.fr.adoc | 19 | ||||
-rw-r--r-- | doc/it/weechat_scripting.it.adoc | 19 | ||||
-rw-r--r-- | doc/ja/weechat_scripting.ja.adoc | 19 | ||||
-rw-r--r-- | doc/pl/weechat_scripting.pl.adoc | 19 |
6 files changed, 114 insertions, 0 deletions
diff --git a/doc/de/weechat_scripting.de.adoc b/doc/de/weechat_scripting.de.adoc index ae9cb40aa..a8d784c75 100644 --- a/doc/de/weechat_scripting.de.adoc +++ b/doc/de/weechat_scripting.de.adoc @@ -72,8 +72,10 @@ und die Dokumentation für die Funktion `+hook_process+` in link:weechat_plugin_ [[languages_specificities]] === Besonderheiten der einzelnen Skriptsprachen +[[language_python]] ==== Python +[[python_module]] ===== Module WeeChat definiert ein `weechat` Module welches mittels `import weechat` @@ -82,6 +84,7 @@ importiert werden muss. + 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, ...)+`. @@ -89,6 +92,7 @@ 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 @@ -145,18 +149,23 @@ Mit Python 2, das mittlerweile veraltet ist und nicht mehr verwendet werden soll 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, ...)+`. @@ -181,20 +190,26 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical" ["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 ...)+`. @@ -207,14 +222,18 @@ für andere Funktionen), da die Anzahl der Argumente die zulässige Anzahl in Gu * 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, ...);+`. diff --git a/doc/en/weechat_scripting.en.adoc b/doc/en/weechat_scripting.en.adoc index 29be944f2..59bf568ed 100644 --- a/doc/en/weechat_scripting.en.adoc +++ b/doc/en/weechat_scripting.en.adoc @@ -66,14 +66,17 @@ link:weechat_plugin_api.en.html#_hook_process[WeeChat plugin API reference]. [[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, ...)+`. @@ -81,6 +84,7 @@ 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 @@ -134,18 +138,23 @@ In Python 2, which is now deprecated and should not be used any more, the 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, ...)+`. @@ -170,20 +179,26 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical" ["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 ...)+`. @@ -196,14 +211,18 @@ arguments in Guile: * 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, ...);+`. diff --git a/doc/fr/weechat_scripting.fr.adoc b/doc/fr/weechat_scripting.fr.adoc index a917400b1..32367176b 100644 --- a/doc/fr/weechat_scripting.fr.adoc +++ b/doc/fr/weechat_scripting.fr.adoc @@ -72,14 +72,17 @@ link:weechat_plugin_api.en.html#_hook_process[Référence API extension WeeChat] [[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, ...)+`. @@ -87,6 +90,7 @@ 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 @@ -143,18 +147,23 @@ En Python 2, qui est déconseillé et ne devrait plus être utilisé, les chaîn 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, ...)+`. @@ -180,20 +189,26 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical" ["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 ...)+`. @@ -206,14 +221,18 @@ excède la limite de Guile : * 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, ...);+`. diff --git a/doc/it/weechat_scripting.it.adoc b/doc/it/weechat_scripting.it.adoc index e59c07618..edcc7fe25 100644 --- a/doc/it/weechat_scripting.it.adoc +++ b/doc/it/weechat_scripting.it.adoc @@ -75,9 +75,11 @@ link:weechat_plugin_api.it.html#_hook_process[WeeChat plugin API reference]. [[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`. + @@ -85,6 +87,7 @@ 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]. // TRANSLATION MISSING +[[python_functions]] ===== Functions Functions are called with `+weechat.xxx(arg1, arg2, ...)+`. @@ -93,6 +96,7 @@ Functions `+print*+` are called `+prnt*+` in python (because `print` was a 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 @@ -146,21 +150,26 @@ In Python 2, which is now deprecated and should not be used any more, the 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, ...)+`. @@ -186,23 +195,29 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical" ["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 ...)+`. @@ -215,16 +230,20 @@ arguments in Guile: * 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, ...);+`. diff --git a/doc/ja/weechat_scripting.ja.adoc b/doc/ja/weechat_scripting.ja.adoc index b2c08693e..11c3fdccb 100644 --- a/doc/ja/weechat_scripting.ja.adoc +++ b/doc/ja/weechat_scripting.ja.adoc @@ -72,9 +72,11 @@ link:weechat_plugin_api.ja.html#_hook_process[WeeChat プラグイン API リフ [[languages_specificities]] === 言語仕様 +[[language_python]] ==== Python // TRANSLATION MISSING +[[python_module]] ===== Module WeeChat defines a `weechat` module which must be imported with `import weechat`. + @@ -82,6 +84,7 @@ 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]. // TRANSLATION MISSING +[[python_functions]] ===== Functions Functions are called with `+weechat.xxx(arg1, arg2, ...)+`. @@ -90,6 +93,7 @@ Functions `+print*+` are called `+prnt*+` in python (because `print` was a 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 @@ -143,21 +147,26 @@ In Python 2, which is now deprecated and should not be used any more, the 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, ...)+`. @@ -183,23 +192,29 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical" ["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 ...)+`. @@ -212,16 +227,20 @@ arguments in Guile: * 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, ...);+`. diff --git a/doc/pl/weechat_scripting.pl.adoc b/doc/pl/weechat_scripting.pl.adoc index e1548b059..5e3666d8a 100644 --- a/doc/pl/weechat_scripting.pl.adoc +++ b/doc/pl/weechat_scripting.pl.adoc @@ -72,8 +72,10 @@ link:weechat_plugin_api.en.html#_hook_process[Opisu API wtyczek WeeChat] (Angiel [[languages_specificities]] === Specyfika języków +[[language_python]] ==== Python +[[python_module]] ===== Moduł WeeChat definiuje moduł `weechat`, który należy zaimportowac poprzez `import weechat`. + @@ -81,6 +83,7 @@ WeeChat definiuje moduł `weechat`, który należy zaimportowac poprzez `import 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, ...)+`. @@ -88,6 +91,7 @@ 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 @@ -140,18 +144,23 @@ W Pytonie 2, który jest już nie wspierany i nie powinien być już używany, 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, ...)+`. @@ -176,20 +185,26 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical" ["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 ...)+`. @@ -202,14 +217,18 @@ argumentów dozwolonych w Guile: * 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, ...);+`. |