From 0509f190486f161c1fcf5619127a750fec52999e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 17 Dec 2015 08:13:55 +0100 Subject: [PATCH] doc: update examples of function hook_command_run (plugin API reference) --- doc/en/weechat_plugin_api.en.asciidoc | 5 ++--- doc/fr/weechat_plugin_api.fr.asciidoc | 5 ++--- doc/it/weechat_plugin_api.it.asciidoc | 5 ++--- doc/ja/weechat_plugin_api.ja.asciidoc | 5 ++--- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index 823f80252..4d945e3e0 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -7179,8 +7179,7 @@ int my_command_run_cb (void *data, struct t_gui_buffer *buffer, const char *command) { - weechat_printf (NULL, - "You want to complete? I'm eating the completion ahah!"); + weechat_printf (NULL, "I'm eating the completion!"); return WEECHAT_RC_OK_EAT; } @@ -7198,7 +7197,7 @@ hook = weechat.hook_command_run(command, callback, callback_data) # example def my_command_run_cb(data, buffer, command): - weechat.prnt("", "You want to complete? I'm eating the completion, ahah!") + weechat.prnt("", "I'm eating the completion!") return weechat.WEECHAT_RC_OK_EAT hook = weechat.hook_command_run("/input complete*", "my_command_run_cb", "") diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc index c769281e6..8ad462c5d 100644 --- a/doc/fr/weechat_plugin_api.fr.asciidoc +++ b/doc/fr/weechat_plugin_api.fr.asciidoc @@ -7299,8 +7299,7 @@ Exemple en C : int my_command_run_cb (void *data, struct t_gui_buffer *buffer, const char *command) { - weechat_printf (NULL, - "Vous voulez compléter ? Je mange la commande, ahah !"); + weechat_printf (NULL, "Je mange la complétion !"); return WEECHAT_RC_OK_EAT; } @@ -7318,7 +7317,7 @@ hook = weechat.hook_command_run(command, callback, callback_data) # exemple def my_command_run_cb(data, buffer, command): - weechat.prnt("", "Vous voulez compléter ? Je mange la commande, ahah !") + weechat.prnt("", "Je mange la complétion !") return weechat.WEECHAT_RC_OK_EAT hook = weechat.hook_command_run("/input complete*", "my_command_run_cb", "") diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc index f0d3fe226..b44bd9c48 100644 --- a/doc/it/weechat_plugin_api.it.asciidoc +++ b/doc/it/weechat_plugin_api.it.asciidoc @@ -7343,8 +7343,7 @@ int my_command_run_cb (void *data, struct t_gui_buffer *buffer, const char *command) { - weechat_printf (NULL, - "Vuoi completare? Sto mangiando il completamento, ahah!); + weechat_printf (NULL, "Sto mangiando il completamento!"); return WEECHAT_RC_OK_EAT; } @@ -7362,7 +7361,7 @@ hook = weechat.hook_command_run(command, callback, callback_data) # esempio def my_command_run_cb(data, buffer, command): - weechat.prnt("". "Vuoi completare? Sto mangiando il completamento, ahah!") + weechat.prnt("", "Sto mangiando il completamento!") return weechat.WEECHAT_RC_OK_EAT hook = weechat.hook_command_run("/input complete*", "my_command_run_cb", "") diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index e4fc9aa5f..f65211015 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -7178,8 +7178,7 @@ int my_command_run_cb (void *data, struct t_gui_buffer *buffer, const char *command) { - weechat_printf (NULL, - "You want to complete? I'm eating the completion ahah!"); + weechat_printf (NULL, "I'm eating the completion!"); return WEECHAT_RC_OK_EAT; } @@ -7197,7 +7196,7 @@ hook = weechat.hook_command_run(command, callback, callback_data) # 例 def my_command_run_cb(data, buffer, command): - weechat.prnt("", "You want to complete? I'm eating the completion, ahah!") + weechat.prnt("", "I'm eating the completion!") return weechat.WEECHAT_RC_OK_EAT hook = weechat.hook_command_run("/input complete*", "my_command_run_cb", "")