summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-05-20 15:55:48 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-05-20 16:13:54 +0200
commitdc6ad7b501f10ecfe73706004332f93eb54f2296 (patch)
tree9fe1110e7d03c7802f7b49390695913af8e5ea37
parentc1fc590e0ac3685eb5670e52a34551bd5a1e0f4b (diff)
downloadweechat-dc6ad7b501f10ecfe73706004332f93eb54f2296.zip
doc: add translations for function hashtable_add_from_infolist (plugin API reference)
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc45
-rw-r--r--doc/it/weechat_plugin_api.it.adoc48
2 files changed, 93 insertions, 0 deletions
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index 7f890849b..f5ad0747e 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -4964,6 +4964,51 @@ weechat_hashtable_add_to_infolist (hashtable, infolist_item, "testhash");
[NOTE]
Cette fonction n'est pas disponible dans l'API script.
+==== hashtable_add_from_infolist
+
+_WeeChat ≥ 2.2._
+
+Ajouter les éléments d'une infolist dans une table de hachage.
+
+Prototype:
+
+[source,C]
+----
+int weechat_hashtable_add_from_infolist (struct t_hashtable *hashtable,
+ struct t_infolist *infolist,
+ const char *prefix);
+----
+
+Paramètres :
+
+* _hashtable_ : pointeur vers la table de hachage
+* _infolist_ : pointeur vers l'infolist
+* _prefix_ : chaîne utilisée comme préfixe pour les noms dans l'infolist
+
+Valeur de retour :
+
+* 1 si ok, 0 en cas d'erreur
+
+Exemple en C :
+
+[source,C]
+----
+weechat_hashtable_add_from_infolist (hashtable, infolist, "testhash");
+
+/* si l'infolist contient :
+ "testhash_name_00000" = "cle1"
+ "testhash_value_00000" = "valeur 1"
+ "testhash_name_00001" = "cle2"
+ "testhash_value_00001" = "valeur 2"
+ alors les variables suivantes seront ajoutées dans la table de hachage :
+ "cle1" => "valeur 1"
+ "cle2" => "valeur 2"
+*/
+----
+
+[NOTE]
+Cette fonction n'est pas disponible dans l'API script.
+
==== hashtable_remove
_WeeChat ≥ 0.3.3._
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index c547dcd2d..afb8b7fd8 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -5070,6 +5070,54 @@ weechat_hashtable_add_to_infolist (hashtable, infolist_item, "testhash");
[NOTE]
Questa funzione non è disponibile nelle API per lo scripting.
+==== hashtable_add_from_infolist
+
+_WeeChat ≥ 2.2._
+
+// TRANSLATION MISSING
+Add infolist items in a hashtable.
+
+Prototipo:
+
+[source,C]
+----
+int weechat_hashtable_add_from_infolist (struct t_hashtable *hashtable,
+ struct t_infolist *infolist,
+ const char *prefix);
+----
+
+Argomenti:
+
+* _hashtable_: puntatore alla tabella hash
+// TRANSLATION MISSING
+* _infolist_: infolist pointer
+* _prefix_: stringa usata come prefisso per i nomi nella lista info
+
+Valore restituito:
+
+* 1 se ok, 0 in caso di errore
+
+Esempio in C:
+
+// TRANSLATION MISSING
+[source,C]
+----
+weechat_hashtable_add_from_infolist (hashtable, infolist, "testhash");
+
+/* if infolist contains:
+ "testhash_name_00000" = "key1"
+ "testhash_value_00000" = "value 1"
+ "testhash_name_00001" = "key2"
+ "testhash_value_00001" = "value 2"
+ then following variables will be added to hashtable:
+ "key1" => "value 1"
+ "key2" => "value 2"
+*/
+----
+
+[NOTE]
+Questa funzione non è disponibile nelle API per lo scripting.
+
==== hashtable_remove
_WeeChat ≥ 0.3.3._