From a9b0c00df7d09d750cb0abd5acac159af50eb3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 25 Jun 2016 10:38:48 +0200 Subject: [PATCH] doc: add note about string evaluated in function window_set_title (plugin API reference) --- doc/en/weechat_plugin_api.en.adoc | 4 +++- doc/fr/weechat_plugin_api.fr.adoc | 4 +++- doc/it/weechat_plugin_api.it.adoc | 5 ++++- doc/ja/weechat_plugin_api.ja.adoc | 5 ++++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index c2bdceeef..d07ac0cd5 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -11785,7 +11785,9 @@ void weechat_window_set_title (const char *title); Arguments: -* _title_: new title for terminal (NULL to reset title) +* _title_: new title for terminal (NULL to reset title); string is evaluated, + so variables like `${info:version}` can be used + (see <<_string_eval_expression,weechat_string_eval_expression>>) C example: diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index e961abcdb..dcb0f3496 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -12046,7 +12046,9 @@ void weechat_window_set_title (const char *title); Paramètres : -* _title_ : nouveau titre pour le terminal (NULL pour réinitialiser le titre) +* _title_ : nouveau titre pour le terminal (NULL pour réinitialiser le titre); + la chaîne est évaluée, donc les variables comme `${info:version}` peuvent + être utilisées (voir <<_string_eval_expression,weechat_string_eval_expression>>) Exemple en C : diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index d66ed4f15..31583bfc8 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -12233,7 +12233,10 @@ void weechat_window_set_title (const char *title); Argomenti: -* _title_: nuovo titolo per il terminale (NULL per resettarlo) +// TRANSLATION MISSING +* _title_: nuovo titolo per il terminale (NULL per resettarlo); + string is evaluated, so variables like `${info:version}` can be used + (see <<_string_eval_expression,weechat_string_eval_expression>>) Esempio in C: diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 807ab1d2a..67bcaf02a 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -11780,7 +11780,10 @@ void weechat_window_set_title (const char *title); 引数: -* _title_: 端末の新しいタイトル (タイトルをリセットする場合は NULL) +// TRANSLATION MISSING +* _title_: 端末の新しいタイトル (タイトルをリセットする場合は NULL); + string is evaluated, so variables like `${info:version}` can be used + (see <<_string_eval_expression,weechat_string_eval_expression>>) C 言語での使用例: