diff --git a/CHANGELOG.md b/CHANGELOG.md index 777888d30..33699a0b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - api: add property `hotlist_conditions` in function buffer_set - relay/api: allow array with multiple requests in websocket frame received from client - core, plugins: simplify help on parameters that can be repeated in commands +- core: add optional hook types in command `/debug hooks` - build: fix detection of Ruby on macOS 14, require CMake ≥ 3.18 ([#1156](https://github.com/weechat/weechat/issues/1156)) - build: require Curl ≥ 7.47.0 ([#2195](https://github.com/weechat/weechat/issues/2195)) - build: require GnuTLS ≥ 3.3.0 ([#2193](https://github.com/weechat/weechat/issues/2193)) diff --git a/po/cs.po b/po/cs.po index 683898269..e99845853 100644 --- a/po/cs.po +++ b/po/cs.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-10-31 18:05+0100\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -1439,10 +1439,10 @@ msgstr "ladící funkce" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated #, fuzzy msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set || dump [] || buffer|color|memory|term|" "windows" @@ -1473,6 +1473,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3842,6 +3848,9 @@ msgstr "jména filtrů" msgid "names of enabled filters" msgstr "jména filtrů" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/de.po b/po/de.po index 26de08f32..4c344b006 100644 --- a/po/de.po +++ b/po/de.po @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-11-03 09:44+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -1490,11 +1490,17 @@ msgid "debug functions" msgstr "Debug-Funktionen" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated +#, fuzzy +#| msgid "" +#| "list || set || dump|hooks [] || buffer|certs|" +#| "color|dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " +#| "[] || mouse|cursor [verbose] || hdata [free] || time " +#| " || unicode " msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set || dump|hooks [] || buffer|certs|color|" "dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " @@ -1528,6 +1534,14 @@ msgstr "" "Informationen über Hooks werden angezeigt, die von der Erweiterung erstellt " "wurden)" +#, fuzzy +#| msgid "plugin: list commands for this plugin" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "plugin: zeigt Befehle explizit für diese Erweiterung an" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -4269,6 +4283,9 @@ msgstr "Namen der deaktivierten Filter" msgid "names of enabled filters" msgstr "Namen der aktivierten Filter" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/es.po b/po/es.po index dad38defb..cee2d355e 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-10-31 18:07+0100\n" "Last-Translator: Santiago Forero \n" "Language-Team: weechat-dev \n" @@ -1481,10 +1481,10 @@ msgstr "funciones de depuración" #| "dirs|hooks|infolists|libs|memory|tags|term|windows || mouse|cursor " #| "[verbose] || hdata [free] || time " msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set || dump [] || buffer|certs|color|dirs|" "hooks|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || " @@ -1516,6 +1516,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3910,6 +3916,9 @@ msgstr "nombre de los filtros" msgid "names of enabled filters" msgstr "nombre de los filtros" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/fr.po b/po/fr.po index 0f62c7dd2..7c9bbd27f 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" -"PO-Revision-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" +"PO-Revision-Date: 2024-11-12 22:19+0100\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -1475,15 +1475,15 @@ msgstr "fonctions de debug" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" -"list || set || dump|hooks [] || buffer|certs|" -"color|dirs|infolists|libs|memory|tags|term|url|windows || cllbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks " +"[ [...]] || buffer|certs|color|dirs|infolists|" +"libs|memory|tags|term|url|windows || cllbacks [] || mouse|" +"cursor [verbose] || hdata [free] || time || unicode " msgid "raw[list]: list plugins with debug levels" msgstr "raw[list] : lister les extensions avec leur niveau de debug" @@ -1511,6 +1511,13 @@ msgstr "" "raw[hooks] : afficher des infos sur les hooks (avec une extension : afficher " "les infos détaillées sur les hooks créés par l'extension)" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" +"masque_extension : masque d'extension, \"*\" pour toutes les extensions" + +msgid "hook_type: hook type" +msgstr "type_hook : type de hook" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -4179,6 +4186,9 @@ msgstr "noms des filtres désactivés" msgid "names of enabled filters" msgstr "noms des filtres activés" +msgid "hook types" +msgstr "types de hook" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/hu.po b/po/hu.po index b9c280423..b9e056e2d 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-10-31 18:09+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -1398,10 +1398,10 @@ msgstr "" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated #, fuzzy msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "dump | buffer | windows" msgid "raw[list]: list plugins with debug levels" @@ -1426,6 +1426,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3670,6 +3676,9 @@ msgstr "Aliaszok listája:\n" msgid "names of enabled filters" msgstr "Aliaszok listája:\n" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/it.po b/po/it.po index a3e481d30..5ae7f2d12 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-10-31 18:10+0100\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -1437,10 +1437,10 @@ msgstr "" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated #, fuzzy msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set || dump [] || buffer|color|infolists|" "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]" @@ -1471,6 +1471,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3871,6 +3877,9 @@ msgstr "nomi dei filtri" msgid "names of enabled filters" msgstr "nomi dei filtri" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/ja.po b/po/ja.po index 8435946b4..d09772dc9 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-10-31 18:11+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese " msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set || dump [] || buffer|color|infolists|" "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free] || time " @@ -1509,6 +1509,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3963,6 +3969,9 @@ msgstr "フィルタ名" msgid "names of enabled filters" msgstr "フィルタ名" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/pl.po b/po/pl.po index 0abadf6a9..4eec5ee6f 100644 --- a/po/pl.po +++ b/po/pl.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-11-03 09:44+0100\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -1495,11 +1495,17 @@ msgid "debug functions" msgstr "funkcje debugujące" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated +#, fuzzy +#| msgid "" +#| "list || set || dump|hooks [] || buffer|certs|" +#| "color|dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " +#| "[] || mouse|cursor [verbose] || hdata [free] || time " +#| " || unicode " msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set || dump|hooks [] || buffer|certs|" "color|dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " @@ -1532,6 +1538,14 @@ msgstr "" "raw[hooks]: zapisz informacje o hookach (z wtyczką: wyświetl szczegółowe " "informacje o hookach stworzonych przez wtyczkę)" +#, fuzzy +#| msgid "plugin: list commands for this plugin" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "wtyczka: wyświetl komendy dla tej wtyczki" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -4175,6 +4189,9 @@ msgstr "nazwy wyłączonych filtrów" msgid "names of enabled filters" msgstr "nazwy włączonych filtrów" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/pt.po b/po/pt.po index ddadebbae..beb009d73 100644 --- a/po/pt.po +++ b/po/pt.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-10-31 18:12+0100\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese <>\n" @@ -1487,10 +1487,10 @@ msgstr "funções de debug" #| "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free] || " #| "time " msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set || dump [] || buffer|color|infolists|" "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free] || time " @@ -1522,6 +1522,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3984,6 +3990,9 @@ msgstr "nomes dos filtros" msgid "names of enabled filters" msgstr "nomes dos filtros" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/pt_BR.po b/po/pt_BR.po index 1e7541c24..fd2fcd913 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-10-31 18:12+0100\n" "Last-Translator: Érico Nogueira \n" "Language-Team: weechat-dev \n" @@ -1450,10 +1450,10 @@ msgstr "" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated #, fuzzy msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set || dump [] || buffer|color|cursor|" "infolists|memory|mouse|tags|term|windows || hdata [free]" @@ -1488,6 +1488,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3876,6 +3882,9 @@ msgstr "nomes dos filtros" msgid "names of enabled filters" msgstr "nomes dos filtros" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/ru.po b/po/ru.po index 9eaac3482..7e408504d 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-10-31 18:14+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -1420,10 +1420,10 @@ msgstr "" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated #, fuzzy msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "dump | buffer | windows" msgid "raw[list]: list plugins with debug levels" @@ -1448,6 +1448,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3694,6 +3700,9 @@ msgstr "Список сокращений:\n" msgid "names of enabled filters" msgstr "Список сокращений:\n" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/sr.po b/po/sr.po index 3ad22b5b4..9989fc69a 100644 --- a/po/sr.po +++ b/po/sr.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-11-03 09:45+0100\n" "Last-Translator: Ivan Pešić \n" "Language-Team: weechat-dev \n" @@ -1459,11 +1459,17 @@ msgid "debug functions" msgstr "дибаг функције" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated +#, fuzzy +#| msgid "" +#| "list || set || dump|hooks [] || buffer|certs|" +#| "color|dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " +#| "[] || mouse|cursor [verbose] || hdata [free] || time " +#| " || unicode " msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set <додатак> <ниво> || dump|hooks [<додатак>] || buffer|certs|color|" "dirs|infolists|libs|memory|tags|term|url|windows || callbacks " @@ -1496,6 +1502,14 @@ msgstr "" "raw[hooks]: исписује инфо о кукама (са додатком: приказује детаљне " "информације о кукама које креира додатак)" +#, fuzzy +#| msgid "plugin: list commands for this plugin" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "додатак: приказује команде за овај додатак" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -4108,6 +4122,9 @@ msgstr "имена искључених филтера" msgid "names of enabled filters" msgstr "имена укључених филтера" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/tr.po b/po/tr.po index d4481fcf1..d945461c2 100644 --- a/po/tr.po +++ b/po/tr.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2024-10-31 18:15+0100\n" "Last-Translator: Emir SARI \n" "Language-Team: weechat-dev \n" @@ -1483,10 +1483,10 @@ msgstr "hata ayıklama işlevleri" #| "color|dirs|infolists|libs|memory|tags|term|windows || mouse|cursor " #| "[verbose] || hdata [free] || time || unicode " msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" "list || set || dump|hooks [] || buffer|certs|" "color|dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] " @@ -1518,6 +1518,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3980,6 +3986,9 @@ msgstr "süzgeçlerin adları" msgid "names of enabled filters" msgstr "süzgeçlerin adları" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/po/weechat.pot b/po/weechat.pot index f45ba1c00..18f3153db 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-11-03 09:43+0100\n" +"POT-Creation-Date: 2024-11-12 22:18+0100\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -1309,10 +1309,10 @@ msgstr "" #. TRANSLATORS: only text between angle brackets (eg: "") may be translated msgid "" -"list || set || dump|hooks [] || buffer|certs|color|" -"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks " -"[] || mouse|cursor [verbose] || hdata [free] || time " -" || unicode " +"list || set || dump [] || hooks [ " +"[...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" +"term|url|windows || callbacks [] || mouse|cursor [verbose] " +"|| hdata [free] || time || unicode " msgstr "" msgid "raw[list]: list plugins with debug levels" @@ -1337,6 +1337,12 @@ msgid "" "about hooks created by the plugin)" msgstr "" +msgid "plugin_mask: plugin mask, \"*\" for all plugins" +msgstr "" + +msgid "hook_type: hook type" +msgstr "" + msgid "" "raw[buffer]: dump buffer content with hexadecimal values in WeeChat log file" msgstr "" @@ -3455,6 +3461,9 @@ msgstr "" msgid "names of enabled filters" msgstr "" +msgid "hook types" +msgstr "" + msgid "" "commands (weechat and plugins); optional argument: prefix to add before the " "commands" diff --git a/src/core/core-command.c b/src/core/core-command.c index 20d3feddd..6d748ed79 100644 --- a/src/core/core-command.c +++ b/src/core/core-command.c @@ -2156,9 +2156,15 @@ COMMAND_CALLBACK(debug) if (string_strcmp (argv[1], "hooks") == 0) { if (argc > 2) - debug_hooks_plugin (argv[2]); + { + debug_hooks_plugin_types ( + argv[2], + (argc > 3) ? (const char **)&argv[3] : NULL); + } else + { debug_hooks (); + } return WEECHAT_RC_OK; } @@ -8311,7 +8317,8 @@ command_init () /* TRANSLATORS: only text between angle brackets (eg: "") may be translated */ N_("list" " || set " - " || dump|hooks []" + " || dump []" + " || hooks [ [...]]" " || buffer|certs|color|dirs|infolists|key|libs|memory|tags|" "term|url|windows" " || callbacks []" @@ -8328,6 +8335,8 @@ command_init () "written when WeeChat crashes)"), N_("raw[hooks]: display infos about hooks (with a plugin: display " "detailed info about hooks created by the plugin)"), + N_("plugin_mask: plugin mask, \"*\" for all plugins"), + N_("hook_type: hook type"), N_("raw[buffer]: dump buffer content with hexadecimal values in WeeChat " "log file"), N_("raw[callbacks]: write hook and bar item callbacks that took more than " @@ -8363,6 +8372,7 @@ command_init () AI(" /debug set irc 1"), AI(" /debug mouse verbose"), AI(" /debug time /filter toggle"), + AI(" /debug hooks * process connect url"), AI(" /debug unicode ${chars:${\\u26C0}-${\\u26CF}}")), "list" " || set %(plugins_names)|" PLUGIN_CORE @@ -8374,7 +8384,7 @@ command_init () " || cursor verbose" " || dirs" " || hdata free" - " || hooks %(plugins_names)|" PLUGIN_CORE + " || hooks %(plugins_names)|" PLUGIN_CORE " %(hook_types)|%*" " || infolists" " || key" " || libs" diff --git a/src/core/core-debug.c b/src/core/core-debug.c index ed67b2a45..c050b2fde 100644 --- a/src/core/core-debug.c +++ b/src/core/core-debug.c @@ -529,36 +529,19 @@ debug_hooks () } /* - * Displays info about hooks for a specific plugin. + * Displays info about hooks for one or multiple plugins matching a mask. */ void -debug_hooks_plugin (const char *plugin_name) +debug_hooks_plugin_types (const char *plugin_mask, const char **hook_types) { - struct t_weechat_plugin *ptr_plugin; struct t_hook *ptr_hook; - char *desc, **result, **result_type, str_type[128]; - int i, count_total, count_type; + char *desc, **result, **result_type, str_type[1024]; + int i, j, count_total, count_type, match_type, matches; - if (!plugin_name) + if (!plugin_mask) return; - if (strcmp (plugin_name, PLUGIN_CORE) == 0) - { - ptr_plugin = NULL; - } - else - { - ptr_plugin = plugin_search (plugin_name); - if (!ptr_plugin) - { - gui_chat_printf (NULL, "%sPlugin \"%s\" not found", - gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], - plugin_name); - return; - } - } - result = string_dyn_alloc (1024); if (!result) return; @@ -571,55 +554,88 @@ debug_hooks_plugin (const char *plugin_name) } count_total = 0; + matches = 0; for (i = 0; i < HOOK_NUM_TYPES; i++) { - count_type = 0; - string_dyn_copy (result_type, NULL); - - for (ptr_hook = weechat_hooks[i]; ptr_hook; - ptr_hook = ptr_hook->next_hook) + if (hook_types) { - if (ptr_hook->deleted || (ptr_hook->plugin != ptr_plugin)) - continue; - - desc = hook_get_description (ptr_hook); - if (desc) + match_type = 0; + for (j = 0; hook_types[j]; j++) { - string_dyn_concat (result_type, " ", -1); - string_dyn_concat (result_type, desc, -1); - string_dyn_concat (result_type, "\n", -1); - free (desc); + if (strcmp (hook_types[j], hook_type_string[i]) == 0) + { + matches = 1; + match_type = 1; + break; + } } - count_type++; + } + else + { + match_type = 1; } - snprintf (str_type, sizeof (str_type), - " %s (%d)%s\n", - hook_type_string[i], - count_type, - (count_type > 0) ? ":" : ""); - string_dyn_concat (result, str_type, -1); + if (match_type) + { + count_type = 0; + string_dyn_copy (result_type, NULL); - if (count_type > 0) - string_dyn_concat (result, *result_type, -1); + for (ptr_hook = weechat_hooks[i]; ptr_hook; + ptr_hook = ptr_hook->next_hook) + { + if (ptr_hook->deleted) + continue; - count_total += count_type; + if (!string_match ( + (ptr_hook->plugin) ? ptr_hook->plugin->name : PLUGIN_CORE, + plugin_mask, 1)) + continue; + + matches = 1; + + desc = hook_get_description (ptr_hook); + if (desc) + { + string_dyn_concat (result_type, " ", -1); + string_dyn_concat (result_type, + (ptr_hook->plugin) ? + ptr_hook->plugin->name : PLUGIN_CORE, + -1); + string_dyn_concat (result_type, ": ", -1); + string_dyn_concat (result_type, desc, -1); + string_dyn_concat (result_type, "\n", -1); + free (desc); + } + count_type++; + } + + snprintf (str_type, sizeof (str_type), + " %s (%d)%s\n", + hook_type_string[i], + count_type, + (count_type > 0) ? ":" : ""); + string_dyn_concat (result, str_type, -1); + + if (count_type > 0) + string_dyn_concat (result, *result_type, -1); + + count_total += count_type; + } } - if (count_total > 0) + if (matches) { gui_chat_printf (NULL, ""); gui_chat_printf (NULL, - "hooks in plugin \"%s\" (%d)%s", - plugin_name, + "hooks (%d)%s", count_total, (count_total > 0) ? ":" : ""); gui_chat_printf (NULL, *result); } else { - gui_chat_printf (NULL, "No hooks in plugin \"%s\"", plugin_name); + gui_chat_printf (NULL, "No hooks"); } string_dyn_free (result, 1); string_dyn_free (result_type, 1); diff --git a/src/core/core-debug.h b/src/core/core-debug.h index 7f84acba9..5c6bf760f 100644 --- a/src/core/core-debug.h +++ b/src/core/core-debug.h @@ -32,7 +32,8 @@ extern void debug_windows_tree (); extern void debug_memory (); extern void debug_hdata (); extern void debug_hooks (); -extern void debug_hooks_plugin (const char *plugin_name); +extern void debug_hooks_plugin_types (const char *plugin_name, + const char **hook_types); extern void debug_infolists (); extern void debug_directories (); extern void debug_display_time_elapsed (struct timeval *time1,