summaryrefslogtreecommitdiff
path: root/doc/it
diff options
context:
space:
mode:
Diffstat (limited to 'doc/it')
-rw-r--r--doc/it/autogen/plugin_api/hdata.asciidoc2
-rw-r--r--doc/it/autogen/plugin_api/plugins_priority.asciidoc12
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc20
3 files changed, 34 insertions, 0 deletions
diff --git a/doc/it/autogen/plugin_api/hdata.asciidoc b/doc/it/autogen/plugin_api/hdata.asciidoc
index 5c70d6c63..7ea6f5bda 100644
--- a/doc/it/autogen/plugin_api/hdata.asciidoc
+++ b/doc/it/autogen/plugin_api/hdata.asciidoc
@@ -843,6 +843,8 @@
*** 'version' (string)
*** 'license' (string)
*** 'charset' (string)
+*** 'priority' (integer)
+*** 'initialized' (integer)
*** 'debug' (integer)
*** 'prev_plugin' (pointer, hdata: "plugin")
*** 'next_plugin' (pointer, hdata: "plugin")
diff --git a/doc/it/autogen/plugin_api/plugins_priority.asciidoc b/doc/it/autogen/plugin_api/plugins_priority.asciidoc
new file mode 100644
index 000000000..d5a171b0b
--- /dev/null
+++ b/doc/it/autogen/plugin_api/plugins_priority.asciidoc
@@ -0,0 +1,12 @@
+. charset (13000)
+. logger (12000)
+. exec (11000)
+. trigger (10000)
+. aspell (9000)
+. alias (8000)
+. fifo (7000)
+. xfer (6000)
+. irc (5000)
+. relay (4000)
+. guile, lua, perl, python, ruby, tcl (3000)
+. script (2000)
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc
index d8fae2550..35a82b4c4 100644
--- a/doc/it/weechat_plugin_api.it.asciidoc
+++ b/doc/it/weechat_plugin_api.it.asciidoc
@@ -63,6 +63,10 @@ WEECHAT_PLUGIN_VERSION("1.0")::
WEECHAT_PLUGIN_LICENSE("GPL3")::
licenza del plugin
+// TRANSLATION MISSING
+WEECHAT_PLUGIN_PRIORITY(1000)::
+ the plugin priority (optional, see below)
+
[[main_functions]]
=== Funzioni principali
@@ -98,6 +102,22 @@ Valori restituiti:
* 'WEECHAT_RC_ERROR' se c'è un errore (il plugin NON
verrà caricato)
+// TRANSLATION MISSING
+[[plugin_priority]]
+===== Plugin priority
+
+// TRANSLATION MISSING
+When plugins are auto-loaded (for example on startup), WeeChat first loads all
+plugins, and then calls the 'init' functions, using the priority defined in
+each plugin. A high priority means that the 'init' function is called first.
+
+Default priority is 1000 (with such priority, the plugin is loaded after all
+default plugins).
+
+The default WeeChat plugins are initialized in this order:
+
+include::autogen/plugin_api/plugins_priority.asciidoc[]
+
==== weechat_plugin_end
Questa funzione viene chiamata quando il plugin viene