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

core: add optional hook types in command /debug hooks

This commit is contained in:
Sébastien Helleu
2024-11-13 07:35:02 +01:00
parent 5ddd786332
commit 93646c0b24
18 changed files with 308 additions and 129 deletions
+1
View File
@@ -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))
+14 -5
View File
@@ -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 <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1439,10 +1439,10 @@ msgstr "ladící funkce"
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <plugin> <level> || dump [<plugin>] || 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"
+22 -5
View File
@@ -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 <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -1490,11 +1490,17 @@ msgid "debug functions"
msgstr "Debug-Funktionen"
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
#, fuzzy
#| msgid ""
#| "list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|"
#| "color|dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
#| "<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
#| "<command> || unicode <string>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || 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"
+14 -5
View File
@@ -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 <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1481,10 +1481,10 @@ msgstr "funciones de depuración"
#| "dirs|hooks|infolists|libs|memory|tags|term|windows || mouse|cursor "
#| "[verbose] || hdata [free] || time <command>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <plugin> <nível> || dump [<plugin>] || 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"
+20 -10
View File
@@ -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 <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -1475,15 +1475,15 @@ msgstr "fonctions de debug"
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <extension> <niveau> || dump|hooks [<extension>] || buffer|certs|"
"color|dirs|infolists|libs|memory|tags|term|url|windows || cllbacks "
"<durée>[<unité>] || mouse|cursor [verbose] || hdata [free] || time "
"<commande> || unicode <chaîne>"
"list || set <extension> <niveau> || dump [<extension>] || hooks "
"[<masque_extension> [<type_hook>...]] || buffer|certs|color|dirs|infolists|"
"libs|memory|tags|term|url|windows || cllbacks <durée>[<unité>] || mouse|"
"cursor [verbose] || hdata [free] || time <commande> || unicode <chaîne>"
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"
+14 -5
View File
@@ -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 <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1398,10 +1398,10 @@ msgstr ""
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
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"
+14 -5
View File
@@ -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 <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1437,10 +1437,10 @@ msgstr ""
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <plugin> <livello> || dump [<plugin>] || 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"
+14 -5
View File
@@ -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 <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -1474,10 +1474,10 @@ msgstr "デバッグ関数"
#| "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free] || "
#| "time <command>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <plugin> <level> || dump [<plugin>] || 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"
+22 -5
View File
@@ -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 <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1495,11 +1495,17 @@ msgid "debug functions"
msgstr "funkcje debugujące"
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
#, fuzzy
#| msgid ""
#| "list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|"
#| "color|dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
#| "<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
#| "<command> || unicode <string>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <wtyczka> <poziom> || dump|hooks [<wtyczka>] || 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"
+14 -5
View File
@@ -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 <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -1487,10 +1487,10 @@ msgstr "funções de debug"
#| "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free] || "
#| "time <command>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <plugin> <nível> || dump [<plugin>] || 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"
+14 -5
View File
@@ -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 <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1450,10 +1450,10 @@ msgstr ""
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <plugin> <nível> || dump [<plugin>] || 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"
+14 -5
View File
@@ -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 <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1420,10 +1420,10 @@ msgstr ""
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
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"
+22 -5
View File
@@ -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ć <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1459,11 +1459,17 @@ msgid "debug functions"
msgstr "дибаг функције"
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
#, fuzzy
#| msgid ""
#| "list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|"
#| "color|dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
#| "<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
#| "<command> || unicode <string>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
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"
+14 -5
View File
@@ -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 <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\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 <command> || unicode <string>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
msgstr ""
"list || set <eklenti> <düzey> || dump|hooks [<eklenti>] || 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"
+14 -5
View File
@@ -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 <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1309,10 +1309,10 @@ msgstr ""
#. TRANSLATORS: only text between angle brackets (eg: "<name>") may be translated
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|key|libs|memory|tags|term|url|windows || callbacks "
"<duration>[<unit>] || mouse|cursor [verbose] || hdata [free] || time "
"<command> || unicode <string>"
"list || set <plugin> <level> || dump [<plugin>] || hooks [<plugin_mask> "
"[<hook_type>...]] || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows || callbacks <duration>[<unit>] || mouse|cursor [verbose] "
"|| hdata [free] || time <command> || unicode <string>"
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"
+13 -3
View File
@@ -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: "<name>") may be translated */
N_("list"
" || set <plugin> <level>"
" || dump|hooks [<plugin>]"
" || dump [<plugin>]"
" || hooks [<plugin_mask> [<hook_type>...]]"
" || buffer|certs|color|dirs|infolists|key|libs|memory|tags|"
"term|url|windows"
" || callbacks <duration>[<unit>]"
@@ -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"
+66 -50
View File
@@ -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);
+2 -1
View File
@@ -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,