doc: translate doc on weechat_plugin pointer in other languages (plugin API reference)
parent
5fcbeb9f3e
commit
af5b8ea165
|
@ -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 <<plugin_api>>,
|
||||
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]
|
||||
|
|
|
@ -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 <<plugin_api>>,
|
||||
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
|
||||
|
|
|
@ -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 <<plugin_api>>,
|
||||
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
|
||||
|
|
|
@ -47,6 +47,16 @@ GNU/Linux では ".so"、Windows
|
|||
(WeeChat ソースコードに含まれています)。このファイルでは WeeChat
|
||||
と通信する際に使う構造体や型が定義されています。
|
||||
|
||||
// TRANSLATION MISSING
|
||||
In order to call WeeChat functions in the format displayed in <<plugin_api>>,
|
||||
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_: プラグインに対する引数
|
||||
|
||||
|
|
Loading…
Reference in New Issue