1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

Add missing API functions in doc (infolists and upgrade), move infos and infolists from user guide to developer guide

This commit is contained in:
Sebastien Helleu
2009-04-14 00:03:18 +02:00
parent 92b96dee1b
commit 546d3afd01
72 changed files with 3678 additions and 10818 deletions
+2 -12
View File
@@ -18,39 +18,29 @@ LANGCODE = de
BOOK_AUTOGEN_INCLUDE = ../include_autogen.xml \
autogen/alias_commands.xml \
autogen/alias_infos.xml \
autogen/aspell_commands.xml \
autogen/aspell_options.xml \
autogen/charset_commands.xml \
autogen/charset_options.xml \
autogen/completions.xml \
autogen/demo_commands.xml \
autogen/fifo_infos.xml \
autogen/irc_commands.xml \
autogen/irc_infos.xml \
autogen/irc_options.xml \
autogen/infos.xml \
autogen/infolists.xml \
autogen/jabber_commands.xml \
autogen/jabber_infos.xml \
autogen/jabber_options.xml \
autogen/logger_commands.xml \
autogen/logger_infos.xml \
autogen/logger_options.xml \
autogen/lua_commands.xml \
autogen/lua_infos.xml \
autogen/notify_commands.xml \
autogen/perl_commands.xml \
autogen/perl_infos.xml \
autogen/python_commands.xml \
autogen/python_infos.xml \
autogen/ruby_commands.xml \
autogen/ruby_infos.xml \
autogen/tcl_commands.xml \
autogen/tcl_infos.xml \
autogen/weechat_commands.xml \
autogen/weechat_infos.xml \
autogen/weechat_options.xml \
autogen/xfer_commands.xml \
autogen/xfer_infos.xml \
autogen/xfer_options.xml
BOOK_COMMON_INCLUDE = authors.$(LANGCODE).xml \
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>alias</entry>
<entry>list of alias</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>fifo_filename</entry>
<entry>name of FIFO pipe</entry>
</row>
+133
View File
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>alias</entry>
<entry>alias</entry>
<entry>list of alias</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_channel</entry>
<entry>list of channels for an IRC server</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_ignore</entry>
<entry>list of IRC ignore</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_nick</entry>
<entry>list of nicks for an IRC channel</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_server</entry>
<entry>list of IRC servers</entry>
</row>
<row>
<entry>logger</entry>
<entry>logger_buffer</entry>
<entry>list of logger buffers</entry>
</row>
<row>
<entry>lua</entry>
<entry>lua_script</entry>
<entry>list of lua scripts</entry>
</row>
<row>
<entry>perl</entry>
<entry>perl_script</entry>
<entry>list of perl scripts</entry>
</row>
<row>
<entry>python</entry>
<entry>python_script</entry>
<entry>list of python scripts</entry>
</row>
<row>
<entry>relay</entry>
<entry>relay</entry>
<entry>list of relay clients</entry>
</row>
<row>
<entry>ruby</entry>
<entry>ruby_script</entry>
<entry>list of ruby scripts</entry>
</row>
<row>
<entry>tcl</entry>
<entry>tcl_script</entry>
<entry>list of tcl scripts</entry>
</row>
<row>
<entry>weechat</entry>
<entry>bar</entry>
<entry>list of bars</entry>
</row>
<row>
<entry>weechat</entry>
<entry>bar_item</entry>
<entry>list of bar items</entry>
</row>
<row>
<entry>weechat</entry>
<entry>bar_window</entry>
<entry>list of bar windows</entry>
</row>
<row>
<entry>weechat</entry>
<entry>buffer</entry>
<entry>list of buffers</entry>
</row>
<row>
<entry>weechat</entry>
<entry>buffer_lines</entry>
<entry>lines of a buffer</entry>
</row>
<row>
<entry>weechat</entry>
<entry>filter</entry>
<entry>list of filters</entry>
</row>
<row>
<entry>weechat</entry>
<entry>hook</entry>
<entry>list of hooks</entry>
</row>
<row>
<entry>weechat</entry>
<entry>hotlist</entry>
<entry>list of buffers in hotlist</entry>
</row>
<row>
<entry>weechat</entry>
<entry>nicklist</entry>
<entry>nicks in nicklist for a buffer</entry>
</row>
<row>
<entry>weechat</entry>
<entry>option</entry>
<entry>list of options</entry>
</row>
<row>
<entry>weechat</entry>
<entry>plugin</entry>
<entry>list of plugins</entry>
</row>
<row>
<entry>weechat</entry>
<entry>window</entry>
<entry>list of windows</entry>
</row>
<row>
<entry>xfer</entry>
<entry>xfer</entry>
<entry>list of xfer</entry>
</row>
+88
View File
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>fifo</entry>
<entry>fifo_filename</entry>
<entry>name of FIFO pipe</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_buffer</entry>
<entry>get buffer pointer for an IRC server/channel</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_is_channel</entry>
<entry>1 if string is an IRC channel</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_nick</entry>
<entry>get current nick on a server</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_nick_from_host</entry>
<entry>get nick from IRC host</entry>
</row>
<row>
<entry>weechat</entry>
<entry>charset_internal</entry>
<entry>WeeChat internal charset</entry>
</row>
<row>
<entry>weechat</entry>
<entry>charset_terminal</entry>
<entry>terminal charset</entry>
</row>
<row>
<entry>weechat</entry>
<entry>date</entry>
<entry>WeeChat compilation date</entry>
</row>
<row>
<entry>weechat</entry>
<entry>dir_separator</entry>
<entry>directory separator</entry>
</row>
<row>
<entry>weechat</entry>
<entry>filters_enabled</entry>
<entry>1 if filters are enabled</entry>
</row>
<row>
<entry>weechat</entry>
<entry>inactivity</entry>
<entry>keyboard inactivity (seconds)</entry>
</row>
<row>
<entry>weechat</entry>
<entry>version</entry>
<entry>WeeChat version</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_dir</entry>
<entry>WeeChat directory</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_libdir</entry>
<entry>WeeChat "lib" directory</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_localedir</entry>
<entry>WeeChat "locale" directory</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_sharedir</entry>
<entry>WeeChat "share" directory</entry>
</row>
-48
View File
@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>irc_buffer</entry>
<entry>get buffer pointer for an IRC server/channel</entry>
</row>
<row>
<entry>info</entry>
<entry>irc_is_channel</entry>
<entry>1 if string is an IRC channel</entry>
</row>
<row>
<entry>info</entry>
<entry>irc_nick</entry>
<entry>get current nick on a server</entry>
</row>
<row>
<entry>info</entry>
<entry>irc_nick_from_host</entry>
<entry>get nick from IRC host</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_channel</entry>
<entry>list of channels for an IRC server</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_ignore</entry>
<entry>list of IRC ignore</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_nick</entry>
<entry>list of nicks for an IRC channel</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_server</entry>
<entry>list of IRC servers</entry>
</row>
-28
View File
@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>jabber_buffer</entry>
<entry>get buffer pointer for a Jabber server/MUC</entry>
</row>
<row>
<entry>infolist</entry>
<entry>jabber_buddy</entry>
<entry>list of buddies for a Jabber server or MUC</entry>
</row>
<row>
<entry>infolist</entry>
<entry>jabber_muc</entry>
<entry>list of MUCs for a Jabber server</entry>
</row>
<row>
<entry>infolist</entry>
<entry>jabber_server</entry>
<entry>list of Jabber servers</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>logger_buffer</entry>
<entry>list of logger buffers</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>lua_script</entry>
<entry>liste des scripts lua</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>perl_script</entry>
<entry>liste des scripts perl</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>python_script</entry>
<entry>liste des scripts python</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>relay</entry>
<entry>list of relay clients</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>ruby_script</entry>
<entry>liste des scripts ruby</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>tcl_script</entry>
<entry>liste des scripts tcl</entry>
</row>
-123
View File
@@ -1,123 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>charset_internal</entry>
<entry>WeeChat internal charset</entry>
</row>
<row>
<entry>info</entry>
<entry>charset_terminal</entry>
<entry>terminal charset</entry>
</row>
<row>
<entry>info</entry>
<entry>date</entry>
<entry>WeeChat compilation date</entry>
</row>
<row>
<entry>info</entry>
<entry>dir_separator</entry>
<entry>directory separator</entry>
</row>
<row>
<entry>info</entry>
<entry>filters_enabled</entry>
<entry>1 if filters are enabled</entry>
</row>
<row>
<entry>info</entry>
<entry>inactivity</entry>
<entry>keyboard inactivity (seconds)</entry>
</row>
<row>
<entry>info</entry>
<entry>version</entry>
<entry>WeeChat version</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_dir</entry>
<entry>WeeChat directory</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_libdir</entry>
<entry>WeeChat "lib" directory</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_localedir</entry>
<entry>WeeChat "locale" directory</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_sharedir</entry>
<entry>WeeChat "share" directory</entry>
</row>
<row>
<entry>infolist</entry>
<entry>bar</entry>
<entry>list of bars</entry>
</row>
<row>
<entry>infolist</entry>
<entry>bar_item</entry>
<entry>list of bar items</entry>
</row>
<row>
<entry>infolist</entry>
<entry>bar_window</entry>
<entry>list of bar windows</entry>
</row>
<row>
<entry>infolist</entry>
<entry>buffer</entry>
<entry>list of buffers</entry>
</row>
<row>
<entry>infolist</entry>
<entry>buffer_lines</entry>
<entry>lines of a buffer</entry>
</row>
<row>
<entry>infolist</entry>
<entry>filter</entry>
<entry>list of filters</entry>
</row>
<row>
<entry>infolist</entry>
<entry>hook</entry>
<entry>list of hooks</entry>
</row>
<row>
<entry>infolist</entry>
<entry>hotlist</entry>
<entry>list of buffers in hotlist</entry>
</row>
<row>
<entry>infolist</entry>
<entry>nicklist</entry>
<entry>nicks in nicklist for a buffer</entry>
</row>
<row>
<entry>infolist</entry>
<entry>option</entry>
<entry>list of options</entry>
</row>
<row>
<entry>infolist</entry>
<entry>plugin</entry>
<entry>list of plugins</entry>
</row>
<row>
<entry>infolist</entry>
<entry>window</entry>
<entry>list of windows</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>xfer</entry>
<entry>list of xfer</entry>
</row>
File diff suppressed because it is too large Load Diff
-22
View File
@@ -39,26 +39,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secAliasInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&alias_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -71,26 +71,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secIrcInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&irc_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -48,26 +48,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secJabberInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&jabber_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -47,28 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secLoggerInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&logger_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
<section id="secLoggerLevels">
<title>Levels</title>
-26
View File
@@ -55,30 +55,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secScriptsInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&perl_infos.xml;
&python_infos.xml;
&ruby_infos.xml;
&lua_infos.xml;
&tcl_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -43,26 +43,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secXferInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&xfer_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
+127 -50
View File
@@ -84,6 +84,12 @@ my @ignore_options = ("aspell\\.dict\\..*",
"weechat\\.bar\\..*",
"weechat\\.debug\\..*");
# infos to ignore
my @ignore_infos_plugins = ("jabber");
# infolists to ignore
my @ignore_infolists_plugins = ("jabber");
# completions to ignore
my @ignore_completions_plugins = ("jabber");
my @ignore_completions_items = ("jabber.*",
@@ -164,7 +170,7 @@ sub get_options
return %options;
}
# get list of infos and infolists hooked by plugins in a hash with 4 indexes: plugin, info/infolist, name, xxx
# get list of infos hooked by plugins in a hash with 3 indexes: plugin, name, xxx
sub get_infos
{
my %infos;
@@ -177,23 +183,51 @@ sub get_infos
my $plugin = weechat::infolist_string($infolist, "plugin_name");
$plugin = "weechat" if ($plugin eq "");
$infos{$plugin}{"info"}{$info_name}{"description"} = weechat::infolist_string($infolist, "description");
# check if infolist is ignored or not
my $ignore = 0;
foreach my $mask (@ignore_infos_plugins)
{
$ignore = 1 if ($plugin =~ /${mask}/);
}
if ($ignore ne 1)
{
$infos{$plugin}{$info_name}{"description"} = weechat::infolist_string($infolist, "description");
}
}
weechat::infolist_free($infolist);
return %infos;
}
# get list of infolists hooked by plugins in a hash with 3 indexes: plugin, name, xxx
sub get_infolists
{
my %infolists;
# get infolists hooked
$infolist = weechat::infolist_get("hook", "", "infolist");
my $infolist = weechat::infolist_get("hook", "", "infolist");
while (weechat::infolist_next($infolist))
{
my $infolist_name = weechat::infolist_string($infolist, "infolist_name");
my $plugin = weechat::infolist_string($infolist, "plugin_name");
$plugin = "weechat" if ($plugin eq "");
$infos{$plugin}{"infolist"}{$infolist_name}{"description"} = weechat::infolist_string($infolist, "description");
# check if infolist is ignored or not
my $ignore = 0;
foreach my $mask (@ignore_infolists_plugins)
{
$ignore = 1 if ($plugin =~ /${mask}/);
}
if ($ignore ne 1)
{
$infolists{$plugin}{$infolist_name}{"description"} = weechat::infolist_string($infolist, "description");
}
}
weechat::infolist_free($infolist);
return %infos;
return %infolists;
}
# get list of completions hooked by plugins in a hash with 3 indexes: plugin, item, xxx
@@ -245,6 +279,7 @@ sub docgen
my %plugin_commands = get_commands();
my %plugin_options = get_options();
my %plugin_infos = get_infos();
my %plugin_infolists = get_infolists();
my %plugin_completions = get_completions();
# xml header (comment) for all files
@@ -266,6 +301,7 @@ sub docgen
# write to doc files, by locale
my $num_files = 0;
my $num_files_updated = 0;
my $filename = "";
foreach my $locale (@locale_list)
{
my $num_files_commands = 0;
@@ -274,6 +310,8 @@ sub docgen
my $num_files_options_updated = 0;
my $num_files_infos = 0;
my $num_files_infos_updated = 0;
my $num_files_infolists = 0;
my $num_files_infolists_updated = 0;
my $num_files_completions = 0;
my $num_files_completions_updated = 0;
@@ -288,7 +326,7 @@ sub docgen
# write commands
foreach my $plugin (keys %plugin_commands)
{
my $filename = $dir.$plugin."_commands.xml";
$filename = $dir.$plugin."_commands.xml";
if (open(FILE, ">".$filename.".tmp"))
{
print FILE $xml_header;
@@ -334,7 +372,7 @@ sub docgen
# write config options
foreach my $config (keys %plugin_options)
{
my $filename = $dir.$config."_options.xml";
$filename = $dir.$config."_options.xml";
if (open(FILE, ">".$filename.".tmp"))
{
print FILE $xml_header;
@@ -414,51 +452,88 @@ sub docgen
}
}
# write infos/infolists hooked
foreach my $plugin (keys %plugin_infos)
# write infos hooked
$filename = $dir."infos.xml";
if (open(FILE, ">".$filename.".tmp"))
{
my $filename = $dir.$plugin."_infos.xml";
if (open(FILE, ">".$filename.".tmp"))
print FILE $xml_header;
foreach my $plugin (sort keys %plugin_infos)
{
print FILE $xml_header;
foreach my $type (sort keys %{$plugin_infos{$plugin}})
foreach my $info (sort keys %{$plugin_infos{$plugin}})
{
foreach my $info (sort keys %{$plugin_infos{$plugin}{$type}})
{
my $description = $plugin_infos{$plugin}{$type}{$info}{"description"};
$description = $d->get($description) if ($description ne "");
print FILE "<row>\n";
print FILE " <entry>".escape($type)."</entry>\n";
print FILE " <entry>".escape($info)."</entry>\n";
print FILE " <entry>".escape($description)."</entry>\n";
print FILE "</row>\n";
}
my $description = $plugin_infos{$plugin}{$info}{"description"};
$description = $d->get($description) if ($description ne "");
print FILE "<row>\n";
print FILE " <entry>".escape($plugin)."</entry>\n";
print FILE " <entry>".escape($info)."</entry>\n";
print FILE " <entry>".escape($description)."</entry>\n";
print FILE "</row>\n";
}
#weechat::print("", "docgen: file ok: '$filename'");
my $rc = system("diff ".$filename." ".$filename.".tmp >/dev/null 2>&1");
if ($rc != 0)
{
system("mv -f ".$filename.".tmp ".$filename);
$num_files_updated++;
$num_files_infos_updated++;
}
else
{
system("rm ".$filename.".tmp");
}
$num_files++;
$num_files_infos++;
close(FILE);
}
#weechat::print("", "docgen: file ok: '$filename'");
my $rc = system("diff ".$filename." ".$filename.".tmp >/dev/null 2>&1");
if ($rc != 0)
{
system("mv -f ".$filename.".tmp ".$filename);
$num_files_updated++;
$num_files_infos_updated++;
}
else
{
weechat::print("", weechat::prefix("error")."docgen error: unable to write file '$filename'");
system("rm ".$filename.".tmp");
}
$num_files++;
$num_files_infos++;
close(FILE);
}
else
{
weechat::print("", weechat::prefix("error")."docgen error: unable to write file '$filename'");
}
# write infolists hooked
$filename = $dir."infolists.xml";
if (open(FILE, ">".$filename.".tmp"))
{
print FILE $xml_header;
foreach my $plugin (sort keys %plugin_infolists)
{
foreach my $infolist (sort keys %{$plugin_infolists{$plugin}})
{
my $description = $plugin_infolists{$plugin}{$infolist}{"description"};
$description = $d->get($description) if ($description ne "");
print FILE "<row>\n";
print FILE " <entry>".escape($plugin)."</entry>\n";
print FILE " <entry>".escape($infolist)."</entry>\n";
print FILE " <entry>".escape($description)."</entry>\n";
print FILE "</row>\n";
}
}
#weechat::print("", "docgen: file ok: '$filename'");
my $rc = system("diff ".$filename." ".$filename.".tmp >/dev/null 2>&1");
if ($rc != 0)
{
system("mv -f ".$filename.".tmp ".$filename);
$num_files_updated++;
$num_files_infolists_updated++;
}
else
{
system("rm ".$filename.".tmp");
}
$num_files++;
$num_files_infolists++;
close(FILE);
}
else
{
weechat::print("", weechat::prefix("error")."docgen error: unable to write file '$filename'");
}
# write completions hooked
my $filename = $dir."completions.xml";
$filename = $dir."completions.xml";
if (open(FILE, ">".$filename.".tmp"))
{
print FILE $xml_header;
@@ -502,18 +577,21 @@ sub docgen
weechat::print("", weechat::prefix("error")."docgen error: directory '$dir' does not exist");
}
my $total_files = $num_files_commands + $num_files_options
+ $num_files_infos + $num_files_completions;
my $total_files_updated = $num_files_commands_updated + $num_files_options_updated
+ $num_files_infos_updated + $num_files_completions_updated;
+ $num_files_infos + $num_files_infolists + $num_files_completions;
my $total_files_updated = $num_files_commands_updated
+ $num_files_options_updated + $num_files_infos_updated
+ $num_files_infolists_updated + $num_files_completions_updated;
weechat::print("", "docgen: ".$locale.": ".$total_files." files ("
.$num_files_commands." cmd, "
.$num_files_options." opt, "
.$num_files_infos." infos, "
.$num_files_infolists." infolists, "
.$num_files_completions." complt) -- "
.$total_files_updated." updated ("
.$num_files_commands_updated." cmd, "
.$num_files_options_updated." opt, "
.$num_files_infos_updated." infos, "
.$num_files_infolists_updated." infolists, "
.$num_files_completions_updated." complt)");
}
weechat::print("", "docgen: total: ".$num_files." files (".$num_files_updated." updated)");
@@ -521,7 +599,7 @@ sub docgen
# write "include_autogen.xml" file (with includes for all files built)
if ($num_files > 0)
{
my $filename = $path."/include_autogen.xml";
$filename = $path."/include_autogen.xml";
if (open(FILE, ">".$filename.".tmp"))
{
print FILE "<!-- commands -->\n\n";
@@ -534,11 +612,10 @@ sub docgen
{
print FILE "<!ENTITY ".$config."_options.xml SYSTEM \"autogen/".$config."_options.xml\">\n";
}
print FILE "\n<!-- infos/infolists hooked -->\n\n";
foreach my $plugin (sort keys %plugin_infos)
{
print FILE "<!ENTITY ".$plugin."_infos.xml SYSTEM \"autogen/".$plugin."_infos.xml\">\n";
}
print FILE "\n<!-- infos hooked -->\n\n";
print FILE "<!ENTITY infos.xml SYSTEM \"autogen/infos.xml\">\n";
print FILE "\n<!-- infolists hooked -->\n\n";
print FILE "<!ENTITY infolists.xml SYSTEM \"autogen/infolists.xml\">\n";
print FILE "\n<!-- completions hooked -->\n\n";
print FILE "<!ENTITY completions.xml SYSTEM \"autogen/completions.xml\">\n";
close(FILE);
+2 -12
View File
@@ -18,39 +18,29 @@ LANGCODE = en
BOOK_AUTOGEN_INCLUDE = ../include_autogen.xml \
autogen/alias_commands.xml \
autogen/alias_infos.xml \
autogen/aspell_commands.xml \
autogen/aspell_options.xml \
autogen/charset_commands.xml \
autogen/charset_options.xml \
autogen/completions.xml \
autogen/demo_commands.xml \
autogen/fifo_infos.xml \
autogen/irc_commands.xml \
autogen/irc_infos.xml \
autogen/irc_options.xml \
autogen/infos.xml \
autogen/infolists.xml \
autogen/jabber_commands.xml \
autogen/jabber_infos.xml \
autogen/jabber_options.xml \
autogen/logger_commands.xml \
autogen/logger_infos.xml \
autogen/logger_options.xml \
autogen/lua_commands.xml \
autogen/lua_infos.xml \
autogen/notify_commands.xml \
autogen/perl_commands.xml \
autogen/perl_infos.xml \
autogen/python_commands.xml \
autogen/python_infos.xml \
autogen/ruby_commands.xml \
autogen/ruby_infos.xml \
autogen/tcl_commands.xml \
autogen/tcl_infos.xml \
autogen/weechat_commands.xml \
autogen/weechat_infos.xml \
autogen/weechat_options.xml \
autogen/xfer_commands.xml \
autogen/xfer_infos.xml \
autogen/xfer_options.xml
BOOK_COMMON_INCLUDE = authors.$(LANGCODE).xml \
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>alias</entry>
<entry>list of alias</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>fifo_filename</entry>
<entry>name of FIFO pipe</entry>
</row>
+133
View File
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>alias</entry>
<entry>alias</entry>
<entry>list of alias</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_channel</entry>
<entry>list of channels for an IRC server</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_ignore</entry>
<entry>list of IRC ignore</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_nick</entry>
<entry>list of nicks for an IRC channel</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_server</entry>
<entry>list of IRC servers</entry>
</row>
<row>
<entry>logger</entry>
<entry>logger_buffer</entry>
<entry>list of logger buffers</entry>
</row>
<row>
<entry>lua</entry>
<entry>lua_script</entry>
<entry>list of lua scripts</entry>
</row>
<row>
<entry>perl</entry>
<entry>perl_script</entry>
<entry>list of perl scripts</entry>
</row>
<row>
<entry>python</entry>
<entry>python_script</entry>
<entry>list of python scripts</entry>
</row>
<row>
<entry>relay</entry>
<entry>relay</entry>
<entry>list of relay clients</entry>
</row>
<row>
<entry>ruby</entry>
<entry>ruby_script</entry>
<entry>list of ruby scripts</entry>
</row>
<row>
<entry>tcl</entry>
<entry>tcl_script</entry>
<entry>list of tcl scripts</entry>
</row>
<row>
<entry>weechat</entry>
<entry>bar</entry>
<entry>list of bars</entry>
</row>
<row>
<entry>weechat</entry>
<entry>bar_item</entry>
<entry>list of bar items</entry>
</row>
<row>
<entry>weechat</entry>
<entry>bar_window</entry>
<entry>list of bar windows</entry>
</row>
<row>
<entry>weechat</entry>
<entry>buffer</entry>
<entry>list of buffers</entry>
</row>
<row>
<entry>weechat</entry>
<entry>buffer_lines</entry>
<entry>lines of a buffer</entry>
</row>
<row>
<entry>weechat</entry>
<entry>filter</entry>
<entry>list of filters</entry>
</row>
<row>
<entry>weechat</entry>
<entry>hook</entry>
<entry>list of hooks</entry>
</row>
<row>
<entry>weechat</entry>
<entry>hotlist</entry>
<entry>list of buffers in hotlist</entry>
</row>
<row>
<entry>weechat</entry>
<entry>nicklist</entry>
<entry>nicks in nicklist for a buffer</entry>
</row>
<row>
<entry>weechat</entry>
<entry>option</entry>
<entry>list of options</entry>
</row>
<row>
<entry>weechat</entry>
<entry>plugin</entry>
<entry>list of plugins</entry>
</row>
<row>
<entry>weechat</entry>
<entry>window</entry>
<entry>list of windows</entry>
</row>
<row>
<entry>xfer</entry>
<entry>xfer</entry>
<entry>list of xfer</entry>
</row>
+88
View File
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>fifo</entry>
<entry>fifo_filename</entry>
<entry>name of FIFO pipe</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_buffer</entry>
<entry>get buffer pointer for an IRC server/channel</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_is_channel</entry>
<entry>1 if string is an IRC channel</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_nick</entry>
<entry>get current nick on a server</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_nick_from_host</entry>
<entry>get nick from IRC host</entry>
</row>
<row>
<entry>weechat</entry>
<entry>charset_internal</entry>
<entry>WeeChat internal charset</entry>
</row>
<row>
<entry>weechat</entry>
<entry>charset_terminal</entry>
<entry>terminal charset</entry>
</row>
<row>
<entry>weechat</entry>
<entry>date</entry>
<entry>WeeChat compilation date</entry>
</row>
<row>
<entry>weechat</entry>
<entry>dir_separator</entry>
<entry>directory separator</entry>
</row>
<row>
<entry>weechat</entry>
<entry>filters_enabled</entry>
<entry>1 if filters are enabled</entry>
</row>
<row>
<entry>weechat</entry>
<entry>inactivity</entry>
<entry>keyboard inactivity (seconds)</entry>
</row>
<row>
<entry>weechat</entry>
<entry>version</entry>
<entry>WeeChat version</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_dir</entry>
<entry>WeeChat directory</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_libdir</entry>
<entry>WeeChat "lib" directory</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_localedir</entry>
<entry>WeeChat "locale" directory</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_sharedir</entry>
<entry>WeeChat "share" directory</entry>
</row>
-48
View File
@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>irc_buffer</entry>
<entry>get buffer pointer for an IRC server/channel</entry>
</row>
<row>
<entry>info</entry>
<entry>irc_is_channel</entry>
<entry>1 if string is an IRC channel</entry>
</row>
<row>
<entry>info</entry>
<entry>irc_nick</entry>
<entry>get current nick on a server</entry>
</row>
<row>
<entry>info</entry>
<entry>irc_nick_from_host</entry>
<entry>get nick from IRC host</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_channel</entry>
<entry>list of channels for an IRC server</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_ignore</entry>
<entry>list of IRC ignore</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_nick</entry>
<entry>list of nicks for an IRC channel</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_server</entry>
<entry>list of IRC servers</entry>
</row>
-28
View File
@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>jabber_buffer</entry>
<entry>get buffer pointer for a Jabber server/MUC</entry>
</row>
<row>
<entry>infolist</entry>
<entry>jabber_buddy</entry>
<entry>list of buddies for a Jabber server or MUC</entry>
</row>
<row>
<entry>infolist</entry>
<entry>jabber_muc</entry>
<entry>list of MUCs for a Jabber server</entry>
</row>
<row>
<entry>infolist</entry>
<entry>jabber_server</entry>
<entry>list of Jabber servers</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>logger_buffer</entry>
<entry>list of logger buffers</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>lua_script</entry>
<entry>liste des scripts lua</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>perl_script</entry>
<entry>liste des scripts perl</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>python_script</entry>
<entry>liste des scripts python</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>relay</entry>
<entry>list of relay clients</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>ruby_script</entry>
<entry>liste des scripts ruby</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>tcl_script</entry>
<entry>liste des scripts tcl</entry>
</row>
-123
View File
@@ -1,123 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>charset_internal</entry>
<entry>WeeChat internal charset</entry>
</row>
<row>
<entry>info</entry>
<entry>charset_terminal</entry>
<entry>terminal charset</entry>
</row>
<row>
<entry>info</entry>
<entry>date</entry>
<entry>WeeChat compilation date</entry>
</row>
<row>
<entry>info</entry>
<entry>dir_separator</entry>
<entry>directory separator</entry>
</row>
<row>
<entry>info</entry>
<entry>filters_enabled</entry>
<entry>1 if filters are enabled</entry>
</row>
<row>
<entry>info</entry>
<entry>inactivity</entry>
<entry>keyboard inactivity (seconds)</entry>
</row>
<row>
<entry>info</entry>
<entry>version</entry>
<entry>WeeChat version</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_dir</entry>
<entry>WeeChat directory</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_libdir</entry>
<entry>WeeChat "lib" directory</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_localedir</entry>
<entry>WeeChat "locale" directory</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_sharedir</entry>
<entry>WeeChat "share" directory</entry>
</row>
<row>
<entry>infolist</entry>
<entry>bar</entry>
<entry>list of bars</entry>
</row>
<row>
<entry>infolist</entry>
<entry>bar_item</entry>
<entry>list of bar items</entry>
</row>
<row>
<entry>infolist</entry>
<entry>bar_window</entry>
<entry>list of bar windows</entry>
</row>
<row>
<entry>infolist</entry>
<entry>buffer</entry>
<entry>list of buffers</entry>
</row>
<row>
<entry>infolist</entry>
<entry>buffer_lines</entry>
<entry>lines of a buffer</entry>
</row>
<row>
<entry>infolist</entry>
<entry>filter</entry>
<entry>list of filters</entry>
</row>
<row>
<entry>infolist</entry>
<entry>hook</entry>
<entry>list of hooks</entry>
</row>
<row>
<entry>infolist</entry>
<entry>hotlist</entry>
<entry>list of buffers in hotlist</entry>
</row>
<row>
<entry>infolist</entry>
<entry>nicklist</entry>
<entry>nicks in nicklist for a buffer</entry>
</row>
<row>
<entry>infolist</entry>
<entry>option</entry>
<entry>list of options</entry>
</row>
<row>
<entry>infolist</entry>
<entry>plugin</entry>
<entry>list of plugins</entry>
</row>
<row>
<entry>infolist</entry>
<entry>window</entry>
<entry>list of windows</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>xfer</entry>
<entry>list of xfer</entry>
</row>
File diff suppressed because it is too large Load Diff
-22
View File
@@ -38,26 +38,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secAliasInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&alias_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -70,26 +70,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secIrcInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&irc_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -47,26 +47,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secJabberInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&jabber_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -47,28 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secLoggerInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&logger_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
<section id="secLoggerLevels">
<title>Levels</title>
-26
View File
@@ -54,30 +54,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secScriptsInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&perl_infos.xml;
&python_infos.xml;
&ruby_infos.xml;
&lua_infos.xml;
&tcl_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -42,26 +42,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secXferInfosHooked">
<title>Infos and infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Name</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&xfer_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
+2 -12
View File
@@ -18,39 +18,29 @@ LANGCODE = fr
BOOK_AUTOGEN_INCLUDE = ../include_autogen.xml \
autogen/alias_commands.xml \
autogen/alias_infos.xml \
autogen/aspell_commands.xml \
autogen/aspell_options.xml \
autogen/charset_commands.xml \
autogen/charset_options.xml \
autogen/completions.xml \
autogen/demo_commands.xml \
autogen/fifo_infos.xml \
autogen/irc_commands.xml \
autogen/irc_infos.xml \
autogen/irc_options.xml \
autogen/infos.xml \
autogen/infolists.xml \
autogen/jabber_commands.xml \
autogen/jabber_infos.xml \
autogen/jabber_options.xml \
autogen/logger_commands.xml \
autogen/logger_infos.xml \
autogen/logger_options.xml \
autogen/lua_commands.xml \
autogen/lua_infos.xml \
autogen/notify_commands.xml \
autogen/perl_commands.xml \
autogen/perl_infos.xml \
autogen/python_commands.xml \
autogen/python_infos.xml \
autogen/ruby_commands.xml \
autogen/ruby_infos.xml \
autogen/tcl_commands.xml \
autogen/tcl_infos.xml \
autogen/weechat_commands.xml \
autogen/weechat_infos.xml \
autogen/weechat_options.xml \
autogen/xfer_commands.xml \
autogen/xfer_infos.xml \
autogen/xfer_options.xml
BOOK_COMMON_INCLUDE = authors.$(LANGCODE).xml \
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>alias</entry>
<entry>liste des alias</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>fifo_filename</entry>
<entry>nom du tube FIFO</entry>
</row>
+133
View File
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>alias</entry>
<entry>alias</entry>
<entry>liste des alias</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_channel</entry>
<entry>liste des canaux pour un serveur IRC</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_ignore</entry>
<entry>liste des ignore IRC</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_nick</entry>
<entry>liste des pseudos pour un canal IRC</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_server</entry>
<entry>liste des serveurs IRC</entry>
</row>
<row>
<entry>logger</entry>
<entry>logger_buffer</entry>
<entry>liste des enregistreurs de tampons (loggers)</entry>
</row>
<row>
<entry>lua</entry>
<entry>lua_script</entry>
<entry>list of lua scripts</entry>
</row>
<row>
<entry>perl</entry>
<entry>perl_script</entry>
<entry>list of perl scripts</entry>
</row>
<row>
<entry>python</entry>
<entry>python_script</entry>
<entry>list of python scripts</entry>
</row>
<row>
<entry>relay</entry>
<entry>relay</entry>
<entry>liste des clients pour le relai</entry>
</row>
<row>
<entry>ruby</entry>
<entry>ruby_script</entry>
<entry>list of ruby scripts</entry>
</row>
<row>
<entry>tcl</entry>
<entry>tcl_script</entry>
<entry>list of tcl scripts</entry>
</row>
<row>
<entry>weechat</entry>
<entry>bar</entry>
<entry>liste des barres</entry>
</row>
<row>
<entry>weechat</entry>
<entry>bar_item</entry>
<entry>liste des objets de barres</entry>
</row>
<row>
<entry>weechat</entry>
<entry>bar_window</entry>
<entry>liste des fenêtres de barre</entry>
</row>
<row>
<entry>weechat</entry>
<entry>buffer</entry>
<entry>liste des tampons</entry>
</row>
<row>
<entry>weechat</entry>
<entry>buffer_lines</entry>
<entry>lignes d'un tampon</entry>
</row>
<row>
<entry>weechat</entry>
<entry>filter</entry>
<entry>liste des filtres</entry>
</row>
<row>
<entry>weechat</entry>
<entry>hook</entry>
<entry>liste des hooks</entry>
</row>
<row>
<entry>weechat</entry>
<entry>hotlist</entry>
<entry>liste des tampons dans la hotlist</entry>
</row>
<row>
<entry>weechat</entry>
<entry>nicklist</entry>
<entry>pseudos dans la liste des pseudos pour un tampon</entry>
</row>
<row>
<entry>weechat</entry>
<entry>option</entry>
<entry>liste des options</entry>
</row>
<row>
<entry>weechat</entry>
<entry>plugin</entry>
<entry>liste des extensions</entry>
</row>
<row>
<entry>weechat</entry>
<entry>window</entry>
<entry>liste des fenêtres</entry>
</row>
<row>
<entry>xfer</entry>
<entry>xfer</entry>
<entry>liste des xfer</entry>
</row>
+88
View File
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>fifo</entry>
<entry>fifo_filename</entry>
<entry>nom du tube FIFO</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_buffer</entry>
<entry>retourne le pointeur vers le tampon pour un serveur/canal IRC</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_is_channel</entry>
<entry>1 si la chaîne est un canal IRC</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_nick</entry>
<entry>retourne le pseudo utilisé actuellement sur un serveur</entry>
</row>
<row>
<entry>irc</entry>
<entry>irc_nick_from_host</entry>
<entry>retourne le pseudo à partir d'un host IRC</entry>
</row>
<row>
<entry>weechat</entry>
<entry>charset_internal</entry>
<entry>charset interne à WeeChat</entry>
</row>
<row>
<entry>weechat</entry>
<entry>charset_terminal</entry>
<entry>charset du terminal</entry>
</row>
<row>
<entry>weechat</entry>
<entry>date</entry>
<entry>date de compilation de WeeChat</entry>
</row>
<row>
<entry>weechat</entry>
<entry>dir_separator</entry>
<entry>séparateur de répertoire</entry>
</row>
<row>
<entry>weechat</entry>
<entry>filters_enabled</entry>
<entry>1 si les filtres sont activés</entry>
</row>
<row>
<entry>weechat</entry>
<entry>inactivity</entry>
<entry>inactivité du clavier (secondes)</entry>
</row>
<row>
<entry>weechat</entry>
<entry>version</entry>
<entry>version de WeeChat</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_dir</entry>
<entry>répertoire de WeeChat</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_libdir</entry>
<entry>répertoire "lib" de WeeChat</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_localedir</entry>
<entry>répertoire "locale" de WeeChat</entry>
</row>
<row>
<entry>weechat</entry>
<entry>weechat_sharedir</entry>
<entry>répertoire "share" de WeeChat</entry>
</row>
-48
View File
@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>irc_buffer</entry>
<entry>retourne le pointeur vers le tampon pour un serveur/canal IRC</entry>
</row>
<row>
<entry>info</entry>
<entry>irc_is_channel</entry>
<entry>1 si la chaîne est un canal IRC</entry>
</row>
<row>
<entry>info</entry>
<entry>irc_nick</entry>
<entry>retourne le pseudo utilisé actuellement sur un serveur</entry>
</row>
<row>
<entry>info</entry>
<entry>irc_nick_from_host</entry>
<entry>retourne le pseudo à partir d'un host IRC</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_channel</entry>
<entry>liste des canaux pour un serveur IRC</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_ignore</entry>
<entry>liste des ignore IRC</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_nick</entry>
<entry>liste des pseudos pour un canal IRC</entry>
</row>
<row>
<entry>infolist</entry>
<entry>irc_server</entry>
<entry>liste des serveurs IRC</entry>
</row>
-28
View File
@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>jabber_buffer</entry>
<entry>retourne le pointeur vers le tampon pour un serveur/MUC Jabber</entry>
</row>
<row>
<entry>infolist</entry>
<entry>jabber_buddy</entry>
<entry>liste des contacts pour un serveur ou MUC Jabber</entry>
</row>
<row>
<entry>infolist</entry>
<entry>jabber_muc</entry>
<entry>liste des MUCs pour un serveur Jabber</entry>
</row>
<row>
<entry>infolist</entry>
<entry>jabber_server</entry>
<entry>liste des serveurs Jabber</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>logger_buffer</entry>
<entry>liste des enregistreurs de tampons (loggers)</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>lua_script</entry>
<entry>liste des scripts lua</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>perl_script</entry>
<entry>liste des scripts perl</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>python_script</entry>
<entry>liste des scripts python</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>relay</entry>
<entry>liste des clients pour le relai</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>ruby_script</entry>
<entry>liste des scripts ruby</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>tcl_script</entry>
<entry>liste des scripts tcl</entry>
</row>
-123
View File
@@ -1,123 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>info</entry>
<entry>charset_internal</entry>
<entry>charset interne à WeeChat</entry>
</row>
<row>
<entry>info</entry>
<entry>charset_terminal</entry>
<entry>charset du terminal</entry>
</row>
<row>
<entry>info</entry>
<entry>date</entry>
<entry>date de compilation de WeeChat</entry>
</row>
<row>
<entry>info</entry>
<entry>dir_separator</entry>
<entry>séparateur de répertoire</entry>
</row>
<row>
<entry>info</entry>
<entry>filters_enabled</entry>
<entry>1 si les filtres sont activés</entry>
</row>
<row>
<entry>info</entry>
<entry>inactivity</entry>
<entry>inactivité du clavier (secondes)</entry>
</row>
<row>
<entry>info</entry>
<entry>version</entry>
<entry>version de WeeChat</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_dir</entry>
<entry>répertoire de WeeChat</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_libdir</entry>
<entry>répertoire "lib" de WeeChat</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_localedir</entry>
<entry>répertoire "locale" de WeeChat</entry>
</row>
<row>
<entry>info</entry>
<entry>weechat_sharedir</entry>
<entry>répertoire "share" de WeeChat</entry>
</row>
<row>
<entry>infolist</entry>
<entry>bar</entry>
<entry>liste des barres</entry>
</row>
<row>
<entry>infolist</entry>
<entry>bar_item</entry>
<entry>liste des objets de barres</entry>
</row>
<row>
<entry>infolist</entry>
<entry>bar_window</entry>
<entry>liste des fenêtres de barre</entry>
</row>
<row>
<entry>infolist</entry>
<entry>buffer</entry>
<entry>liste des tampons</entry>
</row>
<row>
<entry>infolist</entry>
<entry>buffer_lines</entry>
<entry>lignes d'un tampon</entry>
</row>
<row>
<entry>infolist</entry>
<entry>filter</entry>
<entry>liste des filtres</entry>
</row>
<row>
<entry>infolist</entry>
<entry>hook</entry>
<entry>liste des hooks</entry>
</row>
<row>
<entry>infolist</entry>
<entry>hotlist</entry>
<entry>liste des tampons dans la hotlist</entry>
</row>
<row>
<entry>infolist</entry>
<entry>nicklist</entry>
<entry>pseudos dans la liste des pseudos pour un tampon</entry>
</row>
<row>
<entry>infolist</entry>
<entry>option</entry>
<entry>liste des options</entry>
</row>
<row>
<entry>infolist</entry>
<entry>plugin</entry>
<entry>liste des extensions</entry>
</row>
<row>
<entry>infolist</entry>
<entry>window</entry>
<entry>liste des fenêtres</entry>
</row>
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
********* WARNING! *********
This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
docgen.pl builds XML doc files to include in many languages
-->
<row>
<entry>infolist</entry>
<entry>xfer</entry>
<entry>liste des xfer</entry>
</row>
File diff suppressed because it is too large Load Diff
-22
View File
@@ -38,26 +38,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secAliasInfosHooked">
<title>Infos et infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Nom</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&alias_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -71,26 +71,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secIrcInfosHooked">
<title>Infos et infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Nom</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&irc_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -48,26 +48,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secJabberInfosHooked">
<title>Infos et infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Nom</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&jabber_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -47,28 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secLoggerInfosHooked">
<title>Infos et infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Nom</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&logger_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
<section id="secLoggerLevels">
<title>Niveaux</title>
-26
View File
@@ -56,30 +56,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secScriptsInfosHooked">
<title>Infos et infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Nom</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&perl_infos.xml;
&python_infos.xml;
&ruby_infos.xml;
&lua_infos.xml;
&tcl_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
-22
View File
@@ -42,26 +42,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</section>
<section id="secXferInfosHooked">
<title>Infos et infolists</title>
<para>
<informaltable colsep="0" frame="none">
<tgroup cols="3">
<thead>
<row>
<entry>Type</entry>
<entry>Nom</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
&xfer_infos.xml;
</tbody>
</tgroup>
</informaltable>
</para>
</section>
</section>
+6 -14
View File
@@ -28,21 +28,13 @@
<!ENTITY weechat_options.xml SYSTEM "autogen/weechat_options.xml">
<!ENTITY xfer_options.xml SYSTEM "autogen/xfer_options.xml">
<!-- infos/infolists hooked -->
<!-- infos hooked -->
<!ENTITY alias_infos.xml SYSTEM "autogen/alias_infos.xml">
<!ENTITY fifo_infos.xml SYSTEM "autogen/fifo_infos.xml">
<!ENTITY irc_infos.xml SYSTEM "autogen/irc_infos.xml">
<!ENTITY jabber_infos.xml SYSTEM "autogen/jabber_infos.xml">
<!ENTITY logger_infos.xml SYSTEM "autogen/logger_infos.xml">
<!ENTITY lua_infos.xml SYSTEM "autogen/lua_infos.xml">
<!ENTITY perl_infos.xml SYSTEM "autogen/perl_infos.xml">
<!ENTITY python_infos.xml SYSTEM "autogen/python_infos.xml">
<!ENTITY relay_infos.xml SYSTEM "autogen/relay_infos.xml">
<!ENTITY ruby_infos.xml SYSTEM "autogen/ruby_infos.xml">
<!ENTITY tcl_infos.xml SYSTEM "autogen/tcl_infos.xml">
<!ENTITY weechat_infos.xml SYSTEM "autogen/weechat_infos.xml">
<!ENTITY xfer_infos.xml SYSTEM "autogen/xfer_infos.xml">
<!ENTITY infos.xml SYSTEM "autogen/infos.xml">
<!-- infolists hooked -->
<!ENTITY infolists.xml SYSTEM "autogen/infolists.xml">
<!-- completions hooked -->
+1 -1
View File
@@ -166,7 +166,7 @@ script_init (struct t_weechat_plugin *weechat_plugin,
callback_completion, NULL);
snprintf (infolist_description, sizeof (infolist_description),
/* TRANSLATORS: %s is language (for example "perl") */
_("list of %s scripts"), weechat_plugin->name);
N_("list of %s scripts"), weechat_plugin->name);
weechat_hook_infolist (string, infolist_description,
callback_infolist, NULL);
free (string);