diff options
-rw-r--r-- | doc/de/weechat_scripting.de.adoc | 7 | ||||
-rw-r--r-- | doc/en/weechat_scripting.en.adoc | 5 | ||||
-rw-r--r-- | doc/fr/weechat_scripting.fr.adoc | 7 | ||||
-rw-r--r-- | doc/it/weechat_scripting.it.adoc | 7 | ||||
-rw-r--r-- | doc/ja/weechat_scripting.ja.adoc | 6 | ||||
-rw-r--r-- | doc/pl/weechat_scripting.pl.adoc | 6 |
6 files changed, 23 insertions, 15 deletions
diff --git a/doc/de/weechat_scripting.de.adoc b/doc/de/weechat_scripting.de.adoc index a98781626..b0399887d 100644 --- a/doc/de/weechat_scripting.de.adoc +++ b/doc/de/weechat_scripting.de.adoc @@ -416,9 +416,10 @@ Beinahe alle WeeChat Callbacks müssen entweder WEECHAT_RC_OK oder WEECHAT_RC_ER Ergebnis zurück liefern. Eine Ausnahme bildet das modifier Callback, hier wird ein String als Rückgabewert erwartet. -C Callbacks nutzen ein "Data" Argument welches ein Pointer ist. In der -Skript API ist "Data" ein String der jeden Wert haben darf (es handelt sich -nicht um einen Pointer). +// TRANSLATION MISSING +C callbacks are using "callback_pointer" and "callback_data" arguments, which +are pointers. In script API, there is only "callback_data" (or "data"), and it +is a string instead of a pointer. callback Beispiele, für jede Skriptsprache: diff --git a/doc/en/weechat_scripting.en.adoc b/doc/en/weechat_scripting.en.adoc index 414372352..2c9bbd330 100644 --- a/doc/en/weechat_scripting.en.adoc +++ b/doc/en/weechat_scripting.en.adoc @@ -400,8 +400,9 @@ otherwise you may see a nice crash report ;) Almost all WeeChat callbacks must return WEECHAT_RC_OK or WEECHAT_RC_ERROR (exception is modifier callback, which returns a string). -C callbacks are using a "data" argument, which is a pointer. In script API, -this "data" is a string with a any value (it's not a pointer). +C callbacks are using "callback_pointer" and "callback_data" arguments, which +are pointers. In script API, there is only "callback_data" (or "data"), and it +is a string instead of a pointer. Example of callback, for each language: diff --git a/doc/fr/weechat_scripting.fr.adoc b/doc/fr/weechat_scripting.fr.adoc index 9977794c9..d7bbb10b7 100644 --- a/doc/fr/weechat_scripting.fr.adoc +++ b/doc/fr/weechat_scripting.fr.adoc @@ -418,9 +418,10 @@ Toutes les fonction de rappel WeeChat doivent retourner WEECHAT_RC_OK ou WEECHAT_RC_ERROR (l'exception est la fonction de rappel du modificateur, qui retourne une chaîne de caractères). -Les fonction de rappel C utilisent un paramètre "data", qui est un pointeur. -Dans l'API script, ce "data" est une chaîne de caractères avec n'importe quelle -valeur (ce n'est pas un pointeur). +Les fonctions de rappel C utilisent des paramètres "callback_pointer" et +"callback_data", qui sont des pointeurs. Dans l'API script, il y a seulement +"callback_data" (ou "data"), et il s'agit d'une chaîne de caractères au lieu +d'un pointeur. Exemple de fonction de rappel, pour chaque langage : diff --git a/doc/it/weechat_scripting.it.adoc b/doc/it/weechat_scripting.it.adoc index b3c9b4224..b9e64a56f 100644 --- a/doc/it/weechat_scripting.it.adoc +++ b/doc/it/weechat_scripting.it.adoc @@ -426,9 +426,10 @@ 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). +// TRANSLATION MISSING +C callbacks are using "callback_pointer" and "callback_data" arguments, which +are pointers. In script API, there is only "callback_data" (or "data"), and it +is a string instead of a pointer. Esempio di callback, per ogni linguaggio: diff --git a/doc/ja/weechat_scripting.ja.adoc b/doc/ja/weechat_scripting.ja.adoc index 6b1085a81..9e54c8e17 100644 --- a/doc/ja/weechat_scripting.ja.adoc +++ b/doc/ja/weechat_scripting.ja.adoc @@ -419,8 +419,10 @@ WeeChat の多くのスクリプト API ほとんど全ての WeeChat コールバックは WEECHAT_RC_OK または WEECHAT_RC_ERROR を返さなければいけません (modifier コールバックは例外で、これは文字列を返します)。 -C 言語コールバックはポインタ型の "data" 引数を利用します。スクリプト API -では、"data" は文字列型で任意の値を取れます (ポインタ型ではありません)。 +// TRANSLATION MISSING +C callbacks are using "callback_pointer" and "callback_data" arguments, which +are pointers. In script API, there is only "callback_data" (or "data"), and it +is a string instead of a pointer. 各プログラミング言語でコールバックを利用する例: diff --git a/doc/pl/weechat_scripting.pl.adoc b/doc/pl/weechat_scripting.pl.adoc index 73d66a2ee..6dd45a854 100644 --- a/doc/pl/weechat_scripting.pl.adoc +++ b/doc/pl/weechat_scripting.pl.adoc @@ -405,8 +405,10 @@ wypadku możesz zobaczyć ładny raport o błędzie ;) Prawie wszystkie callbacki muszą zwrócić WEECHAT_RC_OK lub WEECHAT_RC_ERROR (wyjątkiem jest callback modyfikujący, który zwraca ciąg). -Callbacki C używają argumentu "data", który jest wskaźnikiem. W API skryptów, -"data" jest ciągiem o dowolnej wartości (nie jest wskaźnikiem). +// TRANSLATION MISSING +C callbacks are using "callback_pointer" and "callback_data" arguments, which +are pointers. In script API, there is only "callback_data" (or "data"), and it +is a string instead of a pointer. Przykłady callbacków dla każdego języka: |