summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-09-02 17:02:59 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-09-02 17:02:59 +0200
commite7dcf1376475d1578321dcd2e2c7871d96fcb25a (patch)
tree7cd87b91dfad8f3b0156a730f137929160f5873d
parente756f4770ae99b07c7aaf7d43d5f07d0c88f256f (diff)
downloadweechat-e7dcf1376475d1578321dcd2e2c7871d96fcb25a.zip
Add description for info and infolist hooks
-rw-r--r--doc/docgen.pl52
-rw-r--r--po/cs.po119
-rw-r--r--po/de.po152
-rw-r--r--po/es.po152
-rw-r--r--po/fr.po97
-rw-r--r--po/hu.po152
-rw-r--r--po/ru.po152
-rw-r--r--po/weechat.pot95
-rw-r--r--src/core/wee-config-file.c12
-rw-r--r--src/core/wee-hook.c34
-rw-r--r--src/core/wee-hook.h4
-rw-r--r--src/plugins/alias/alias-info.c3
-rw-r--r--src/plugins/fifo/fifo-info.c3
-rw-r--r--src/plugins/irc/irc-info.c18
-rw-r--r--src/plugins/logger/logger-info.c3
-rw-r--r--src/plugins/plugin-api.c55
-rw-r--r--src/plugins/scripts/lua/weechat-lua-api.c16
-rw-r--r--src/plugins/scripts/perl/weechat-perl-api.c16
-rw-r--r--src/plugins/scripts/python/weechat-python-api.c12
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby-api.c26
-rw-r--r--src/plugins/scripts/script-api.c7
-rw-r--r--src/plugins/scripts/script-api.h2
-rw-r--r--src/plugins/weechat-plugin.h12
-rw-r--r--src/plugins/xfer/xfer-info.c3
24 files changed, 970 insertions, 227 deletions
diff --git a/doc/docgen.pl b/doc/docgen.pl
index b2a739427..67faab172 100644
--- a/doc/docgen.pl
+++ b/doc/docgen.pl
@@ -28,9 +28,8 @@
# /docgen
# XML files should be in ~/src/weechat/doc/xx/autogen/ (where xx is language)
#
-# History:
-# 2008-08-22, FlashCode <flashcode@flashtux.org>:
-# script creation
+# Script written on 2008-08-22 by FlashCode <flashcode@flashtux.org>
+#
use strict;
@@ -70,6 +69,10 @@ my %plugin_list = ("weechat" => "co", "alias" => "",
"python" => "", "ruby" => "",
"lua" => "", "xfer" => "co");
+# options to ignore
+my @ignore_options = ("weechat\\.bar\\..*",
+ "irc\\.server\\..*");
+
# --------------------------------[ init ]--------------------------------------
weechat::register("docgen", "FlashCode <flashcode\@flashtux.org>", $version,
@@ -95,9 +98,9 @@ sub get_commands
{
if (($command eq $plugin) || ($plugin_list{$plugin} =~ /c/))
{
- $commands{$plugin}{$command}{"description"} = weechat::infolist_string($infolist, "description_en");
- $commands{$plugin}{$command}{"args"} = weechat::infolist_string($infolist, "args_en");
- $commands{$plugin}{$command}{"args_description"} = weechat::infolist_string($infolist, "args_description_en");
+ $commands{$plugin}{$command}{"description"} = weechat::infolist_string($infolist, "description");
+ $commands{$plugin}{$command}{"args"} = weechat::infolist_string($infolist, "args");
+ $commands{$plugin}{$command}{"args_description"} = weechat::infolist_string($infolist, "args_description");
$commands{$plugin}{$command}{"completion"} = weechat::infolist_string($infolist, "completion");
}
}
@@ -115,17 +118,29 @@ sub get_options
my $infolist = weechat::infolist_get("option", "", "");
while (weechat::infolist_next($infolist))
{
- my $config = weechat::infolist_string($infolist, "config_name");
- my $section = weechat::infolist_string($infolist, "section_name");
- my $option = weechat::infolist_string($infolist, "option_name");
- if ($plugin_list{$config} =~ /o/)
+ my $full_name = weechat::infolist_string($infolist, "full_name");
+
+ # check if option is ignored or not
+ my $ignore = 0;
+ foreach my $mask (@ignore_options)
+ {
+ $ignore = 1 if ($full_name =~ /${mask}/);
+ }
+
+ if ($ignore ne 1)
{
- $options{$config}{$section}{$option}{"type"} = weechat::infolist_string($infolist, "type");
- $options{$config}{$section}{$option}{"string_values"} = weechat::infolist_string($infolist, "string_values");
- $options{$config}{$section}{$option}{"default_value"} = weechat::infolist_string($infolist, "default_value");
- $options{$config}{$section}{$option}{"min"} = weechat::infolist_integer($infolist, "min");
- $options{$config}{$section}{$option}{"max"} = weechat::infolist_integer($infolist, "max");
- $options{$config}{$section}{$option}{"description"} = weechat::infolist_string($infolist, "description_en");
+ my $config = weechat::infolist_string($infolist, "config_name");
+ my $section = weechat::infolist_string($infolist, "section_name");
+ my $option = weechat::infolist_string($infolist, "option_name");
+ if ($plugin_list{$config} =~ /o/)
+ {
+ $options{$config}{$section}{$option}{"type"} = weechat::infolist_string($infolist, "type");
+ $options{$config}{$section}{$option}{"string_values"} = weechat::infolist_string($infolist, "string_values");
+ $options{$config}{$section}{$option}{"default_value"} = weechat::infolist_string($infolist, "default_value");
+ $options{$config}{$section}{$option}{"min"} = weechat::infolist_integer($infolist, "min");
+ $options{$config}{$section}{$option}{"max"} = weechat::infolist_integer($infolist, "max");
+ $options{$config}{$section}{$option}{"description"} = weechat::infolist_string($infolist, "description");
+ }
}
}
weechat::infolist_free($infolist);
@@ -221,10 +236,12 @@ sub docgen
my $max = $plugin_options{$config}{$section}{$option}{"max"};
my $description = $plugin_options{$config}{$section}{$option}{"description"};
$description = $d->get($description) if ($description ne "");
+ my $type_nls = $type;
+ $type_nls = $d->get($type_nls) if ($type_nls ne "");
print FILE "<row>\n";
print FILE " <entry><option>".$config.".".$section.".".$option."</option></entry>\n";
- print FILE " <entry>".$type."</entry>\n";
+ print FILE " <entry>".$type_nls."</entry>\n";
print FILE " <entry>";
if ($string_values eq "")
{
@@ -237,6 +254,7 @@ sub docgen
print FILE $string_values;
}
print FILE "</entry>\n";
+ print FILE " <entry>".$default_value."</entry>\n";
print FILE " <entry>".$description."</entry>\n";
print FILE "</row>\n";
}
diff --git a/po/cs.po b/po/cs.po
index 84feb338f..a16ae075c 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2008-08-29 14:53+0200\n"
+"POT-Creation-Date: 2008-09-02 16:39+0200\n"
"PO-Revision-Date: 2007-09-06 12:44+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1573,6 +1573,21 @@ msgstr ""
msgid "save configuration files when unloading plugins"
msgstr "uložit soubor s nastavením při ukončení"
+msgid "boolean"
+msgstr ""
+
+#, fuzzy
+msgid "integer"
+msgstr "minuta"
+
+#, fuzzy
+msgid "string"
+msgstr "Čekám"
+
+#, fuzzy
+msgid "color"
+msgstr "barva pro text rozhovoru"
+
#, fuzzy, c-format
msgid "%sError: cannot create file \"%s\""
msgstr "%s nemohu vytvořit soubor \"%s\"\n"
@@ -1917,6 +1932,10 @@ msgstr "jméno_aliasu"
msgid "alias_name: name of alias to remove"
msgstr "jméno_aliasu: jméno aliasu pro odebrání"
+#, fuzzy
+msgid "list of alias"
+msgstr "Seznam pro aliasy:\n"
+
#, fuzzy, c-format
msgid "%s: debug enabled"
msgstr "FIFO roura je otevřena\n"
@@ -3244,6 +3263,29 @@ msgid_plural "channels"
msgstr[0] "%d kanál"
msgstr[1] "%d kanálů"
+#, fuzzy
+msgid "1 if string is an IRC channel"
+msgstr "seznam uživatelů na kanálu"
+
+#, fuzzy
+msgid "get nick from IRC host"
+msgstr "zakázat přezdívky nebo hosty"
+
+msgid "get buffer pointer for an IRC server/channel"
+msgstr ""
+
+#, fuzzy
+msgid "list of IRC servers"
+msgstr "heslo pro IRC server"
+
+#, fuzzy
+msgid "list of channels for an IRC server"
+msgstr "seznam uživatelů přihlášených k serveru"
+
+#, fuzzy
+msgid "list of nicks for an IRC channel"
+msgstr "seznam uživatelů na kanálu"
+
#, fuzzy, c-format
msgid "%s%s: you are not connected to server"
msgstr "%s nepřipojen k serveru\n"
@@ -4005,6 +4047,10 @@ msgstr "**** End of log "
msgid "===\t========== End of backlog (%d lines) =========="
msgstr "===\t========== Konec zpětného logu (%d řádků) =========="
+#, fuzzy
+msgid "list of logger buffers"
+msgstr "časová známka pro buffer"
+
#, c-format
msgid "notify: debug: set notify for buffer %s to %d (%s)"
msgstr "notify: debug: nastavit notifikaci pro buffer %s na %d (%s)"
@@ -4046,6 +4092,70 @@ msgstr ""
"zprávách\n"
" all: buffer bude v hotlistu pro jakýkoliv vytištěný text"
+#, fuzzy
+msgid "WeeChat version"
+msgstr "verze serveru"
+
+#, fuzzy
+msgid "WeeChat compilation date"
+msgstr "datum vytvoření kanálu"
+
+#, fuzzy
+msgid "directory separator"
+msgstr "barva pro dělič času"
+
+msgid "WeeChat directory"
+msgstr ""
+
+msgid "WeeChat \"lib\" directory"
+msgstr ""
+
+msgid "WeeChat \"share\" directory"
+msgstr ""
+
+msgid "WeeChat \"locale\" directory"
+msgstr ""
+
+msgid "terminal charset"
+msgstr ""
+
+msgid "WeeChat internal charset"
+msgstr ""
+
+msgid "keyboard inactivity (seconds)"
+msgstr ""
+
+#, fuzzy
+msgid "1 if filters are enabled"
+msgstr "uživatel byl zablokován"
+
+#, fuzzy
+msgid "list of buffers"
+msgstr "Seznam pro aliasy:\n"
+
+#, fuzzy
+msgid "lines of a buffer"
+msgstr "nevalidní délka pro buffer"
+
+#, fuzzy
+msgid "nicks in nicklist for a buffer"
+msgstr "nevalidní délka pro buffer"
+
+msgid "list of windows"
+msgstr ""
+
+#, fuzzy
+msgid "list of buffers in hotlist"
+msgstr "zobrazit historii příkazů bufferu"
+
+#, fuzzy
+msgid "list of options"
+msgstr "nastaví konfigurační možnosti"
+
+#, fuzzy
+msgid "list of hooks"
+msgstr "Seznam pro aliasy:\n"
+
#, fuzzy, c-format
msgid "%sError: unable to load plugin \"%s\": %s"
msgstr "%s nemůžu načist plugin \"%s\": %s\n"
@@ -4659,6 +4769,10 @@ msgstr "automaticky akceptovat dcc rozhovor (používejte opatrně!)"
msgid "automatically accept chat requests (use carefully!)"
msgstr "automaticky akceptovat dcc rozhovor (používejte opatrně!)"
+#, fuzzy
+msgid "list of xfer"
+msgstr "Seznam pro aliasy:\n"
+
#, fuzzy, c-format
msgid "%s%s: unable to create pipe"
msgstr "%s DCC: nemohu vytvořit rouru\n"
@@ -4775,9 +4889,6 @@ msgstr "%s chybí argument pro volbu \"%s\"\n"
#~ msgid "wrong type in file (expected: %d, read: %d)"
#~ msgstr "špatný typ v souboru (očekáván: %d, přečten: %d)"
-#~ msgid "invalid length for a buffer"
-#~ msgstr "nevalidní délka pro buffer"
-
#~ msgid "object read error"
#~ msgstr "chyba při čtení objektu"
diff --git a/po/de.po b/po/de.po
index 84df41628..56b62dbc0 100644
--- a/po/de.po
+++ b/po/de.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2008-08-29 14:53+0200\n"
+"POT-Creation-Date: 2008-09-02 16:39+0200\n"
"PO-Revision-Date: 2007-09-06 12:44+0200\n"
"Last-Translator: Thomas Schuetz <i18n@internet-villa.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1523,6 +1523,21 @@ msgstr ""
msgid "save configuration files when unloading plugins"
msgstr "Konfiguration beim Verlassen abspeichern"
+msgid "boolean"
+msgstr ""
+
+#, fuzzy
+msgid "integer"
+msgstr "Minute"
+
+#, fuzzy
+msgid "string"
+msgstr "warten"
+
+#, fuzzy
+msgid "color"
+msgstr "Farbe vom Chat-Text"
+
#, fuzzy, c-format
msgid "%sError: cannot create file \"%s\""
msgstr "%s kann die Datei \"%s\" nicht anlegen\n"
@@ -1866,6 +1881,10 @@ msgstr "Aliasname"
msgid "alias_name: name of alias to remove"
msgstr "Aliasname: Name des zu löschenden Aliases"
+#, fuzzy
+msgid "list of alias"
+msgstr "Liste der Aliases:\n"
+
#, fuzzy, c-format
msgid "%s: debug enabled"
msgstr "FIFO ist offen\n"
@@ -3161,6 +3180,29 @@ msgid_plural "channels"
msgstr[0] "ungültige Channelmaske"
msgstr[1] "ungültige Channelmaske"
+#, fuzzy
+msgid "1 if string is an IRC channel"
+msgstr "Liste von Nicks im Channel"
+
+#, fuzzy
+msgid "get nick from IRC host"
+msgstr "Nicknames oder Hosts sperren/verbannen"
+
+msgid "get buffer pointer for an IRC server/channel"
+msgstr ""
+
+#, fuzzy
+msgid "list of IRC servers"
+msgstr "Port des IRC-Servers"
+
+#, fuzzy
+msgid "list of channels for an IRC server"
+msgstr "Channels, die bei Verbindung zum Server zu betreten sind"
+
+#, fuzzy
+msgid "list of nicks for an IRC channel"
+msgstr "Liste von Nicks im Channel"
+
#, fuzzy, c-format
msgid "%s%s: you are not connected to server"
msgstr "%s keine Verbindung zum Server \"%s\"!\n"
@@ -3918,6 +3960,10 @@ msgstr "**** End of log "
msgid "===\t========== End of backlog (%d lines) =========="
msgstr ""
+#, fuzzy
+msgid "list of logger buffers"
+msgstr "Timestamp für Puffer"
+
#, c-format
msgid "notify: debug: set notify for buffer %s to %d (%s)"
msgstr ""
@@ -3953,6 +3999,74 @@ msgid ""
" all: buffer will be in hotlist for any text printed"
msgstr ""
+#, fuzzy
+msgid "WeeChat version"
+msgstr "WeeChat-Slogan"
+
+#, fuzzy
+msgid "WeeChat compilation date"
+msgstr "Konfigurationsdatei gesichert\n"
+
+#, fuzzy
+msgid "directory separator"
+msgstr "Farbe für den Zeit-Separator"
+
+#, fuzzy
+msgid "WeeChat directory"
+msgstr "WeeChat-Fehler:"
+
+msgid "WeeChat \"lib\" directory"
+msgstr ""
+
+#, fuzzy
+msgid "WeeChat \"share\" directory"
+msgstr "WeeChat-Fehler:"
+
+msgid "WeeChat \"locale\" directory"
+msgstr ""
+
+#, fuzzy
+msgid "terminal charset"
+msgstr "Puffer verwalten"
+
+msgid "WeeChat internal charset"
+msgstr ""
+
+msgid "keyboard inactivity (seconds)"
+msgstr ""
+
+#, fuzzy
+msgid "1 if filters are enabled"
+msgstr "/users wurde deaktiviert"
+
+#, fuzzy
+msgid "list of buffers"
+msgstr "Liste der Aliases:\n"
+
+#, fuzzy
+msgid "lines of a buffer"
+msgstr "konnte den Puffer nicht laden"
+
+#, fuzzy
+msgid "nicks in nicklist for a buffer"
+msgstr "Fehlerhafte Pufferlänge"
+
+#, fuzzy
+msgid "list of windows"
+msgstr "Liste der /ignore-Regeln:\n"
+
+#, fuzzy
+msgid "list of buffers in hotlist"
+msgstr "Maximale Länge der Namen in der Hotlist"
+
+#, fuzzy
+msgid "list of options"
+msgstr "Konfigurationsparameter setzen"
+
+#, fuzzy
+msgid "list of hooks"
+msgstr "Liste der Aliases:\n"
+
#, fuzzy, c-format
msgid "%sError: unable to load plugin \"%s\": %s"
msgstr "%s kann Plugin \"%s\" nicht laden: %s\n"
@@ -4558,6 +4672,10 @@ msgstr "DCC-CHats automatisch annehmen (Vorsicht!)"
msgid "automatically accept chat requests (use carefully!)"
msgstr "DCC-CHats automatisch annehmen (Vorsicht!)"
+#, fuzzy
+msgid "list of xfer"
+msgstr "Liste der Aliases:\n"
+
#, fuzzy, c-format
msgid "%s%s: unable to create pipe"
msgstr "%s DCC: kann keine Pipe erstellen\n"
@@ -4660,9 +4778,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgid "wrong type in file (expected: %d, read: %d)"
#~ msgstr "Falscher Datentyp in der Datei (erwartet: %d, gefunden: %d)"
-#~ msgid "invalid length for a buffer"
-#~ msgstr "Fehlerhafte Pufferlänge"
-
#~ msgid "object read error"
#~ msgstr "Objekt-Lesefehler"
@@ -5089,10 +5204,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgstr "Keine Aliases definiert.\n"
#, fuzzy
-#~ msgid "manage charsets"
-#~ msgstr "Puffer verwalten"
-
-#, fuzzy
#~ msgid "%s%s: error creating server for reading configuration file"
#~ msgstr "den Server dazu bringen, seine Konfigurationsdatei neu zu laden"
@@ -5329,10 +5440,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgstr "%s konnte die Konfigurationsdatei nicht sichern\n"
#, fuzzy
-#~ msgid "%sWeeChat configuration file saved"
-#~ msgstr "Konfigurationsdatei gesichert\n"
-
-#, fuzzy
#~ msgid "%sError: failed to save WeeChat configuration file"
#~ msgstr "%s konnte die Konfigurationsdatei nicht sichern\n"
@@ -5732,9 +5839,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgid "%sFailed to create alias \"%s\" => \"%s\" (not enough memory)"
#~ msgstr "Kann den Alias \"%s\" => \"%s\" nicht anlegen (Speichermangel)\n"
-#~ msgid "WeeChat Error:"
-#~ msgstr "WeeChat-Fehler:"
-
#~ msgid "WeeChat Warning:"
#~ msgstr "WeeChat-Warnung:"
@@ -5918,9 +6022,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgid "failed to load history"
#~ msgstr "konnte den Verlauf nicht laden"
-#~ msgid "failed to load buffer"
-#~ msgstr "konnte den Puffer nicht laden"
-
#~ msgid "failed to load line"
#~ msgstr "konnte die Zeile nicht laden"
@@ -6331,9 +6432,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgid "IRC commands:\n"
#~ msgstr "IRC-Befehle:\n"
-#~ msgid "List of ignore:\n"
-#~ msgstr "Liste der /ignore-Regeln:\n"
-
#~ msgid "No ignore defined.\n"
#~ msgstr "Keine /ignore-Regeln definiert.\n"
@@ -6425,9 +6523,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgid "%s unable to create server ('%s'), ignored\n"
#~ msgstr "%s Kann Server nicht anlegen ('%s'), ignoriert\n"
-#~ msgid "WeeChat slogan"
-#~ msgstr "WeeChat-Slogan"
-
#~ msgid "display nicklist window"
#~ msgstr "Nicklisten-Fenster anzeigen"
@@ -6458,9 +6553,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgid "level for displaying names in hotlist"
#~ msgstr "Level für Namensanzeige in der Hotlist"
-#~ msgid "max length of names in hotlist"
-#~ msgstr "Maximale Länge der Namen in der Hotlist"
-
#~ msgid "format for input prompt"
#~ msgstr "Format der Eingabezeile"
@@ -6670,9 +6762,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgid "server address or hostname"
#~ msgstr "Serveradresse oder Hostname"
-#~ msgid "port for IRC server"
-#~ msgstr "Port des IRC-Servers"
-
#~ msgid "server password"
#~ msgstr "Serverpasswort"
@@ -6701,9 +6790,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n"
#~ msgid "delay (in seconds) after command was executed"
#~ msgstr "Wartezeit nach Ausführung des Befehls"
-#~ msgid "list of channels to join when connected to server"
-#~ msgstr "Channels, die bei Verbindung zum Server zu betreten sind"
-
#~ msgid "notify levels for channels of this server"
#~ msgstr "Notify-Levels für Channels auf diesem Server"
diff --git a/po/es.po b/po/es.po
index e3b35f10a..8881d0261 100644
--- a/po/es.po
+++ b/po/es.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2008-08-29 14:53+0200\n"
+"POT-Creation-Date: 2008-09-02 16:39+0200\n"
"PO-Revision-Date: 2007-09-19 12:09+0200\n"
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1511,6 +1511,21 @@ msgstr ""
msgid "save configuration files when unloading plugins"
msgstr "guardar configuración a disco"
+msgid "boolean"
+msgstr ""
+
+#, fuzzy
+msgid "integer"
+msgstr "minuto"
+
+#, fuzzy
+msgid "string"
+msgstr "Esperando"
+
+#, fuzzy
+msgid "color"
+msgstr "color para el texto de conversación"
+
#, fuzzy, c-format
msgid "%sError: cannot create file \"%s\""
msgstr "%s no es posible crear el fichero \"%s\"\n"
@@ -1843,6 +1858,10 @@ msgstr "alias"
msgid "alias_name: name of alias to remove"
msgstr "alias: nombre del alias a suprimir"
+#, fuzzy
+msgid "list of alias"
+msgstr "Lista de alias:\n"
+
#, fuzzy, c-format
msgid "%s: debug enabled"
msgstr "La tubería FIFO está abierta\n"
@@ -3155,6 +3174,29 @@ msgid_plural "channels"
msgstr[0] "máscara de canal incorrecta"
msgstr[1] "máscara de canal incorrecta"
+#, fuzzy
+msgid "1 if string is an IRC channel"
+msgstr "lista de usuarios en el canal"
+
+#, fuzzy
+msgid "get nick from IRC host"
+msgstr "banea usuarios o máquinas"
+
+msgid "get buffer pointer for an IRC server/channel"
+msgstr ""
+
+#, fuzzy
+msgid "list of IRC servers"
+msgstr "puerto para el servidor IRC"
+
+#, fuzzy
+msgid "list of channels for an IRC server"
+msgstr "lista de canales a unirse cuando se conecte a un servidor"
+
+#, fuzzy
+msgid "list of nicks for an IRC channel"
+msgstr "lista de usuarios en el canal"
+
#, fuzzy, c-format
msgid "%s%s: you are not connected to server"
msgstr "%s ¡no conectado al servidor \"%s\"!\n"
@@ -3921,6 +3963,10 @@ msgstr "**** Fin del log "
msgid "===\t========== End of backlog (%d lines) =========="
msgstr ""
+#, fuzzy
+msgid "list of logger buffers"
+msgstr "fecha y hora para las búfers"
+
#, c-format
msgid "notify: debug: set notify for buffer %s to %d (%s)"
msgstr ""
@@ -3957,6 +4003,74 @@ msgid ""
" all: buffer will be in hotlist for any text printed"
msgstr ""
+#, fuzzy
+msgid "WeeChat version"
+msgstr "eslógan de WeeChat"
+
+#, fuzzy
+msgid "WeeChat compilation date"
+msgstr "Archivo de configuración guardado\n"
+
+#, fuzzy
+msgid "directory separator"
+msgstr "color para el separador de la hora"
+
+#, fuzzy
+msgid "WeeChat directory"
+msgstr "Error WeeChat:"
+
+msgid "WeeChat \"lib\" directory"
+msgstr ""
+
+#, fuzzy
+msgid "WeeChat \"share\" directory"
+msgstr "Error WeeChat:"
+
+msgid "WeeChat \"locale\" directory"
+msgstr ""
+
+#, fuzzy
+msgid "terminal charset"
+msgstr "gestionar los búfers"
+
+msgid "WeeChat internal charset"
+msgstr ""
+
+msgid "keyboard inactivity (seconds)"
+msgstr ""
+
+#, fuzzy
+msgid "1 if filters are enabled"
+msgstr "los usuarios han sido desactivados"
+
+#, fuzzy
+msgid "list of buffers"
+msgstr "Lista de alias:\n"
+
+#, fuzzy
+msgid "lines of a buffer"
+msgstr "falló al cargar el búfer"
+
+#, fuzzy
+msgid "nicks in nicklist for a buffer"
+msgstr "longitud inválida para un búfer"
+
+#, fuzzy
+msgid "list of windows"
+msgstr "Lista de ignores:\n"
+
+#, fuzzy
+msgid "list of buffers in hotlist"
+msgstr "longitud máxima de nombres en la hotlist"
+
+#, fuzzy
+msgid "list of options"
+msgstr "poner opciones de configuración"
+
+#, fuzzy
+msgid "list of hooks"
+msgstr "Lista de alias:\n"
+
#, fuzzy, c-format
msgid "%sError: unable to load plugin \"%s\": %s"
msgstr "%s no ha sido posible cargar el plugin \"%s\": %s\n"
@@ -4567,6 +4681,10 @@ msgstr ""
"aceptar automáticamente las peticiones de conversación dcc (¡utilizar con "
"precaución!)"
+#, fuzzy
+msgid "list of xfer"
+msgstr "Lista de alias:\n"
+
#, fuzzy, c-format
msgid "%s%s: unable to create pipe"
msgstr "%s no es posible crear el servidor\n"
@@ -4668,9 +4786,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ msgid "wrong type in file (expected: %d, read: %d)"
#~ msgstr "tipo erróneo en el fichero (esperado: %d, leído: %d)"
-#~ msgid "invalid length for a buffer"
-#~ msgstr "longitud inválida para un búfer"
-
#~ msgid "object read error"
#~ msgstr "error de lectura de objeto"
@@ -5098,10 +5213,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ msgstr "Ningún alias definido.\n"
#, fuzzy
-#~ msgid "manage charsets"
-#~ msgstr "gestionar los búfers"
-
-#, fuzzy
#~ msgid "%s%s: error creating server for reading configuration file"
#~ msgstr "pedir al servidor que recargue su archivo de configuración"
@@ -5340,10 +5451,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ msgstr "%s falló al salvar el archivo de configuración\n"
#, fuzzy
-#~ msgid "%sWeeChat configuration file saved"
-#~ msgstr "Archivo de configuración guardado\n"
-
-#, fuzzy
#~ msgid "%sError: failed to save WeeChat configuration file"
#~ msgstr "%s falló al salvar el archivo de configuración\n"
@@ -5747,9 +5854,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ "No ha sido posible crear el alias \"%s\" => \"%s\" (no hay suficiente "
#~ "memoria)\n"
-#~ msgid "WeeChat Error:"
-#~ msgstr "Error WeeChat:"
-
#~ msgid "WeeChat Warning:"
#~ msgstr "Advertencia WeeChat:"
@@ -5939,9 +6043,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ msgid "failed to load history"
#~ msgstr "falló al cargar el historial"
-#~ msgid "failed to load buffer"
-#~ msgstr "falló al cargar el búfer"
-
#~ msgid "failed to load line"
#~ msgstr "falló al cargar la línea"
@@ -6358,9 +6459,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ msgid "IRC commands:\n"
#~ msgstr "Comandos IRC :\n"
-#~ msgid "List of ignore:\n"
-#~ msgstr "Lista de ignores:\n"
-
#~ msgid "No ignore defined.\n"
#~ msgstr "Sin ignores definidos.\n"
@@ -6440,9 +6538,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ msgid "%s unable to create server ('%s'), ignored\n"
#~ msgstr "%s no es posible crear el servidor ('%s'), ignorado\n"
-#~ msgid "WeeChat slogan"
-#~ msgstr "eslógan de WeeChat"
-
#~ msgid "display nicklist window"
#~ msgstr "mostrar ventana de usuarios"
@@ -6477,9 +6572,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ msgid "level for displaying names in hotlist"
#~ msgstr "nivel para mostrar nombres en la hotlist"
-#~ msgid "max length of names in hotlist"
-#~ msgstr "longitud máxima de nombres en la hotlist"
-
#~ msgid "format for input prompt"
#~ msgstr "formato para color para el prompt de entrada"
@@ -6689,9 +6781,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ msgid "server address or hostname"
#~ msgstr "dirección o nombre de máquina del servidor"
-#~ msgid "port for IRC server"
-#~ msgstr "puerto para el servidor IRC"
-
#~ msgid "server password"
#~ msgstr "contraseña para el servidor"
@@ -6719,9 +6808,6 @@ msgstr "%s falta un argumento para la opción --dir\n"
#~ msgid "delay (in seconds) after command was executed"
#~ msgstr "espera (en segundos) después de que el comando sea ejecutado"
-#~ msgid "list of channels to join when connected to server"
-#~ msgstr "lista de canales a unirse cuando se conecte a un servidor"
-
#~ msgid "notify levels for channels of this server"
#~ msgstr "niveles de notificación para canales de este servidor"
diff --git a/po/fr.po b/po/fr.po
index d3b5a4639..f11cf7de4 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2008-08-29 14:53+0200\n"
-"PO-Revision-Date: 2008-08-29 14:53+0200\n"
+"POT-Creation-Date: 2008-09-02 16:39+0200\n"
+"PO-Revision-Date: 2008-09-02 16:39+0200\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -1520,6 +1520,18 @@ msgid "save configuration files when unloading plugins"
msgstr ""
"sauvegarder les fichiers de configuration lors du déchargement des extensions"
+msgid "boolean"
+msgstr "booléen"
+
+msgid "integer"
+msgstr "entier"
+
+msgid "string"
+msgstr "chaîne"
+
+msgid "color"
+msgstr "couleur"
+
#, c-format
msgid "%sError: cannot create file \"%s\""
msgstr "%sErreur: impossible de créer le fichier \"%s\""
@@ -1854,6 +1866,9 @@ msgstr "nom_alias"
msgid "alias_name: name of alias to remove"
msgstr "nom_alias: nom de l'alias à supprimer"
+msgid "list of alias"
+msgstr "liste des alias"
+
#, c-format
msgid "%s: debug enabled"
msgstr "%s: debug activé"
@@ -3168,6 +3183,24 @@ msgid_plural "channels"
msgstr[0] "canal"
msgstr[1] "canaux"
+msgid "1 if string is an IRC channel"
+msgstr "1 si la chaîne est un canal IRC"
+
+msgid "get nick from IRC host"
+msgstr "retourne le pseudo à partir d'un host IRC"
+
+msgid "get buffer pointer for an IRC server/channel"
+msgstr "retourne le pointeur vers le tampon pour un serveur/canal IRC"
+
+msgid "list of IRC servers"
+msgstr "liste des serveurs IRC"
+
+msgid "list of channels for an IRC server"
+msgstr "liste des canaux pour un serveur IRC"
+
+msgid "list of nicks for an IRC channel"
+msgstr "liste des pseudos pour un canal IRC"
+
#, c-format
msgid "%s%s: you are not connected to server"
msgstr "%s%s: vous n'êtes pas connecté au serveur"
@@ -3936,6 +3969,9 @@ msgstr "%s\t**** Fin du log ****"
msgid "===\t========== End of backlog (%d lines) =========="
msgstr "===\t========== Fin de l'historique (%d lignes) =========="
+msgid "list of logger buffers"
+msgstr "liste des enregistreurs de tampons (loggers)"
+
#, c-format
msgid "notify: debug: set notify for buffer %s to %d (%s)"
msgstr "notify: debug: niveau de notification pour le tampon %s mis à %d (%s)"
@@ -3977,6 +4013,60 @@ msgstr ""
"messages d'utilisateurs seulement\n"
" all: le tampon sera dans la hotlist pour tout texte affiché"
+msgid "WeeChat version"
+msgstr "version de WeeChat"
+
+msgid "WeeChat compilation date"
+msgstr "date de compilation de WeeChat"
+
+msgid "directory separator"
+msgstr "séparateur de répertoire"
+
+msgid "WeeChat directory"
+msgstr "répertoire de WeeChat"
+
+msgid "WeeChat \"lib\" directory"
+msgstr "répertoire \"lib\" de WeeChat"
+
+msgid "WeeChat \"share\" directory"
+msgstr "répertoire \"share\" de WeeChat"
+
+msgid "WeeChat \"locale\" directory"
+msgstr "répertoire \"locale\" de WeeChat"
+
+msgid "terminal charset"
+msgstr "charset du terminal"
+
+msgid "WeeChat internal charset"
+msgstr "charset interne à WeeChat"
+
+msgid "keyboard inactivity (seconds)"
+msgstr "inactivité du clavier (secondes)"
+
+msgid "1 if filters are enabled"
+msgstr "1 si les filtres sont activés"
+
+msgid "list of buffers"
+msgstr "liste des tampons"
+
+msgid "lines of a buffer"
+msgstr "lignes d'un tampon"
+
+msgid "nicks in nicklist for a buffer"
+msgstr "pseudos dans la liste des pseudos pour un tampon"
+
+msgid "list of windows"
+msgstr "liste des fenêtres"
+
+msgid "list of buffers in hotlist"
+msgstr "liste des tampons dans la hotlist"
+
+msgid "list of options"
+msgstr "liste des options"
+
+msgid "list of hooks"
+msgstr "liste des hooks"
+
#, c-format
msgid "%sError: unable to load plugin \"%s\": %s"
msgstr "%sErreur: impossible de charger l'extension \"%s\": %s"
@@ -4572,6 +4662,9 @@ msgstr ""
"accepte automatiquement les demandes de discussion (à utiliser avec "
"précaution !)"
+msgid "list of xfer"
+msgstr "liste des xfer"
+
#, c-format
msgid "%s%s: unable to create pipe"
msgstr "%s%s: impossible de créer le tuyau"
diff --git a/po/hu.po b/po/hu.po
index 24de8f337..013c3798d 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2008-08-29 14:53+0200\n"
+"POT-Creation-Date: 2008-09-02 16:39+0200\n"
"PO-Revision-Date: 2007-10-10 18:07+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1535,6 +1535,21 @@ msgstr ""
msgid "save configuration files when unloading plugins"
msgstr "beállítások mentése kilépéskor"
+msgid "boolean"
+msgstr ""
+
+#, fuzzy
+msgid "integer"
+msgstr "perc"
+
+#, fuzzy
+msgid "string"
+msgstr "Várakozás"
+
+#, fuzzy
+msgid "color"
+msgstr "üzenetek színe"
+
#, fuzzy, c-format
msgid "%sError: cannot create file \"%s\""
msgstr "%s nem sikerült a \"%s\" fájlt létrehozni\n"
@@ -1872,6 +1887,10 @@ msgstr "alias_név"
msgid "alias_name: name of alias to remove"
msgstr "alias_név: az eltávolítandó alias neve"
+#, fuzzy
+msgid "list of alias"
+msgstr "Aliaszok listája:\n"
+
#, fuzzy, c-format
msgid "%s: debug enabled"
msgstr "FIFO cső nyitva\n"
@@ -3187,6 +3206,29 @@ msgid_plural "channels"
msgstr[0] "%d szoba"
msgstr[1] "%d szoba"
+#, fuzzy
+msgid "1 if string is an IRC channel"
+msgstr "felhasználók listája a szobában"
+
+#, fuzzy
+msgid "get nick from IRC host"
+msgstr "név vagy gép letiltása"
+
+msgid "get buffer pointer for an IRC server/channel"
+msgstr ""
+
+#, fuzzy
+msgid "list of IRC servers"
+msgstr "IRC szerver portja"
+
+#, fuzzy
+msgid "list of channels for an IRC server"
+msgstr "szobák listája ahová be akarunk lépni csatlakozás után"
+
+#, fuzzy
+msgid "list of nicks for an IRC channel"
+msgstr "felhasználók listája a szobában"
+
#, fuzzy, c-format
msgid "%s%s: you are not connected to server"
msgstr "%s nincs csatlakozva szerverhez!\n"
@@ -3943,6 +3985,10 @@ msgstr "**** Naplófájl vége "
msgid "===\t========== End of backlog (%d lines) =========="
msgstr ""
+#, fuzzy
+msgid "list of logger buffers"
+msgstr "a pufferek időbélyege"
+
#, c-format
msgid "notify: debug: set notify for buffer %s to %d (%s)"
msgstr ""
@@ -3978,6 +4024,74 @@ msgid ""
" all: buffer will be in hotlist for any text printed"
msgstr ""
+#, fuzzy
+msgid "WeeChat version"
+msgstr "WeeChat szlogen"
+
+#, fuzzy
+msgid "WeeChat compilation date"
+msgstr "Konfigurációs fájl elmentve\n"
+
+#, fuzzy
+msgid "directory separator"
+msgstr "időelválasztó színe"
+
+#, fuzzy
+msgid "WeeChat directory"
+msgstr "WeeChat Hiba:"
+
+msgid "WeeChat \"lib\" directory"
+msgstr ""
+
+#, fuzzy
+msgid "WeeChat \"share\" directory"
+msgstr "WeeChat Hiba:"
+
+msgid "WeeChat \"locale\" directory"
+msgstr ""
+
+#, fuzzy
+msgid "terminal charset"
+msgstr "pufferek kezelése"
+
+msgid "WeeChat internal charset"
+msgstr ""
+
+msgid "keyboard inactivity (seconds)"
+msgstr ""
+
+#, fuzzy
+msgid "1 if filters are enabled"
+msgstr "a felhasználók le lettek tiltva"
+
+#, fuzzy
+msgid "list of buffers"
+msgstr "Aliaszok listája:\n"
+
+#, fuzzy
+msgid "lines of a buffer"
+msgstr "puffer betöltése sikertelen"
+
+#, fuzzy
+msgid "nicks in nicklist for a buffer"
+msgstr "érvénytelen pufferhossz"
+
+#, fuzzy
+msgid "list of windows"
+msgstr "Mellőzések listája:\n"
+
+#, fuzzy
+msgid "list of buffers in hotlist"
+msgstr "kiemelendő szavak listája"
+
+#, fuzzy
+msgid "list of options"
+msgstr "konfigurációs paraméterek beállítása"
+
+#, fuzzy
+msgid "list of hooks"
+msgstr "Aliaszok listája:\n"
+
#, fuzzy, c-format
msgid "%sError: unable to load plugin \"%s\": %s"
msgstr "%s nem sikerült a modult betölteni \"%s\": %s\n"
@@ -4578,6 +4692,10 @@ msgstr "dcc beszélgetések automatikus fogadása (óvatosan használja!)"
msgid "automatically accept chat requests (use carefully!)"
msgstr "dcc beszélgetések automatikus fogadása (óvatosan használja!)"
+#, fuzzy
+msgid "list of xfer"
+msgstr "Aliaszok listája:\n"
+
#, fuzzy, c-format
msgid "%s%s: unable to create pipe"
msgstr "%s DCC: nem sikerült a csövet létrehozni\n"
@@ -4677,9 +4795,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgid "wrong type in file (expected: %d, read: %d)"
#~ msgstr "rossz típus a fájlban (várt: %d, beolvasott: %d)"
-#~ msgid "invalid length for a buffer"
-#~ msgstr "érvénytelen pufferhossz"
-
#~ msgid "object read error"
#~ msgstr "objektumolvasási hiba"
@@ -5094,10 +5209,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgstr "Nincs aliasz definiálva.\n"
#, fuzzy
-#~ msgid "manage charsets"
-#~ msgstr "pufferek kezelése"
-
-#, fuzzy
#~ msgid "%s%s: error creating server for reading configuration file"
#~ msgstr "szerver konfigurációs fájljának újraolvastatása"
@@ -5327,10 +5438,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgstr "%s nem sikerült a konfigurációs fájlt elmenteni\n"
#, fuzzy
-#~ msgid "%sWeeChat configuration file saved"
-#~ msgstr "Konfigurációs fájl elmentve\n"
-
-#, fuzzy
#~ msgid "%sError: failed to save WeeChat configuration file"
#~ msgstr "%s nem sikerült a konfigurációs fájlt elmenteni\n"
@@ -5726,9 +5833,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgstr ""
#~ "A \"%s\" => \"%s\" aliasz elkészítése sikertelen (nincs elég memória)\n"
-#~ msgid "WeeChat Error:"
-#~ msgstr "WeeChat Hiba:"
-
#~ msgid "WeeChat Warning:"
#~ msgstr "WeeChat Figyelmeztetés:"
@@ -5908,9 +6012,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgid "failed to load history"
#~ msgstr "nem sikerült az előzményeket beolvasni"
-#~ msgid "failed to load buffer"
-#~ msgstr "puffer betöltése sikertelen"
-
#~ msgid "failed to load line"
#~ msgstr "nem sikerült a sort beolvasni"
@@ -6317,9 +6418,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgid "IRC commands:\n"
#~ msgstr "IRC parancsok:\n"
-#~ msgid "List of ignore:\n"
-#~ msgstr "Mellőzések listája:\n"
-
#~ msgid "No ignore defined.\n"
#~ msgstr "Nincs mellőzés megadva.\n"
@@ -6404,9 +6502,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgid "%s unable to create server ('%s'), ignored\n"
#~ msgstr "%s nem sikerült a szervert ('%s') létrehozni, mellőzve\n"
-#~ msgid "WeeChat slogan"
-#~ msgstr "WeeChat szlogen"
-
#~ msgid "display nicklist window"
#~ msgstr "névlista ablak mutatása"
@@ -6562,9 +6657,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgid "create a FIFO pipe for remote control"
#~ msgstr "FIFO cső nyitása távoli felügyelethez"
-#~ msgid "list of words to highlight"
-#~ msgstr "kiemelendő szavak listája"
-
#~ msgid "allow user to send colors"
#~ msgstr "színek küldésének engedélyezése"
@@ -6637,9 +6729,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgid "server address or hostname"
#~ msgstr "szerver címe vagy neve"
-#~ msgid "port for IRC server"
-#~ msgstr "IRC szerver portja"
-
#~ msgid "server password"
#~ msgstr "szerver jelszó"
@@ -6667,9 +6756,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#~ msgid "delay (in seconds) after command was executed"
#~ msgstr "szünet (másodpercben) a parancs futtatása után"
-#~ msgid "list of channels to join when connected to server"
-#~ msgstr "szobák listája ahová be akarunk lépni csatlakozás után"
-
#~ msgid "notify levels for channels of this server"
#~ msgstr "emlékeztetési szintek ezen szerver szobáira"
diff --git a/po/ru.po b/po/ru.po
index dba2792e1..38bd3a1e9 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.2.7-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2008-08-29 14:53+0200\n"
+"POT-Creation-Date: 2008-09-02 16:39+0200\n"
"PO-Revision-Date: 2007-09-06 12:44+0200\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1536,6 +1536,21 @@ msgstr ""
msgid "save configuration files when unloading plugins"
msgstr "сохранять конфигурационный файл при выходе"
+msgid "boolean"
+msgstr ""
+
+#, fuzzy
+msgid "integer"
+msgstr "минута"
+
+#, fuzzy
+msgid "string"
+msgstr "Ожидание"
+
+#, fuzzy
+msgid "color"
+msgstr "цвет чата"
+
#, fuzzy, c-format
msgid "%sError: cannot create file \"%s\""
msgstr "%s не могу создать файл \"%s\"\n"
@@ -1876,6 +1891,10 @@ msgstr "сокращение"
msgid "alias_name: name of alias to remove"
msgstr "сокращение: удаляемое сокращение"
+#, fuzzy
+msgid "list of alias"
+msgstr "Список сокращений:\n"
+
#, fuzzy, c-format
msgid "%s: debug enabled"
msgstr "FIFO pipe открыт\n"
@@ -3181,6 +3200,29 @@ msgid_plural "channels"
msgstr[0] "%d канал"
msgstr[1] "%d каналов"
+#, fuzzy
+msgid "1 if string is an IRC channel"
+msgstr "список ников на канале"
+
+#, fuzzy
+msgid "get nick from IRC host"
+msgstr "банит ник или хост"
+
+msgid "get buffer pointer for an IRC server/channel"
+msgstr ""
+
+#, fuzzy
+msgid "list of IRC servers"
+msgstr "порт IRC сервера"
+
+#, fuzzy
+msgid "list of channels for an IRC server"
+msgstr "Список каналов, на которые заходить при соединении с сервером"
+
+#, fuzzy
+msgid "list of nicks for an IRC channel"
+msgstr "список ников на канале"
+
#, fuzzy, c-format
msgid "%s%s: you are not connected to server"
msgstr "%s вы не подключены к серверу\n"
@@ -3931,6 +3973,10 @@ msgstr "**** Конец log-файла"
msgid "===\t========== End of backlog (%d lines) =========="
msgstr ""
+#, fuzzy
+msgid "list of logger buffers"
+msgstr "время в буферах"
+
#, c-format
msgid "notify: debug: set notify for buffer %s to %d (%s)"
msgstr ""
@@ -3966,6 +4012,74 @@ msgid ""
" all: buffer will be in hotlist for any text printed"
msgstr ""
+#, fuzzy
+msgid "WeeChat version"
+msgstr "слоган WeeChat"
+
+#, fuzzy
+msgid "WeeChat compilation date"
+msgstr "Конфигурационный файл сохранён\n"
+
+#, fuzzy
+msgid "directory separator"
+msgstr "цвет разделителя времени"
+
+#, fuzzy
+msgid "WeeChat directory"
+msgstr "Ошибка WeeChat:"
+
+msgid "WeeChat \"lib\" directory"
+msgstr ""
+
+#, fuzzy
+msgid "WeeChat \"share\" directory"
+msgstr "Ошибка WeeChat:"
+
+msgid "WeeChat \"locale\" directory"
+msgstr ""
+
+#, fuzzy
+msgid "terminal charset"
+msgstr "управление буферами"
+
+msgid "WeeChat internal charset"
+msgstr ""
+
+msgid "keyboard inactivity (seconds)"
+msgstr ""
+
+#, fuzzy
+msgid "1 if filters are enabled"
+msgstr "команда users отключена"
+
+#, fuzzy
+msgid "list of buffers"
+msgstr "Список сокращений:\n"
+
+#, fuzzy
+msgid "lines of a buffer"
+msgstr "загрузка буфера не удалась"
+
+#, fuzzy
+msgid "nicks in nicklist for a buffer"
+msgstr "некорректная длина буфера"
+
+#, fuzzy
+msgid "list of windows"
+msgstr "Список игнорирования:\n"
+
+#, fuzzy
+msgid "list of buffers in hotlist"
+msgstr "максимальная длина имён в хотлисте"
+
+#, fuzzy
+msgid "list of options"
+msgstr "настроить параметры конфигурации"
+
+#, fuzzy
+msgid "list of hooks"
+msgstr "Список сокращений:\n"
+
#, fuzzy, c-format
msgid "%sError: unable to load plugin \"%s\": %s"
msgstr "%s не могу загрузить plugin \"%s\": %s\n"
@@ -4561,6 +4675,10 @@ msgstr "автоматически подтверждать dcc-чат (испо
msgid "automatically accept chat requests (use carefully!)"
msgstr "автоматически подтверждать dcc-чат (используйте осторожно!)"
+#, fuzzy
+msgid "list of xfer"
+msgstr "Список сокращений:\n"
+
#, fuzzy, c-format
msgid "%s%s: unable to create pipe"
msgstr "%s DCC: не могу создать pipe\n"
@@ -4664,9 +4782,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgid "wrong type in file (expected: %d, read: %d)"
#~ msgstr "некорректный тип в файле (ожидалось: %d, прочитано: %d)"
-#~ msgid "invalid length for a buffer"
-#~ msgstr "некорректная длина буфера"
-
#~ msgid "object read error"
#~ msgstr "ошибка чтения объекта"
@@ -5092,10 +5207,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgstr "Сокращения не заданы.\n"
#, fuzzy
-#~ msgid "manage charsets"
-#~ msgstr "управление буферами"
-
-#, fuzzy
#~ msgid "%s%s: error creating server for reading configuration file"
#~ msgstr "перезагрузить конфигурационный файл сервера"
@@ -5322,10 +5433,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgstr "%s не могу сохранить конфигурационный файл\n"
#, fuzzy
-#~ msgid "%sWeeChat configuration file saved"
-#~ msgstr "Конфигурационный файл сохранён\n"
-
-#, fuzzy
#~ msgid "%sError: failed to save WeeChat configuration file"
#~ msgstr "%s не могу сохранить конфигурационный файл\n"
@@ -5730,9 +5837,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgstr ""
#~ "Невозможно создать сокращение \"%s\" => \"%s\" (недостаточно памяти)\n"
-#~ msgid "WeeChat Error:"
-#~ msgstr "Ошибка WeeChat:"
-
#~ msgid "WeeChat Warning:"
#~ msgstr "Предупреждение WeeChat:"
@@ -5925,9 +6029,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgid "failed to load history"
#~ msgstr "загрузка истории не удалась"
-#~ msgid "failed to load buffer"
-#~ msgstr "загрузка буфера не удалась"
-
#~ msgid "failed to load line"
#~ msgstr "загрузка строки не удалась"
@@ -6333,9 +6434,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgid "IRC commands:\n"
#~ msgstr "Команды IRC:\n"
-#~ msgid "List of ignore:\n"
-#~ msgstr "Список игнорирования:\n"
-
#~ msgid "No ignore defined.\n"
#~ msgstr "Игнорирования не заданы.\n"
@@ -6422,9 +6520,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgid "%s unable to create server ('%s'), ignored\n"
#~ msgstr "%s не могу создать сервер ('%s'), игнорируется\n"
-#~ msgid "WeeChat slogan"
-#~ msgstr "слоган WeeChat"
-
#~ msgid "display nicklist window"
#~ msgstr "показывать список ников"
@@ -6458,9 +6553,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgid "level for displaying names in hotlist"
#~ msgstr "уровень отображения имён в хотлисте"
-#~ msgid "max length of names in hotlist"
-#~ msgstr "максимальная длина имён в хотлисте"
-
#~ msgid "hotlist sort type"
#~ msgstr "тип сортировки хотлиста"
@@ -6670,9 +6762,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgid "server address or hostname"
#~ msgstr "адрес или хост сервера"
-#~ msgid "port for IRC server"
-#~ msgstr "порт IRC сервера"
-
#~ msgid "server password"
#~ msgstr "пароль сервера"
@@ -6700,9 +6789,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#~ msgid "delay (in seconds) after command was executed"
#~ msgstr "задержка (в секундах) перед выполнением команды"
-#~ msgid "list of channels to join when connected to server"
-#~ msgstr "Список каналов, на которые заходить при соединении с сервером"
-
#~ msgid "notify levels for channels of this server"
#~ msgstr "уровни уведомления для каналов этого сервера"
diff --git a/po/weechat.pot b/po/weechat.pot
index 65197ff32..6d5b181d0 100644
--- a/po/weechat.pot
+++ b/po/weechat.pot
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2008-08-29 14:53+0200\n"
+"POT-Creation-Date: 2008-09-02 16:39+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1255,6 +1255,18 @@ msgstr ""
msgid "save configuration files when unloading plugins"
msgstr ""
+msgid "boolean"
+msgstr ""
+
+msgid "integer"
+msgstr ""
+
+msgid "string"
+msgstr ""
+
+msgid "color"
+msgstr ""
+
#, c-format
msgid "%sError: cannot create file \"%s\""
msgstr ""
@@ -1561,6 +1573,9 @@ msgstr ""
msgid "alias_name: name of alias to remove"
msgstr ""
+msgid "list of alias"
+msgstr ""
+
#, c-format
msgid "%s: debug enabled"
msgstr ""
@@ -2664,6 +2679,24 @@ msgid_plural "channels"
msgstr[0] ""
msgstr[1] ""
+msgid "1 if string is an IRC channel"
+msgstr ""
+
+msgid "get nick from IRC host"
+msgstr ""
+
+msgid "get buffer pointer for an IRC server/channel"
+msgstr ""
+
+msgid "list of IRC servers"
+msgstr ""
+
+msgid "list of channels for an IRC server"
+msgstr ""
+
+msgid "list of nicks for an IRC channel"
+msgstr ""
+
#, c-format
msgid "%s%s: you are not connected to server"
msgstr ""
@@ -3405,6 +3438,9 @@ msgstr ""
msgid "===\t========== End of backlog (%d lines) =========="
msgstr ""
+msgid "list of logger buffers"
+msgstr ""
+
#, c-format
msgid "notify: debug: set notify for buffer %s to %d (%s)"
msgstr ""
@@ -3439,6 +3475,60 @@ msgid ""
" all: buffer will be in hotlist for any text printed"
msgstr ""
+msgid "WeeChat version"
+msgstr ""
+
+msgid "WeeChat compilation date"
+msgstr ""
+
+msgid "directory separator"
+msgstr ""
+
+msgid "WeeChat directory"
+msgstr ""
+
+msgid "WeeChat \"lib\" directory"
+msgstr ""
+
+msgid "WeeChat \"share\" directory"
+msgstr ""
+
+msgid "WeeChat \"locale\" directory"
+msgstr ""
+
+msgid "terminal charset"
+msgstr ""
+
+msgid "WeeChat internal charset"
+msgstr ""
+
+msgid "keyboard inactivity (seconds)"
+msgstr ""
+
+msgid "1 if filters are enabled"
+msgstr ""
+
+msgid "list of buffers"
+msgstr ""
+
+msgid "lines of a buffer"
+msgstr ""
+
+msgid "nicks in nicklist for a buffer"
+msgstr ""
+
+msgid "list of windows"
+msgstr ""
+
+msgid "list of buffers in hotlist"
+msgstr ""
+
+msgid "list of options"
+msgstr ""
+
+msgid "list of hooks"
+msgstr ""
+
#, c-format
msgid "%sError: unable to load plugin \"%s\": %s"
msgstr ""
@@ -3974,6 +4064,9 @@ msgstr ""
msgid "automatically accept chat requests (use carefully!)"
msgstr ""
+msgid "list of xfer"
+msgstr ""
+
#, c-format
msgid "%s%s: unable to create pipe"
msgstr ""
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c
index fc136bc60..a972cd5c6 100644
--- a/src/core/wee-config-file.c
+++ b/src/core/wee-config-file.c
@@ -45,7 +45,7 @@ struct t_config_file *config_files = NULL;
struct t_config_file *last_config_file = NULL;
char *config_option_type_string[CONFIG_NUM_OPTION_TYPES] =
-{ "boolean", "integer", "string", "color" };
+{ N_("boolean"), N_("integer"), N_("string"), N_("color") };
char *config_boolean_true[] = { "on", "yes", "y", "true", "t", "1", NULL };
char *config_boolean_false[] = { "off", "no", "n", "false", "f", "0", NULL };
@@ -2182,16 +2182,16 @@ config_file_add_to_infolist (struct t_infolist *infolist,
}
if (!infolist_new_var_string (ptr_item,
"description",
- (ptr_option->description
- && ptr_option->description[0]) ?
- _(ptr_option->description) : ""))
+ ptr_option->description))
{
free (option_full_name);
return 0;
}
if (!infolist_new_var_string (ptr_item,
- "description_en",
- ptr_option->description))
+ "description_nls",
+ (ptr_option->description
+ && ptr_option->description[0]) ?
+ _(ptr_option->description) : ""))
{
free (option_full_name);
return 0;
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index e441b620f..d059c6d25 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -1331,6 +1331,7 @@ hook_modifier_exec (struct t_weechat_plugin *plugin, const char *modifier,
struct t_hook *
hook_info (struct t_weechat_plugin *plugin, const char *info_name,
+ const char *description,
t_hook_callback_info *callback, void *callback_data)
{
struct t_hook *new_hook;
@@ -1354,6 +1355,8 @@ hook_info (struct t_weechat_plugin *plugin, const char *info_name,
new_hook->hook_data = new_hook_info;
new_hook_info->callback = callback;
new_hook_info->info_name = strdup (info_name);
+ new_hook_info->description = (description) ?
+ strdup (description) : strdup ("");
hook_add_to_list (new_hook);
@@ -1413,6 +1416,7 @@ hook_info_get (struct t_weechat_plugin *plugin, const char *info_name,
struct t_hook *
hook_infolist (struct t_weechat_plugin *plugin, const char *infolist_name,
+ const char *description,
t_hook_callback_infolist *callback, void *callback_data)
{
struct t_hook *new_hook;
@@ -1436,6 +1440,8 @@ hook_infolist (struct t_weechat_plugin *plugin, const char *infolist_name,
new_hook->hook_data = new_hook_infolist;
new_hook_infolist->callback = callback;
new_hook_infolist->infolist_name = strdup (infolist_name);
+ new_hook_infolist->description = (description) ?
+ strdup (description) : strdup ("");
hook_add_to_list (new_hook);
@@ -1706,26 +1712,26 @@ hook_add_to_infolist_type (struct t_infolist *infolist,
return 0;
if (!infolist_new_var_integer (ptr_item, "level", HOOK_COMMAND(ptr_hook, level)))
return 0;
- if (!infolist_new_var_string (ptr_item, "description_en",
+ if (!infolist_new_var_string (ptr_item, "description",
HOOK_COMMAND(ptr_hook, description)))
return 0;
- if (!infolist_new_var_string (ptr_item, "description",
+ if (!infolist_new_var_string (ptr_item, "description_nls",
(HOOK_COMMAND(ptr_hook, description)
&& HOOK_COMMAND(ptr_hook, description)[0]) ?
_(HOOK_COMMAND(ptr_hook, description)) : ""))
return 0;
- if (!infolist_new_var_string (ptr_item, "args_en",
+ if (!infolist_new_var_string (ptr_item, "args",
HOOK_COMMAND(ptr_hook, args)))
return 0;
- if (!infolist_new_var_string (ptr_item, "args",
+ if (!infolist_new_var_string (ptr_item, "args_nls",
(HOOK_COMMAND(ptr_hook, args)
&& HOOK_COMMAND(ptr_hook, args)[0]) ?
_(HOOK_COMMAND(ptr_hook, args)) : ""))
return 0;
- if (!infolist_new_var_string (ptr_item, "args_description_en",
+ if (!infolist_new_var_string (ptr_item, "args_description",
HOOK_COMMAND(ptr_hook, args_description)))
return 0;
- if (!infolist_new_var_string (ptr_item, "args_description",
+ if (!infolist_new_var_string (ptr_item, "args_description_nls",
(HOOK_COMMAND(ptr_hook, args_description)
&& HOOK_COMMAND(ptr_hook, args_description)[0]) ?
_(HOOK_COMMAND(ptr_hook, args_description)) : ""))
@@ -1854,6 +1860,13 @@ hook_add_to_infolist_type (struct t_infolist *infolist,
return 0;
if (!infolist_new_var_string (ptr_item, "info_name", HOOK_INFO(ptr_hook, info_name)))
return 0;
+ if (!infolist_new_var_string (ptr_item, "description", HOOK_INFO(ptr_hook, description)))
+ return 0;
+ if (!infolist_new_var_string (ptr_item, "description_nls",
+ (HOOK_INFO(ptr_hook, description)
+ && HOOK_INFO(ptr_hook, description)[0]) ?
+ _(HOOK_INFO(ptr_hook, description)) : ""))
+ return 0;
}
break;
case HOOK_TYPE_INFOLIST:
@@ -1863,6 +1876,13 @@ hook_add_to_infolist_type (struct t_infolist *infolist,
return 0;
if (!infolist_new_var_string (ptr_item, "infolist_name", HOOK_INFOLIST(ptr_hook, infolist_name)))
return 0;
+ if (!infolist_new_var_string (ptr_item, "description", HOOK_INFOLIST(ptr_hook, description)))
+ return 0;
+ if (!infolist_new_var_string (ptr_item, "description_nls",
+ (HOOK_INFOLIST(ptr_hook, description)
+ && HOOK_INFOLIST(ptr_hook, description)[0]) ?
+ _(HOOK_INFOLIST(ptr_hook, description)) : ""))
+ return 0;
}
break;
case HOOK_NUM_TYPES:
@@ -2043,6 +2063,7 @@ hook_print_log ()
log_printf (" info data:");
log_printf (" callback . . . . . . : 0x%x", HOOK_INFO(ptr_hook, callback));
log_printf (" info_name. . . . . . : '%s'", HOOK_INFO(ptr_hook, info_name));
+ log_printf (" description. . . . . : '%s'", HOOK_INFO(ptr_hook, description));
}
break;
case HOOK_TYPE_INFOLIST:
@@ -2051,6 +2072,7 @@ hook_print_log ()
log_printf (" infolist data:");
log_printf (" callback . . . . . . : 0x%x", HOOK_INFOLIST(ptr_hook, callback));
log_printf (" infolist_name. . . . : '%s'", HOOK_INFOLIST(ptr_hook, infolist_name));
+ log_printf (" description. . . . . : '%s'", HOOK_INFOLIST(ptr_hook, description));
}
break;
case HOOK_NUM_TYPES:
diff --git a/src/core/wee-hook.h b/src/core/wee-hook.h
index 9faf49a81..566e4a119 100644
--- a/src/core/wee-hook.h
+++ b/src/core/wee-hook.h
@@ -202,6 +202,7 @@ struct t_hook_info
{
t_hook_callback_info *callback; /* info callback */
char *info_name; /* name of info returned */
+ char *description; /* description */
};
typedef struct t_infolist *(t_hook_callback_infolist)(void *data,
@@ -213,6 +214,7 @@ struct t_hook_infolist
{
t_hook_callback_infolist *callback; /* infolist callback */
char *infolist_name; /* name of infolist returned */
+ char *description; /* description */
};
/* hook variables */
@@ -297,6 +299,7 @@ extern char *hook_modifier_exec (struct t_weechat_plugin *plugin,
const char *string);
extern struct t_hook *hook_info (struct t_weechat_plugin *plugin,
const char *info_name,
+ const char *description,
t_hook_callback_info *callback,
void *callback_data);
extern char *hook_info_get (struct t_weechat_plugin *plugin,
@@ -304,6 +307,7 @@ extern char *hook_info_get (struct t_weechat_plugin *plugin,
const char *arguments);
extern struct t_hook *hook_infolist (struct t_weechat_plugin *plugin,
const char *infolist_name,
+ const char *description,
t_hook_callback_infolist *callback,
void *callback_data);
extern struct t_infolist *hook_infolist_get (struct t_weechat_plugin *plugin,
diff --git a/src/plugins/alias/alias-info.c b/src/plugins/alias/alias-info.c
index 829d228e1..2a8e7a2e9 100644
--- a/src/plugins/alias/alias-info.c
+++ b/src/plugins/alias/alias-info.c
@@ -89,5 +89,6 @@ void
alias_info_init ()
{
/* alias infolist hooks */
- weechat_hook_infolist ("alias", &alias_info_get_infolist_cb, NULL);
+ weechat_hook_infolist ("alias", N_("list of alias"),
+ &alias_info_get_infolist_cb, NULL);
}
diff --git a/src/plugins/fifo/fifo-info.c b/src/plugins/fifo/fifo-info.c
index e9f46f5a6..20a4df336 100644
--- a/src/plugins/fifo/fifo-info.c
+++ b/src/plugins/fifo/fifo-info.c
@@ -53,5 +53,6 @@ void
fifo_info_init ()
{
/* fifo info hooks */
- weechat_hook_info ("fifo_filename", &fifo_info_get_info_cb, NULL);
+ weechat_hook_info ("fifo_filename", N_("fifo filename"),
+ &fifo_info_get_info_cb, NULL);
}
diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c
index f70f031c5..ec654a549 100644
--- a/src/plugins/irc/irc-info.c
+++ b/src/plugins/irc/irc-info.c
@@ -326,12 +326,18 @@ void
irc_info_init ()
{
/* irc info hooks */
- weechat_hook_info ("irc_is_channel", &irc_info_get_info_cb, NULL);
- weechat_hook_info ("irc_nick_from_host", &irc_info_get_info_cb, NULL);
- weechat_hook_info ("irc_buffer", &irc_info_get_info_cb, NULL);
+ weechat_hook_info ("irc_is_channel", N_("1 if string is an IRC channel"),
+ &irc_info_get_info_cb, NULL);
+ weechat_hook_info ("irc_nick_from_host", N_("get nick from IRC host"),
+ &irc_info_get_info_cb, NULL);
+ weechat_hook_info ("irc_buffer", N_("get buffer pointer for an IRC server/channel"),
+ &irc_info_get_info_cb, NULL);
/* irc infolist hooks */
- weechat_hook_infolist ("irc_server", &irc_info_get_infolist_cb, NULL);
- weechat_hook_infolist ("irc_channel", &irc_info_get_infolist_cb, NULL);
- weechat_hook_infolist ("irc_nick", &irc_info_get_infolist_cb, NULL);
+ weechat_hook_infolist ("irc_server", N_("list of IRC servers"),
+ &irc_info_get_infolist_cb, NULL);
+ weechat_hook_infolist ("irc_channel", N_("list of channels for an IRC server"),
+ &irc_info_get_infolist_cb, NULL);
+ weechat_hook_infolist ("irc_nick", N_("list of nicks for an IRC channel"),
+ &irc_info_get_infolist_cb, NULL);
}
diff --git a/src/plugins/logger/logger-info.c b/src/plugins/logger/logger-info.c
index 0e75f7eb6..58266fe0f 100644
--- a/src/plugins/logger/logger-info.c
+++ b/src/plugins/logger/logger-info.c
@@ -92,5 +92,6 @@ void
logger_info_init ()
{
/* irc infolist hooks */
- weechat_hook_infolist ("logger_buffer", &logger_info_get_infolist_cb, NULL);
+ weechat_hook_infolist ("logger_buffer", N_("list of logger buffers"),
+ &logger_info_get_infolist_cb, NULL);
}
diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c
index 95bbb039e..c1ce8e414 100644
--- a/src/plugins/plugin-api.c
+++ b/src/plugins/plugin-api.c
@@ -675,25 +675,42 @@ void
plugin_api_init ()
{
/* WeeChat core info hooks */
- hook_info (NULL, "version", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "date", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "dir_separator", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "weechat_dir", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "weechat_libdir", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "weechat_sharedir", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "weechat_localedir", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "charset_terminal", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "charset_internal", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "inactivity", &plugin_api_info_get_internal, NULL);
- hook_info (NULL, "filters_enabled", &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "version", N_("WeeChat version"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "date", N_("WeeChat compilation date"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "dir_separator", N_("directory separator"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "weechat_dir", N_("WeeChat directory"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "weechat_libdir", N_("WeeChat \"lib\" directory"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "weechat_sharedir", N_("WeeChat \"share\" directory"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "weechat_localedir", N_("WeeChat \"locale\" directory"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "charset_terminal", N_("terminal charset"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "charset_internal", N_("WeeChat internal charset"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "inactivity", N_("keyboard inactivity (seconds)"),
+ &plugin_api_info_get_internal, NULL);
+ hook_info (NULL, "filters_enabled", N_("1 if filters are enabled"),
+ &plugin_api_info_get_internal, NULL);
/* WeeChat core infolist hooks */
- hook_infolist (NULL, "buffer", &plugin_api_infolist_get_internal, NULL);
- hook_infolist (NULL, "buffer_lines", &plugin_api_infolist_get_internal, NULL);
- hook_infolist (NULL, "buffer", &plugin_api_infolist_get_internal, NULL);
- hook_infolist (NULL, "nicklist", &plugin_api_infolist_get_internal, NULL);
- hook_infolist (NULL, "window", &plugin_api_infolist_get_internal, NULL);
- hook_infolist (NULL, "hotlist", &plugin_api_infolist_get_internal, NULL);
- hook_infolist (NULL, "option", &plugin_api_infolist_get_internal, NULL);
- hook_infolist (NULL, "hook", &plugin_api_infolist_get_internal, NULL);
+ hook_infolist (NULL, "buffer", N_("list of buffers"),
+ &plugin_api_infolist_get_internal, NULL);
+ hook_infolist (NULL, "buffer_lines", N_("lines of a buffer"),
+ &plugin_api_infolist_get_internal, NULL);
+ hook_infolist (NULL, "nicklist", N_("nicks in nicklist for a buffer"),
+ &plugin_api_infolist_get_internal, NULL);
+ hook_infolist (NULL, "window", N_("list of windows"),
+ &plugin_api_infolist_get_internal, NULL);
+ hook_infolist (NULL, "hotlist", N_("list of buffers in hotlist"),
+ &plugin_api_infolist_get_internal, NULL);
+ hook_infolist (NULL, "option", N_("list of options"),
+ &plugin_api_infolist_get_internal, NULL);
+ hook_infolist (NULL, "hook", N_("list of hooks"),
+ &plugin_api_infolist_get_internal, NULL);
}
diff --git a/src/plugins/scripts/lua/weechat-lua-api.c b/src/plugins/scripts/lua/weechat-lua-api.c
index 3b6c05323..9f4f1dd12 100644
--- a/src/plugins/scripts/lua/weechat-lua-api.c
+++ b/src/plugins/scripts/lua/weechat-lua-api.c
@@ -3105,7 +3105,7 @@ weechat_lua_api_hook_info_cb (void *data, const char *info_name,
static int
weechat_lua_api_hook_info (lua_State *L)
{
- const char *info_name, *function;
+ const char *info_name, *description, *function;
char *result;
int n;
@@ -3123,18 +3123,20 @@ weechat_lua_api_hook_info (lua_State *L)
n = lua_gettop (lua_current_interpreter);
- if (n < 2)
+ if (n < 3)
{
WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("hook_info");
LUA_RETURN_EMPTY;
}
- info_name = lua_tostring (lua_current_interpreter, -2);
+ info_name = lua_tostring (lua_current_interpreter, -3);
+ description = lua_tostring (lua_current_interpreter, -2);
function = lua_tostring (lua_current_interpreter, -1);
result = script_ptr2str (script_api_hook_info (weechat_lua_plugin,
lua_current_script,
info_name,
+ description,
&weechat_lua_api_hook_info_cb,
function));
@@ -3178,7 +3180,7 @@ weechat_lua_api_hook_infolist_cb (void *data, const char *info_name,
static int
weechat_lua_api_hook_infolist (lua_State *L)
{
- const char *infolist_name, *function;
+ const char *infolist_name, *description, *function;
char *result;
int n;
@@ -3196,18 +3198,20 @@ weechat_lua_api_hook_infolist (lua_State *L)
n = lua_gettop (lua_current_interpreter);
- if (n < 2)
+ if (n < 3)
{
WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("hook_infolist");
LUA_RETURN_EMPTY;
}
- infolist_name = lua_tostring (lua_current_interpreter, -2);
+ infolist_name = lua_tostring (lua_current_interpreter, -3);
+ description = lua_tostring (lua_current_interpreter, -2);
function = lua_tostring (lua_current_interpreter, -1);
result = script_ptr2str (script_api_hook_infolist (weechat_lua_plugin,
lua_current_script,
infolist_name,
+ description,
&weechat_lua_api_hook_infolist_cb,
function));
diff --git a/src/plugins/scripts/perl/weechat-perl-api.c b/src/plugins/scripts/perl/weechat-perl-api.c
index d5257267e..c7842db10 100644
--- a/src/plugins/scripts/perl/weechat-perl-api.c
+++ b/src/plugins/scripts/perl/weechat-perl-api.c
@@ -2597,7 +2597,7 @@ weechat_perl_api_hook_info_cb (void *data, const char *info_name,
static XS (XS_weechat_hook_info)
{
- char *result, *info_name, *perl_fn;
+ char *result, *info_name, *description, *perl_fn;
dXSARGS;
/* make C compiler happy */
@@ -2609,17 +2609,19 @@ static XS (XS_weechat_hook_info)
PERL_RETURN_EMPTY;
}
- if (items < 2)
+ if (items < 3)
{
WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("hook_info");
PERL_RETURN_EMPTY;
}
info_name = SvPV (ST (0), PL_na);
- perl_fn = SvPV (ST (1), PL_na);
+ description = SvPV (ST (1), PL_na);
+ perl_fn = SvPV (ST (2), PL_na);
result = script_ptr2str (script_api_hook_info (weechat_perl_plugin,
perl_current_script,
info_name,
+ description,
&weechat_perl_api_hook_info_cb,
perl_fn));
@@ -2662,7 +2664,7 @@ weechat_perl_api_hook_infolist_cb (void *data, const char *infolist_name,
static XS (XS_weechat_hook_infolist)
{
- char *result, *infolist_name, *perl_fn;
+ char *result, *infolist_name, *description, *perl_fn;
dXSARGS;
/* make C compiler happy */
@@ -2674,17 +2676,19 @@ static XS (XS_weechat_hook_infolist)
PERL_RETURN_EMPTY;
}
- if (items < 2)
+ if (items < 3)
{
WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("hook_infolist");
PERL_RETURN_EMPTY;
}
infolist_name = SvPV (ST (0), PL_na);
- perl_fn = SvPV (ST (1), PL_na);
+ description = SvPV (ST (1), PL_na);
+ perl_fn = SvPV (ST (2), PL_na);
result = script_ptr2str (script_api_hook_infolist (weechat_perl_plugin,
perl_current_script,
infolist_name,
+ description,
&weechat_perl_api_hook_infolist_cb,
perl_fn));
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c
index 2ff23794c..64e788f99 100644
--- a/src/plugins/scripts/python/weechat-python-api.c
+++ b/src/plugins/scripts/python/weechat-python-api.c
@@ -2754,7 +2754,7 @@ weechat_python_api_hook_info_cb (void *data, const char *info_name,
static PyObject *
weechat_python_api_hook_info (PyObject *self, PyObject *args)
{
- char *info_name, *function, *result;
+ char *info_name, *description, *function, *result;
PyObject *object;
/* make C compiler happy */
@@ -2767,9 +2767,10 @@ weechat_python_api_hook_info (PyObject *self, PyObject *args)
}
info_name = NULL;
+ description = NULL;
function = NULL;
- if (!PyArg_ParseTuple (args, "ss", &info_name, &function))
+ if (!PyArg_ParseTuple (args, "sss", &info_name, &description, &function))
{
WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("hook_info");
PYTHON_RETURN_EMPTY;
@@ -2778,6 +2779,7 @@ weechat_python_api_hook_info (PyObject *self, PyObject *args)
result = script_ptr2str(script_api_hook_info (weechat_python_plugin,
python_current_script,
info_name,
+ description,
&weechat_python_api_hook_info_cb,
function));
@@ -2821,7 +2823,7 @@ weechat_python_api_hook_infolist_cb (void *data, const char *infolist_name,
static PyObject *
weechat_python_api_hook_infolist (PyObject *self, PyObject *args)
{
- char *infolist_name, *function, *result;
+ char *infolist_name, *description, *function, *result;
PyObject *object;
/* make C compiler happy */
@@ -2834,9 +2836,10 @@ weechat_python_api_hook_infolist (PyObject *self, PyObject *args)
}
infolist_name = NULL;
+ description = NULL;
function = NULL;
- if (!PyArg_ParseTuple (args, "ss", &infolist_name, &function))
+ if (!PyArg_ParseTuple (args, "sss", &infolist_name, &description, &function))
{
WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("hook_infolist");
PYTHON_RETURN_EMPTY;
@@ -2845,6 +2848,7 @@ weechat_python_api_hook_infolist (PyObject *self, PyObject *args)
result = script_ptr2str(script_api_hook_infolist (weechat_python_plugin,
python_current_script,
infolist_name,
+ description,
&weechat_python_api_hook_infolist_cb,
function));
diff --git a/src/plugins/scripts/ruby/weechat-ruby-api.c b/src/plugins/scripts/ruby/weechat-ruby-api.c
index 25a1e2cb4..81987d1dc 100644
--- a/src/plugins/scripts/ruby/weechat-ruby-api.c
+++ b/src/plugins/scripts/ruby/weechat-ruby-api.c
@@ -3162,9 +3162,10 @@ weechat_ruby_api_hook_info_cb (void *data, const char *info_name,
*/
static VALUE
-weechat_ruby_api_hook_info (VALUE class, VALUE info_name, VALUE function)
+weechat_ruby_api_hook_info (VALUE class, VALUE info_name, VALUE description,
+ VALUE function)
{
- char *c_info_name, *c_function, *result;
+ char *c_info_name, *c_description, *c_function, *result;
VALUE return_value;
/* make C compiler happy */
@@ -3177,23 +3178,27 @@ weechat_ruby_api_hook_info (VALUE class, VALUE info_name, VALUE function)
}
c_info_name = NULL;
+ c_description = NULL;
c_function = NULL;
- if (NIL_P (info_name) || NIL_P (function))
+ if (NIL_P (info_name) || NIL_P (description) || NIL_P (function))
{
WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("hook_info");
RUBY_RETURN_EMPTY;
}
Check_Type (info_name, T_STRING);
+ Check_Type (description, T_STRING);
Check_Type (function, T_STRING);
c_info_name = STR2CSTR (info_name);
+ c_description = STR2CSTR (description);
c_function = STR2CSTR (function);
result = script_ptr2str (script_api_hook_info (weechat_ruby_plugin,
ruby_current_script,
c_info_name,
+ c_description,
&weechat_ruby_api_hook_info_cb,
c_function));
@@ -3235,9 +3240,10 @@ weechat_ruby_api_hook_infolist_cb (void *data, const char *infolist_name,
*/
static VALUE
-weechat_ruby_api_hook_infolist (VALUE class, VALUE infolist_name, VALUE function)
+weechat_ruby_api_hook_infolist (VALUE class, VALUE infolist_name,
+ VALUE description, VALUE function)
{
- char *c_infolist_name, *c_function, *result;
+ char *c_infolist_name, *c_description, *c_function, *result;
VALUE return_value;
/* make C compiler happy */
@@ -3250,23 +3256,27 @@ weechat_ruby_api_hook_infolist (VALUE class, VALUE infolist_name, VALUE function
}
c_infolist_name = NULL;
+ c_description = NULL;
c_function = NULL;
- if (NIL_P (infolist_name) || NIL_P (function))
+ if (NIL_P (infolist_name) || NIL_P (description) || NIL_P (function))
{
WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("hook_infolist");
RUBY_RETURN_EMPTY;
}
Check_Type (infolist_name, T_STRING);
+ Check_Type (description, T_STRING);
Check_Type (function, T_STRING);
c_infolist_name = STR2CSTR (infolist_name);
+ c_description = STR2CSTR (description);
c_function = STR2CSTR (function);
result = script_ptr2str (script_api_hook_infolist (weechat_ruby_plugin,
ruby_current_script,
c_infolist_name,
+ c_description,
&weechat_ruby_api_hook_infolist_cb,
c_function));
@@ -4964,8 +4974,8 @@ weechat_ruby_api_init (VALUE ruby_mWeechat)
rb_define_module_function (ruby_mWeechat, "hook_completion_list_add", &weechat_ruby_api_hook_completion_list_add, 4);
rb_define_module_function (ruby_mWeechat, "hook_modifier", &weechat_ruby_api_hook_modifier, 2);
rb_define_module_function (ruby_mWeechat, "hook_modifier_exec", &weechat_ruby_api_hook_modifier_exec, 3);
- rb_define_module_function (ruby_mWeechat, "hook_info", &weechat_ruby_api_hook_info, 2);
- rb_define_module_function (ruby_mWeechat, "hook_infolist", &weechat_ruby_api_hook_infolist, 2);
+ rb_define_module_function (ruby_mWeechat, "hook_info", &weechat_ruby_api_hook_info, 3);
+ rb_define_module_function (ruby_mWeechat, "hook_infolist", &weechat_ruby_api_hook_infolist, 3);
rb_define_module_function (ruby_mWeechat, "unhook", &weechat_ruby_api_unhook, 1);
rb_define_module_function (ruby_mWeechat, "unhook_all", &weechat_ruby_api_unhook_all, 0);
rb_define_module_function (ruby_mWeechat, "buffer_new", &weechat_ruby_api_buffer_new, 4);
diff --git a/src/plugins/scripts/script-api.c b/src/plugins/scripts/script-api.c
index baeab5559..d304e40ec 100644
--- a/src/plugins/scripts/script-api.c
+++ b/src/plugins/scripts/script-api.c
@@ -884,6 +884,7 @@ struct t_hook *
script_api_hook_info (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script *script,
const char *info_name,
+ const char *description,
char *(*callback)(void *data,
const char *info_name,
const char *arguments),
@@ -896,7 +897,8 @@ script_api_hook_info (struct t_weechat_plugin *weechat_plugin,
if (!new_script_callback)
return NULL;
- new_hook = weechat_hook_info (info_name, callback, new_script_callback);
+ new_hook = weechat_hook_info (info_name, description,
+ callback, new_script_callback);
if (!new_hook)
{
script_callback_free_data (new_script_callback);
@@ -922,6 +924,7 @@ struct t_hook *
script_api_hook_infolist (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script *script,
const char *infolist_name,
+ const char *description,
struct t_infolist *(*callback)(void *data,
const char *infolist_name,
void *pointer,
@@ -935,7 +938,7 @@ script_api_hook_infolist (struct t_weechat_plugin *weechat_plugin,
if (!new_script_callback)
return NULL;
- new_hook = weechat_hook_infolist (infolist_name,
+ new_hook = weechat_hook_infolist (infolist_name, description,
callback, new_script_callback);
if (!new_hook)
{
diff --git a/src/plugins/scripts/script-api.h b/src/plugins/scripts/script-api.h
index f437275b5..1c09892a8 100644
--- a/src/plugins/scripts/script-api.h
+++ b/src/plugins/scripts/script-api.h
@@ -153,6 +153,7 @@ extern struct t_hook *script_api_hook_modifier (struct t_weechat_plugin *weechat
extern struct t_hook *script_api_hook_info (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script *script,
const char *info_name,
+ const char *description,
char *(*callback)(void *data,
const char *info_name,
const char *arguments),
@@ -160,6 +161,7 @@ extern struct t_hook *script_api_hook_info (struct t_weechat_plugin *weechat_plu
extern struct t_hook *script_api_hook_infolist (struct t_weechat_plugin *weechat_plugin,
struct t_plugin_script *script,
const char *infolist_name,
+ const char *description,
struct t_infolist *(*callback)(void *data,
const char *infolist_name,
void *pointer,
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index 058ff2e02..a3a77616b 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/weechat-plugin.h
@@ -370,12 +370,14 @@ struct t_weechat_plugin
const char *string);
struct t_hook *(*hook_info) (struct t_weechat_plugin *plugin,
const char *info_name,
+ const char *description,
char *(*callback)(void *data,
const char *info_name,
const char *arguments),
void *callback_data);
struct t_hook *(*hook_infolist) (struct t_weechat_plugin *plugin,
const char *infolist_name,
+ const char *description,
struct t_infolist *(*callback)(void *data,
const char *infolist_name,
void *pointer,
@@ -836,12 +838,14 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
__string) \
weechat_plugin->hook_modifier_exec(weechat_plugin, __modifier, \
__modifier_data, __string)
-#define weechat_hook_info(__info_name, __callback, __data) \
+#define weechat_hook_info(__info_name, __description, __callback, \
+ __data) \
weechat_plugin->hook_info(weechat_plugin, __info_name, \
- __callback, __data)
-#define weechat_hook_infolist(__infolist_name, __callback, __data) \
+ __description, __callback, __data)
+#define weechat_hook_infolist(__infolist_name, __description, \
+ __callback, __data) \
weechat_plugin->hook_infolist(weechat_plugin, __infolist_name, \
- __callback, __data)
+ __description, __callback, __data)
#define weechat_unhook(__hook) \
weechat_plugin->unhook( __hook)
#define weechat_unhook_all() \
diff --git a/src/plugins/xfer/xfer-info.c b/src/plugins/xfer/xfer-info.c
index 762c5cba3..1472adf5c 100644
--- a/src/plugins/xfer/xfer-info.c
+++ b/src/plugins/xfer/xfer-info.c
@@ -90,5 +90,6 @@ void
xfer_info_init ()
{
/* xfer infolist hooks */
- weechat_hook_infolist ("xfer", &xfer_info_get_infolist_cb, NULL);
+ weechat_hook_infolist ("xfer", N_("list of xfer"),
+ &xfer_info_get_infolist_cb, NULL);
}