From af5b8ea165320708fd26d30d5e34defff468dd6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 26 Nov 2017 10:22:23 +0100 Subject: [PATCH] doc: translate doc on weechat_plugin pointer in other languages (plugin API reference) --- doc/en/weechat_plugin_api.en.adoc | 2 +- doc/fr/weechat_plugin_api.fr.adoc | 12 +++++++++++- doc/it/weechat_plugin_api.it.adoc | 14 +++++++++++++- doc/ja/weechat_plugin_api.ja.adoc | 14 +++++++++++++- 4 files changed, 38 insertions(+), 4 deletions(-) diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index f5a28c807..1c2b6fd67 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -42,7 +42,7 @@ code). This file defines structures and types used to communicate with WeeChat. In order to call WeeChat functions in the format displayed in <>, -the following global pointer must be declared and initialized in +the following global pointer must be declared and initialized in the function <<_weechat_plugin_init,weechat_plugin_init>>: [source,C] diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 3291f6182..45c99ea2a 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -44,6 +44,15 @@ source WeeChat). Ce fichier définit les structures et types utilisés pour communiquer avec WeeChat. +Pour appeler les fonctions de WeeChat dans le format affiché dans <>, +le pointeur global suivant doit être déclaré et initialisé dans la fonction +<<_weechat_plugin_init,weechat_plugin_init>> : + +[source,C] +---- +struct t_weechat_plugin *weechat_plugin; +---- + [[macros]] === Macros @@ -86,7 +95,8 @@ int weechat_plugin_init (struct t_weechat_plugin *plugin, Paramètres : -* _plugin_ : pointeur vers la structure d'extension WeeChat +* _plugin_ : pointeur vers la structure d'extension WeeChat, utilisé pour + initialiser le pointeur global `weechat_plugin` * _argc_ : nombre de paramètres pour l'extension (donnés sur la ligne de commande par l'utilisateur) * _argv_ : paramètres pour l'extension diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 3ba56b2b7..3d939232b 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -49,6 +49,16 @@ Il plugin deve includere il file "weechat-plugin.h" (disponibile nel codice sorgente di WeeChat). Il file definisce strutture e tipi utilizzati per comunicare con WeeChat. +// TRANSLATION MISSING +In order to call WeeChat functions in the format displayed in <>, +the following global pointer must be declared and initialized in the function +<<_weechat_plugin_init,weechat_plugin_init>>: + +[source,C] +---- +struct t_weechat_plugin *weechat_plugin; +---- + [[macros]] === Macro @@ -93,7 +103,9 @@ int weechat_plugin_init (struct t_weechat_plugin *plugin, Argomenti: -* _plugin_: puntatore alla struttura del plugin di WeeChat +// TRANSLATION MISSING +* _plugin_: puntatore alla struttura del plugin di WeeChat, used to initialize + the convenience global pointer `weechat_plugin` * _argc_: numero di argomenti per il plugin (fornito dalla riga di comando dall'utente) * _argv_: argomenti per il plugin diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index e4b74f863..3e7553e92 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -47,6 +47,16 @@ GNU/Linux では ".so"、Windows (WeeChat ソースコードに含まれています)。このファイルでは WeeChat と通信する際に使う構造体や型が定義されています。 +// TRANSLATION MISSING +In order to call WeeChat functions in the format displayed in <>, +the following global pointer must be declared and initialized in the function +<<_weechat_plugin_init,weechat_plugin_init>>: + +[source,C] +---- +struct t_weechat_plugin *weechat_plugin; +---- + [[macros]] === マクロ @@ -89,7 +99,9 @@ int weechat_plugin_init (struct t_weechat_plugin *plugin, 引数: -* _plugin_: WeeChat プラグイン構造体へのポインタ +// TRANSLATION MISSING +* _plugin_: WeeChat プラグイン構造体へのポインタ, used to initialize the + convenience global pointer `weechat_plugin` * _argc_: プラグインに対する引数の数 (ユーザがコマンドラインで指定) * _argv_: プラグインに対する引数