summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/de/autogen/plugin_api/infolists.txt2
-rw-r--r--doc/en/autogen/plugin_api/infolists.txt2
-rw-r--r--doc/fr/autogen/plugin_api/infolists.txt2
-rw-r--r--doc/it/autogen/plugin_api/infolists.txt2
-rw-r--r--po/cs.po5
-rw-r--r--po/de.po5
-rw-r--r--po/es.po5
-rw-r--r--po/fr.po7
-rw-r--r--po/hu.po5
-rw-r--r--po/it.po5
-rw-r--r--po/pl.po5
-rw-r--r--po/pt_BR.po5
-rw-r--r--po/ru.po5
-rw-r--r--po/weechat.pot5
-rw-r--r--src/plugins/plugin-api.c7
15 files changed, 50 insertions, 17 deletions
diff --git a/doc/de/autogen/plugin_api/infolists.txt b/doc/de/autogen/plugin_api/infolists.txt
index b4ef4bc99..86f757951 100644
--- a/doc/de/autogen/plugin_api/infolists.txt
+++ b/doc/de/autogen/plugin_api/infolists.txt
@@ -48,7 +48,7 @@
| weechat | hotlist | Liste der Buffer in Hotlist | - | -
-| weechat | key | Auflistung der Tastenzuweisungen | - | -
+| weechat | key | Auflistung der Tastenzuweisungen | - | context ("default" or "search") (optional)
| weechat | nicklist | Nicks in Nickliste für einen Buffer | Buffer Pointer | nick_xxx oder group_xxx um nur den Nick/Group xxx abzufragen (optional)
diff --git a/doc/en/autogen/plugin_api/infolists.txt b/doc/en/autogen/plugin_api/infolists.txt
index bd1d9d422..237da84da 100644
--- a/doc/en/autogen/plugin_api/infolists.txt
+++ b/doc/en/autogen/plugin_api/infolists.txt
@@ -48,7 +48,7 @@
| weechat | hotlist | list of buffers in hotlist | - | -
-| weechat | key | list of key bindings | - | -
+| weechat | key | list of key bindings | - | context ("default" or "search") (optional)
| weechat | nicklist | nicks in nicklist for a buffer | buffer pointer | nick_xxx or group_xxx to get only nick/group xxx (optional)
diff --git a/doc/fr/autogen/plugin_api/infolists.txt b/doc/fr/autogen/plugin_api/infolists.txt
index 363dcb4cf..0244c2c61 100644
--- a/doc/fr/autogen/plugin_api/infolists.txt
+++ b/doc/fr/autogen/plugin_api/infolists.txt
@@ -48,7 +48,7 @@
| weechat | hotlist | liste des tampons dans la hotlist | - | -
-| weechat | key | liste des associations de touches | - | -
+| weechat | key | liste des associations de touches | - | contexte ("default" ou "search") (optionnel)
| weechat | nicklist | pseudos dans la liste des pseudos pour un tampon | pointeur vers le tampon | nick_xxx ou group_xxx pour avoir seulement le pseudo/groupe xxx (optionnel)
diff --git a/doc/it/autogen/plugin_api/infolists.txt b/doc/it/autogen/plugin_api/infolists.txt
index 696aa85b2..e06ad235a 100644
--- a/doc/it/autogen/plugin_api/infolists.txt
+++ b/doc/it/autogen/plugin_api/infolists.txt
@@ -48,7 +48,7 @@
| weechat | hotlist | elenco dei buffer nella hotlist | - | -
-| weechat | key | elenco di tasti associati | - | -
+| weechat | key | elenco di tasti associati | - | context ("default" or "search") (optional)
| weechat | nicklist | nick nella lista nick per un buffer | puntatore al buffer | nick_xxx o group_xxx per ottenere solo xxx di nick/group (opzionale)
diff --git a/po/cs.po b/po/cs.po
index 9e6bb0269..7773a8230 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+0200\n"
"PO-Revision-Date: 2011-07-05 15:37+0200\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6612,6 +6612,9 @@ msgstr "seznam bufferů v hotlistu"
msgid "list of key bindings"
msgstr "seznam napojení kláves"
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr ""
+
msgid "nicks in nicklist for a buffer"
msgstr "přezdívky v seznamu přezdívek bufferu"
diff --git a/po/de.po b/po/de.po
index 506f6b484..701f458f8 100644
--- a/po/de.po
+++ b/po/de.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+0200\n"
"PO-Revision-Date: 2011-07-05 15:37+0200\n"
"Last-Translator: Nils G.\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6898,6 +6898,9 @@ msgstr "Liste der Buffer in Hotlist"
msgid "list of key bindings"
msgstr "Auflistung der Tastenzuweisungen"
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr ""
+
msgid "nicks in nicklist for a buffer"
msgstr "Nicks in Nickliste für einen Buffer"
diff --git a/po/es.po b/po/es.po
index 82e7c3b57..874ea3446 100644
--- a/po/es.po
+++ b/po/es.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+0200\n"
"PO-Revision-Date: 2011-07-05 15:37+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6719,6 +6719,9 @@ msgstr "lista de buffers en la lista de actividad"
msgid "list of key bindings"
msgstr "lista de atajos de teclas"
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr ""
+
msgid "nicks in nicklist for a buffer"
msgstr "apodos en la lista de apodos de un buffer"
diff --git a/po/fr.po b/po/fr.po
index 45d076613..0c15acb53 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-07-05 15:37+0200\n"
-"PO-Revision-Date: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+0200\n"
+"PO-Revision-Date: 2011-07-10 23:04+0200\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: French\n"
@@ -6769,6 +6769,9 @@ msgstr "liste des tampons dans la hotlist"
msgid "list of key bindings"
msgstr "liste des associations de touches"
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr "contexte (\"default\" ou \"search\") (optionnel)"
+
msgid "nicks in nicklist for a buffer"
msgstr "pseudos dans la liste des pseudos pour un tampon"
diff --git a/po/hu.po b/po/hu.po
index 321b00ae2..e40c04141 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+0200\n"
"PO-Revision-Date: 2011-05-15 10:51+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6184,6 +6184,9 @@ msgstr "kiemelendő szavak listája"
msgid "list of key bindings"
msgstr "Mellőzések listája:\n"
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr ""
+
#, fuzzy
msgid "nicks in nicklist for a buffer"
msgstr "érvénytelen pufferhossz"
diff --git a/po/it.po b/po/it.po
index eb7d405c4..c425ddd1b 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+0200\n"
"PO-Revision-Date: 2011-07-05 15:38+0200\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6712,6 +6712,9 @@ msgstr "elenco dei buffer nella hotlist"
msgid "list of key bindings"
msgstr "elenco di tasti associati"
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr ""
+
msgid "nicks in nicklist for a buffer"
msgstr "nick nella lista nick per un buffer"
diff --git a/po/pl.po b/po/pl.po
index 4c271549c..99d09c3a8 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+0200\n"
"PO-Revision-Date: 2011-07-05 15:38+0200\n"
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6650,6 +6650,9 @@ msgstr "lista buforów w hotliście"
msgid "list of key bindings"
msgstr "lista skrótów klawiszowych"
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr ""
+
msgid "nicks in nicklist for a buffer"
msgstr "nicki na liście nicków bufora"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index e9b2d7408..68da9e856 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+0200\n"
"PO-Revision-Date: 2011-05-15 10:52+0200\n"
"Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5998,6 +5998,9 @@ msgstr ""
msgid "list of key bindings"
msgstr ""
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr ""
+
msgid "nicks in nicklist for a buffer"
msgstr ""
diff --git a/po/ru.po b/po/ru.po
index 4c00c5a99..0b6215eca 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.3.6-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+0200\n"
"PO-Revision-Date: 2011-05-15 10:52+0200\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6199,6 +6199,9 @@ msgstr "максимальная длина имён в хотлисте"
msgid "list of key bindings"
msgstr "Список игнорирования:\n"
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr ""
+
#, fuzzy
msgid "nicks in nicklist for a buffer"
msgstr "некорректная длина буфера"
diff --git a/po/weechat.pot b/po/weechat.pot
index b84afec90..96aa3f134 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: 2011-07-05 15:37+0200\n"
+"POT-Creation-Date: 2011-07-10 23:03+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"
@@ -5381,6 +5381,9 @@ msgstr ""
msgid "list of key bindings"
msgstr ""
+msgid "context (\"default\" or \"search\") (optional)"
+msgstr ""
+
msgid "nicks in nicklist for a buffer"
msgstr ""
diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c
index e5b85558a..7e3861541 100644
--- a/src/plugins/plugin-api.c
+++ b/src/plugins/plugin-api.c
@@ -679,7 +679,10 @@ plugin_api_infolist_get_internal (void *data, const char *infolist_name,
ptr_infolist = infolist_new ();
if (ptr_infolist)
{
- context = gui_key_search_context (arguments);
+ if (arguments && arguments[0])
+ context = gui_key_search_context (arguments);
+ else
+ context = GUI_KEY_CONTEXT_DEFAULT;
if (context >= 0)
{
for (ptr_key = gui_keys[context]; ptr_key;
@@ -1036,7 +1039,7 @@ plugin_api_init ()
&plugin_api_infolist_get_internal, NULL);
hook_infolist (NULL, "key", N_("list of key bindings"),
NULL,
- NULL,
+ N_("context (\"default\" or \"search\") (optional)"),
&plugin_api_infolist_get_internal, NULL);
hook_infolist (NULL, "nicklist", N_("nicks in nicklist for a buffer"),
N_("buffer pointer"),