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

core: add option callbacks in command /debug

This commit is contained in:
Sébastien Helleu
2023-08-25 13:35:50 +02:00
parent cc2bb4b8cf
commit ff4596e45c
38 changed files with 766 additions and 103 deletions
+1
View File
@@ -15,6 +15,7 @@ For a list of important changes that require manual actions, please look at rele
New features::
* core: add option `callbacks` in command `/debug`
* core: add option type "enum" (issue #1973)
* core: add options weechat.buffer.* to save buffer properties set by user, add option `setauto` in command `/buffer` (issue #352)
* core: add parameters and key bindings to move to edges of current area with commands `/cursor go` and `/cursor move` (issue #1282)
+32 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -389,6 +389,15 @@ msgstr "%sPlugin \"%s\" nenalezen"
msgid "Raw content of buffers has been written in log file"
msgstr "Veškerý obsah bufferů byl zapsán do logovacího souboru"
#, fuzzy, c-format
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "Ladění vypnuto pro \"%s\""
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "Ladění vypnuto pro \"%s\""
#, fuzzy, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1483,8 +1492,9 @@ msgstr "ladící funkce"
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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"
@@ -1499,7 +1509,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -4630,6 +4648,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr "%sChyba odesílání signálu %d na pid %d: %s"
@@ -5103,6 +5127,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Pole \"%s\" zaktualizováno"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+74 -4
View File
@@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-08-24 13:36+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -432,6 +432,16 @@ msgid "Raw content of buffers has been written in log file"
msgstr ""
"Der Inhalt des Buffers wurde im Rohformat in die Protokolldatei geschrieben"
#, fuzzy, c-format
#| msgid "Debug enabled for cursor mode (%s)"
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "Debug-Modus (%s) für Cursor aktiviert"
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "Debug-Modus für \"%s\" deaktiviert"
#, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1619,15 +1629,57 @@ msgstr ""
msgid "debug functions"
msgstr "Debug-Funktionen"
#, fuzzy
#| msgid ""
#| "list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|"
#| "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|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
#, fuzzy
#| msgid ""
#| " list: list plugins with debug levels\n"
#| " set: set debug level for plugin\n"
#| " plugin: name of plugin (\"core\" for WeeChat core)\n"
#| " level: debug level for plugin (0 = disable debug)\n"
#| " dump: save memory dump in WeeChat log file (same dump is written "
#| "when WeeChat crashes)\n"
#| " hooks: display infos about hooks (with a plugin: display detailed "
#| "info about hooks created by the plugin)\n"
#| " buffer: dump buffer content with hexadecimal values in log file\n"
#| " certs: display number of loaded trusted certificate authorities\n"
#| " color: display infos about current color pairs\n"
#| " cursor: toggle debug for cursor mode\n"
#| " dirs: display directories\n"
#| " hdata: display infos about hdata (with free: remove all hdata in "
#| "memory)\n"
#| "infolists: display infos about infolists\n"
#| " key: enable keyboard and mouse debug: display raw codes, expanded "
#| "key name and associated command ('q' to quit this mode)\n"
#| " libs: display infos about external libraries used\n"
#| " memory: display infos about memory usage\n"
#| " mouse: toggle debug for mouse\n"
#| " tags: display tags for lines\n"
#| " term: display infos about terminal\n"
#| " windows: display windows tree\n"
#| " time: measure time to execute a command or to send text to the "
#| "current buffer\n"
#| " unicode: display information about string and unicode chars (evaluated, "
#| "see /help eval)\n"
#| "\n"
#| "Examples:\n"
#| " /debug set irc 1\n"
#| " /debug mouse verbose\n"
#| " /debug time /filter toggle\n"
#| " /debug unicode ${chars:${\\u26C0}-${\\u26CF}}"
msgid ""
" list: list plugins with debug levels\n"
" set: set debug level for plugin\n"
@@ -1637,7 +1689,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -5849,6 +5909,12 @@ msgstr "Priorität"
msgid "File"
msgstr "Datei"
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr "%sFehler beim Versenden des Signals %d an pid %d: %s"
@@ -6377,6 +6443,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Infobar \"%s\" aktualisiert"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+33 -4
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -444,6 +444,16 @@ msgid "Raw content of buffers has been written in log file"
msgstr ""
"Se escribió el contenido bruto de los buffers en el archivo de registro"
#, fuzzy, c-format
#| msgid "Debug enabled for cursor mode (%s)"
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "Depurado para modo cursor activado (%s)"
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "Depurado de \"%s\" desactivado"
#, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1634,8 +1644,9 @@ msgstr "funciones de depuración"
#| "[verbose] || hdata [free] || time <command>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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] || "
@@ -1651,7 +1662,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -5261,6 +5280,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr ""
@@ -5730,6 +5755,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Barra \"%s\" actualizada"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+50 -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: 2023-08-25 11:16+0200\n"
"PO-Revision-Date: 2023-08-25 11:18+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-08-25 13:31+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -415,6 +415,14 @@ msgstr "%sExtension \"%s\" non trouvée"
msgid "Raw content of buffers has been written in log file"
msgstr "Le contenu brut des tampons a été écrit dans le fichier de log"
#, c-format
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr ""
"Debug activé pour les fonctions de rappel (seuil de déclenchement : %s)"
msgid "Debug disabled for callbacks"
msgstr "Debug désactivé pour les fonctions de rappel"
#, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1592,12 +1600,14 @@ msgstr "fonctions de debug"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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|windows || cursor|mouse [verbose] "
"|| hdata [free] || time <commande> || unicode <chaîne>"
"color|dirs|infolists|libs|memory|tags|term|windows || cllbacks "
"<durée>[<unité>] || cursor|mouse [verbose] || hdata [free] || time "
"<commande> || unicode <chaîne>"
msgid ""
" list: list plugins with debug levels\n"
@@ -1608,7 +1618,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -1639,12 +1657,20 @@ msgstr ""
" set : définir le niveau de debug pour l'extension\n"
"extension : nom de l'extension (\"core\" pour le cœur de WeeChat)\n"
" niveau : niveau de debug pour l'extension\n"
" dump : afficher les variables mémoire WeeChat dans le fichier log (les "
"mêmes messages sont affichés lorsque WeeChat plante)\n"
" dump : afficher les variables en mémoire dans le fichier de log WeeChat "
"(les mêmes messages sont affichés lorsque WeeChat plante)\n"
" hooks : afficher des infos sur les hooks (avec une extension : afficher "
"les infos détaillées sur les hooks créés par l'extension)\n"
" buffer : afficher le contenu du tampon en valeurs hexadécimales dans le "
"fichier log\n"
"fichier de log WeeChat\n"
"callbacks : écrire les fonctions de rappel des hooks et objet de barre qui "
"durent plus longtemps que la \"durée\" dans le fichier de log WeeChat (0 = "
"désactiver), où l'unité optionnelle est l'une de celles-ci :\n"
" us : microsecondes (par défaut)\n"
" ms : millisecondes\n"
" s : secondes\n"
" m : minutes\n"
" h : heures\n"
" certs : afficher le nombre de certificats des autorités de certification "
"chargés\n"
" color : afficher des infos sur les paires de couleur courantes\n"
@@ -5679,6 +5705,14 @@ msgstr "Priorité"
msgid "File"
msgstr "Fichier"
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
"debug : fonction de rappel longue : hook %s (%s), extension : %s, sous-"
"extension : %s, temps écoulé : %s"
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr "%sErreur d'envoi du signal %d au pid %d : %s"
@@ -6204,6 +6238,12 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Barre \"%s\" mise à jour"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
"debug : fonction de rappel longue : barre : %s, objet de barre : %s, "
"extension : %s, temps écoulé : %s"
#, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+30 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -362,6 +362,13 @@ msgstr "%s cím \"%s\" nem található\n"
msgid "Raw content of buffers has been written in log file"
msgstr ""
#, c-format
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr ""
msgid "Debug disabled for callbacks"
msgstr ""
#, fuzzy, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1367,8 +1374,9 @@ msgstr ""
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|windows || callbacks <duration>[<unit>] "
"|| mouse|cursor [verbose] || hdata [free] || time <command> || unicode "
"<string>"
msgstr "dump | buffer | windows"
#, fuzzy
@@ -1381,7 +1389,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -4179,6 +4195,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr ""
@@ -4640,6 +4662,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "A \"%s\" => \"%s\" aliasz elkészült\n"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+33 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -363,6 +363,16 @@ msgstr "%sPlugin \"%s\" non trovato"
msgid "Raw content of buffers has been written in log file"
msgstr "Il contenuto raw dei buffer è stato salvato sul file di log"
#, fuzzy, c-format
#| msgid "Debug enabled for cursor mode (%s)"
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "Debug abilitato per la modalità cursore (%s)"
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "Debug disabilitato per \"%s\""
#, fuzzy, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1480,8 +1490,9 @@ msgstr ""
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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]"
@@ -1496,7 +1507,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -4904,6 +4923,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr ""
@@ -5388,6 +5413,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Barra \"%s\" aggiornata"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+33 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-08-08 07:13+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -410,6 +410,16 @@ msgstr "%sプラグイン \"%s\" が見つかりません"
msgid "Raw content of buffers has been written in log file"
msgstr "バッファの生データがログファイルに書き込まれました"
#, fuzzy, c-format
#| msgid "Debug enabled for cursor mode (%s)"
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "カーソルモード (%s) のデバッグを有効化"
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "\"%s\" に対するデバッグが無効になりました"
#, fuzzy, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1611,8 +1621,9 @@ msgstr "デバッグ関数"
#| "time <command>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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 "
@@ -1651,7 +1662,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -5544,6 +5563,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr "%sシグナル %d を pid %d に送信中にエラー: %s"
@@ -6033,6 +6058,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "バー \"%s\" がアップデートされました"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
#| msgid "%sPaste %d line? [ctrl-Y] Yes [ctrl-N] No"
#| msgid_plural "%sPaste %d lines? [ctrl-Y] Yes [ctrl-N] No"
+38 -4
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-08-08 07:13+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -442,6 +442,16 @@ msgstr "%sNie odnaleziono wtyczki \"%s\""
msgid "Raw content of buffers has been written in log file"
msgstr "Surowa zawartość bufora została zapisana do pliku z logiem"
#, fuzzy, c-format
#| msgid "Debug enabled for cursor mode (%s)"
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "Debugowanie włączone dla trybu kursora (%s)"
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "Debugowanie wyłączone dla\"%s\""
#, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1789,10 +1799,16 @@ msgstr ""
msgid "debug functions"
msgstr "funkcje debugujące"
#, fuzzy
#| msgid ""
#| "list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|"
#| "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|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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|libs|memory|tags|term|windows || mouse|cursor [verbose] "
@@ -1841,7 +1857,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -6111,6 +6135,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr "%sBłąd wysyłania sygnału %d do pid %d: %s"
@@ -6621,6 +6651,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Uaktualniono pasek \"%s\""
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
#| msgid "%sPaste %d line? [ctrl-Y] Yes [ctrl-N] No"
#| msgid_plural "%sPaste %d lines? [ctrl-Y] Yes [ctrl-N] No"
+33 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -391,6 +391,16 @@ msgstr "%sPlugin \"%s\" não encontrado"
msgid "Raw content of buffers has been written in log file"
msgstr "O conteúdo bruto dos buffers foi escrito no ficheiro de registo"
#, fuzzy, c-format
#| msgid "Debug enabled for cursor mode (%s)"
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "Depuração ativada para o modo de cursor (%s)"
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "Depuração de \"%s\" desativada"
#, fuzzy, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1607,8 +1617,9 @@ msgstr "funções de debug"
#| "time <command>"
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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 "
@@ -1647,7 +1658,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -5536,6 +5555,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr "%sErro ao enviar o sinal %d ao pid %d: %s"
@@ -6040,6 +6065,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Barra \"%s\" atualizada"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+33 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-06-26 21:34+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -398,6 +398,16 @@ msgstr "%sPlugin \"%s\" não encontrado"
msgid "Raw content of buffers has been written in log file"
msgstr "Conteúdo bruto dos buffers foi escrito no arquivo de log"
#, fuzzy, c-format
#| msgid "Debug enabled for cursor mode (%s)"
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "Depuração habilitada para modo cursor (%s)"
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "Depuração desabilitada para \"%s\""
#, fuzzy, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1549,8 +1559,9 @@ msgstr ""
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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]"
@@ -1566,7 +1577,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -4904,6 +4923,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr ""
@@ -5361,6 +5386,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Barra \"%s\" atualizada"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+32 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-06-17 11:47+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -366,6 +366,15 @@ msgstr "%s адрес \"%s\" не найден\n"
msgid "Raw content of buffers has been written in log file"
msgstr "Содержимое буфера записано в файл журнала"
#, c-format
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr ""
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "Отладка отключена для \"%s\""
#, fuzzy, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1387,8 +1396,9 @@ msgstr ""
#, fuzzy
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|windows || callbacks <duration>[<unit>] "
"|| mouse|cursor [verbose] || hdata [free] || time <command> || unicode "
"<string>"
msgstr "dump | buffer | windows"
#, fuzzy
@@ -1401,7 +1411,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -4207,6 +4225,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr ""
@@ -4677,6 +4701,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Сокращение \"%s\" => \"%s\" создано\n"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+74 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-08-08 07:14+0200\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -415,6 +415,16 @@ msgstr "%sНије пронађен додатак „%s”"
msgid "Raw content of buffers has been written in log file"
msgstr "У лог фајл је уписан сирови садржај бафера"
#, fuzzy, c-format
#| msgid "Debug enabled for cursor mode (%s)"
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "Укључен је дибаг за режим померања курсора (%s)"
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "Дибаг је искључен за „%s”"
#, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1660,15 +1670,57 @@ msgstr ""
msgid "debug functions"
msgstr "дибаг функције"
#, fuzzy
#| msgid ""
#| "list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|"
#| "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|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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|windows || mouse|cursor [verbose] || "
"hdata [free] || time <команда> || unicode <стринг>"
#, fuzzy
#| msgid ""
#| " list: list plugins with debug levels\n"
#| " set: set debug level for plugin\n"
#| " plugin: name of plugin (\"core\" for WeeChat core)\n"
#| " level: debug level for plugin (0 = disable debug)\n"
#| " dump: save memory dump in WeeChat log file (same dump is written "
#| "when WeeChat crashes)\n"
#| " hooks: display infos about hooks (with a plugin: display detailed "
#| "info about hooks created by the plugin)\n"
#| " buffer: dump buffer content with hexadecimal values in log file\n"
#| " certs: display number of loaded trusted certificate authorities\n"
#| " color: display infos about current color pairs\n"
#| " cursor: toggle debug for cursor mode\n"
#| " dirs: display directories\n"
#| " hdata: display infos about hdata (with free: remove all hdata in "
#| "memory)\n"
#| "infolists: display infos about infolists\n"
#| " key: enable keyboard and mouse debug: display raw codes, expanded "
#| "key name and associated command ('q' to quit this mode)\n"
#| " libs: display infos about external libraries used\n"
#| " memory: display infos about memory usage\n"
#| " mouse: toggle debug for mouse\n"
#| " tags: display tags for lines\n"
#| " term: display infos about terminal\n"
#| " windows: display windows tree\n"
#| " time: measure time to execute a command or to send text to the "
#| "current buffer\n"
#| " unicode: display information about string and unicode chars (evaluated, "
#| "see /help eval)\n"
#| "\n"
#| "Examples:\n"
#| " /debug set irc 1\n"
#| " /debug mouse verbose\n"
#| " /debug time /filter toggle\n"
#| " /debug unicode ${chars:${\\u26C0}-${\\u26CF}}"
msgid ""
" list: list plugins with debug levels\n"
" set: set debug level for plugin\n"
@@ -1678,7 +1730,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -5666,6 +5726,12 @@ msgstr "Приоритет"
msgid "File"
msgstr "Фајл"
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr "%sГрешка при слању сигнала %d процесу pid %d: %s"
@@ -6171,6 +6237,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "Ажурирана је „%s”"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+38 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\n"
"PO-Revision-Date: 2023-08-08 07:14+0200\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -432,6 +432,16 @@ msgstr "%s\"%s\" eklentisi bulunamadı"
msgid "Raw content of buffers has been written in log file"
msgstr "Arabelleklerin ham içeriği günlük dosyasına yazıldı"
#, fuzzy, c-format
#| msgid "Debug enabled for cursor mode (%s)"
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr "İmleç kipi için hata ayıklama etkin (%s)"
#, fuzzy
#| msgid "Debug disabled for \"%s\""
msgid "Debug disabled for callbacks"
msgstr "\"%s\" için hata ayıklama devre dışı"
#, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1667,10 +1677,16 @@ msgstr ""
msgid "debug functions"
msgstr "hata ayıklama işlevleri"
#, fuzzy
#| msgid ""
#| "list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|"
#| "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|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|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] "
@@ -1686,7 +1702,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -5671,6 +5695,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr "%sŞu PID'ye %d sinyali gönderilirken hata: %d: %s"
@@ -6169,6 +6199,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr "\"%s\" çubuğu güncellendi"
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, fuzzy, c-format
#| msgid "%sPaste %d line? [ctrl-Y] Yes [ctrl-N] No"
#| msgid_plural "%sPaste %d lines? [ctrl-Y] Yes [ctrl-N] No"
+30 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-08-25 11:16+0200\n"
"POT-Creation-Date: 2023-08-25 13:26+0200\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"
@@ -340,6 +340,13 @@ msgstr ""
msgid "Raw content of buffers has been written in log file"
msgstr ""
#, c-format
msgid "Debug enabled for callbacks (threshold: %s)"
msgstr ""
msgid "Debug disabled for callbacks"
msgstr ""
#, c-format
msgid "%d certificate loaded (system: %d, user: %d)"
msgid_plural "%d certificates loaded (system: %d, user: %d)"
@@ -1248,8 +1255,9 @@ msgstr ""
msgid ""
"list || set <plugin> <level> || dump|hooks [<plugin>] || buffer|certs|color|"
"dirs|infolists|libs|memory|tags|term|windows || mouse|cursor [verbose] || "
"hdata [free] || time <command> || unicode <string>"
"dirs|infolists|libs|memory|tags|term|windows || callbacks <duration>[<unit>] "
"|| mouse|cursor [verbose] || hdata [free] || time <command> || unicode "
"<string>"
msgstr ""
msgid ""
@@ -1261,7 +1269,15 @@ msgid ""
"WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display detailed info "
"about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional unit is "
"one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -3818,6 +3834,12 @@ msgstr ""
msgid "File"
msgstr ""
#, c-format
msgid ""
"debug: long callback: hook %s (%s), plugin: %s, subplugin: %s, time elapsed: "
"%s"
msgstr ""
#, c-format
msgid "%sError sending signal %d to pid %d: %s"
msgstr ""
@@ -4256,6 +4278,10 @@ msgstr ""
msgid "Bar \"%s\" updated"
msgstr ""
#, c-format
msgid "debug: long callback: bar: %s, item: %s, plugin: %s, time elapsed: %s"
msgstr ""
#, c-format
msgid "%sPaste %d line? [ctrl-y] Yes [ctrl-n] No"
msgid_plural "%sPaste %d lines? [ctrl-y] Yes [ctrl-n] No"
+3 -2
View File
@@ -101,6 +101,7 @@ int
hook_command_run_exec (struct t_gui_buffer *buffer, const char *command)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
int rc, hook_matching, length;
char *command2;
const char *ptr_string, *ptr_command;
@@ -149,13 +150,13 @@ hook_command_run_exec (struct t_gui_buffer *buffer, const char *command)
if (hook_matching)
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
rc = (HOOK_COMMAND_RUN(ptr_hook, callback)) (
ptr_hook->callback_pointer,
ptr_hook->callback_data,
buffer,
ptr_command);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
if (rc == WEECHAT_RC_OK_EAT)
{
if (command2)
+3 -2
View File
@@ -364,6 +364,7 @@ hook_command_exec (struct t_gui_buffer *buffer, int any_plugin,
struct t_hook *ptr_hook, *next_hook;
struct t_hook *hook_plugin, *hook_other_plugin, *hook_other_plugin2;
struct t_hook *hook_incomplete_command;
struct t_hook_exec_cb hook_exec_cb;
char **argv, **argv_eol;
const char *ptr_command_name;
int argc, rc, length_command_name, allow_incomplete_commands;
@@ -500,7 +501,7 @@ hook_command_exec (struct t_gui_buffer *buffer, int any_plugin,
else
{
/* execute the command! */
ptr_hook->running++;
hook_callback_start (ptr_hook, &hook_exec_cb);
rc = (int) (HOOK_COMMAND(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
@@ -508,7 +509,7 @@ hook_command_exec (struct t_gui_buffer *buffer, int any_plugin,
argc,
argv,
argv_eol);
ptr_hook->running--;
hook_callback_end (ptr_hook, &hook_exec_cb);
if (rc == WEECHAT_RC_ERROR)
rc = HOOK_COMMAND_EXEC_ERROR;
else
+3 -2
View File
@@ -107,6 +107,7 @@ hook_completion_exec (struct t_weechat_plugin *plugin,
struct t_gui_completion *completion)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
const char *pos;
char *item;
@@ -134,14 +135,14 @@ hook_completion_exec (struct t_weechat_plugin *plugin,
&& !ptr_hook->running
&& (strcmp (HOOK_COMPLETION(ptr_hook, completion_item), item) == 0))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
(void) (HOOK_COMPLETION(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
completion_item,
buffer,
completion);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
}
ptr_hook = next_hook;
+3 -2
View File
@@ -98,6 +98,7 @@ void
hook_config_exec (const char *option, const char *value)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
hook_exec_start ();
@@ -111,13 +112,13 @@ hook_config_exec (const char *option, const char *value)
&& (!HOOK_CONFIG(ptr_hook, option)
|| (string_match (option, HOOK_CONFIG(ptr_hook, option), 0))))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
(void) (HOOK_CONFIG(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
option,
value);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
}
ptr_hook = next_hook;
+4 -3
View File
@@ -203,8 +203,9 @@ hook_fd (struct t_weechat_plugin *plugin, int fd, int flag_read,
void
hook_fd_exec ()
{
int i, num_fd, timeout, ready, found;
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
int i, num_fd, timeout, ready, found;
if (!weechat_hooks[HOOK_TYPE_FD])
return;
@@ -279,12 +280,12 @@ hook_fd_exec ()
}
if (found)
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
(void) (HOOK_FD(ptr_hook, callback)) (
ptr_hook->callback_pointer,
ptr_hook->callback_data,
HOOK_FD(ptr_hook, fd));
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
}
}
+5 -4
View File
@@ -153,6 +153,7 @@ hook_focus_get_data (struct t_hashtable *hashtable_focus1,
struct t_hashtable *hashtable_focus2)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
struct t_hashtable *hashtable1, *hashtable2, *hashtable_ret;
const char *focus1_chat, *focus1_bar_item_name, *keys;
char **list_keys, *new_key;
@@ -185,12 +186,12 @@ hook_focus_get_data (struct t_hashtable *hashtable_focus1,
&& (strcmp (HOOK_FOCUS(ptr_hook, area), focus1_bar_item_name) == 0))))
{
/* run callback for focus #1 */
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
hashtable_ret = (HOOK_FOCUS(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
hashtable1);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
if (hashtable_ret)
{
if (hashtable_ret != hashtable1)
@@ -209,12 +210,12 @@ hook_focus_get_data (struct t_hashtable *hashtable_focus1,
/* run callback for focus #2 */
if (hashtable2)
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
hashtable_ret = (HOOK_FOCUS(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
hashtable2);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
if (hashtable_ret)
{
if (hashtable_ret != hashtable2)
+3 -2
View File
@@ -102,6 +102,7 @@ struct t_hdata *
hook_hdata_get (struct t_weechat_plugin *plugin, const char *hdata_name)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
struct t_hdata *value;
/* make C compiler happy */
@@ -128,12 +129,12 @@ hook_hdata_get (struct t_weechat_plugin *plugin, const char *hdata_name)
&& !ptr_hook->running
&& (strcmp (HOOK_HDATA(ptr_hook, hdata_name), hdata_name) == 0))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
value = (HOOK_HDATA(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
HOOK_HDATA(ptr_hook, hdata_name));
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
hook_exec_end ();
return value;
+3 -2
View File
@@ -129,6 +129,7 @@ int
hook_hsignal_send (const char *signal, struct t_hashtable *hashtable)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
int rc;
rc = WEECHAT_RC_OK;
@@ -144,13 +145,13 @@ hook_hsignal_send (const char *signal, struct t_hashtable *hashtable)
&& !ptr_hook->running
&& (hook_hsignal_match (signal, ptr_hook)))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
rc = (HOOK_HSIGNAL(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
signal,
hashtable);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
if (rc == WEECHAT_RC_OK_EAT)
break;
+3 -2
View File
@@ -106,6 +106,7 @@ hook_info_get_hashtable (struct t_weechat_plugin *plugin, const char *info_name,
struct t_hashtable *hashtable)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
struct t_hashtable *value;
/* make C compiler happy */
@@ -125,13 +126,13 @@ hook_info_get_hashtable (struct t_weechat_plugin *plugin, const char *info_name,
&& !ptr_hook->running
&& (strcmp (HOOK_INFO_HASHTABLE(ptr_hook, info_name), info_name) == 0))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
value = (HOOK_INFO_HASHTABLE(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
info_name,
hashtable);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
hook_exec_end ();
return value;
+3 -2
View File
@@ -105,6 +105,7 @@ hook_info_get (struct t_weechat_plugin *plugin, const char *info_name,
const char *arguments)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
char *value;
/* make C compiler happy */
@@ -124,13 +125,13 @@ hook_info_get (struct t_weechat_plugin *plugin, const char *info_name,
&& !ptr_hook->running
&& (strcmp (HOOK_INFO(ptr_hook, info_name), info_name) == 0))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
value = (HOOK_INFO(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
info_name,
arguments);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
hook_exec_end ();
return value;
+3 -2
View File
@@ -106,6 +106,7 @@ hook_infolist_get (struct t_weechat_plugin *plugin, const char *infolist_name,
void *pointer, const char *arguments)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
struct t_infolist *value;
/* make C compiler happy */
@@ -125,14 +126,14 @@ hook_infolist_get (struct t_weechat_plugin *plugin, const char *infolist_name,
&& !ptr_hook->running
&& (strcmp (HOOK_INFOLIST(ptr_hook, infolist_name), infolist_name) == 0))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
value = (HOOK_INFOLIST(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
infolist_name,
pointer,
arguments);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
hook_exec_end ();
return value;
+3 -2
View File
@@ -125,6 +125,7 @@ void
hook_line_exec (struct t_gui_line *line)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
struct t_hashtable *hashtable, *hashtable2;
char str_value[128], *str_tags;
@@ -182,12 +183,12 @@ hook_line_exec (struct t_gui_line *line)
HASHTABLE_SET_STR_NOT_NULL("message", line->data->message);
/* run callback */
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
hashtable2 = (HOOK_LINE(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
hashtable);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
if (hashtable2)
{
+3 -2
View File
@@ -100,6 +100,7 @@ hook_modifier_exec (struct t_weechat_plugin *plugin, const char *modifier,
const char *modifier_data, const char *string)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
char *new_msg, *message_modified;
/* make C compiler happy */
@@ -125,14 +126,14 @@ hook_modifier_exec (struct t_weechat_plugin *plugin, const char *modifier,
&& (string_strcasecmp (HOOK_MODIFIER(ptr_hook, modifier),
modifier) == 0))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
new_msg = (HOOK_MODIFIER(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
modifier,
modifier_data,
message_modified);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
/* empty string returned => message dropped */
if (new_msg && !new_msg[0])
+3 -2
View File
@@ -121,6 +121,7 @@ void
hook_print_exec (struct t_gui_buffer *buffer, struct t_gui_line *line)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
char *prefix_no_color, *message_no_color;
if (!weechat_hooks[HOOK_TYPE_PRINT])
@@ -161,7 +162,7 @@ hook_print_exec (struct t_gui_buffer *buffer, struct t_gui_line *line)
HOOK_PRINT(ptr_hook, tags_array))))
{
/* run callback */
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
(void) (HOOK_PRINT(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
@@ -172,7 +173,7 @@ hook_print_exec (struct t_gui_buffer *buffer, struct t_gui_line *line)
(int)line->data->displayed, (int)line->data->highlight,
(HOOK_PRINT(ptr_hook, strip_colors)) ? prefix_no_color : line->data->prefix,
(HOOK_PRINT(ptr_hook, strip_colors)) ? message_no_color : line->data->message);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
}
ptr_hook = next_hook;
+3 -2
View File
@@ -792,6 +792,7 @@ void
hook_process_exec ()
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
hook_exec_start ();
@@ -804,9 +805,9 @@ hook_process_exec ()
&& !ptr_hook->running
&& (HOOK_PROCESS(ptr_hook, child_pid) == 0))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
hook_process_run (ptr_hook);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
}
ptr_hook = next_hook;
+3 -2
View File
@@ -129,6 +129,7 @@ int
hook_signal_send (const char *signal, const char *type_data, void *signal_data)
{
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
int rc;
rc = WEECHAT_RC_OK;
@@ -144,14 +145,14 @@ hook_signal_send (const char *signal, const char *type_data, void *signal_data)
&& !ptr_hook->running
&& hook_signal_match (signal, ptr_hook))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
rc = (HOOK_SIGNAL(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
signal,
type_data,
signal_data);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
if (rc == WEECHAT_RC_OK_EAT)
break;
+4 -3
View File
@@ -302,8 +302,9 @@ end:
void
hook_timer_exec ()
{
struct timeval tv_time;
struct t_hook *ptr_hook, *next_hook;
struct t_hook_exec_cb hook_exec_cb;
struct timeval tv_time;
if (!weechat_hooks[HOOK_TYPE_TIMER])
return;
@@ -324,13 +325,13 @@ hook_timer_exec ()
&& (util_timeval_cmp (&HOOK_TIMER(ptr_hook, next_exec),
&tv_time) <= 0))
{
ptr_hook->running = 1;
hook_callback_start (ptr_hook, &hook_exec_cb);
(void) (HOOK_TIMER(ptr_hook, callback))
(ptr_hook->callback_pointer,
ptr_hook->callback_data,
(HOOK_TIMER(ptr_hook, remaining_calls) > 0) ?
HOOK_TIMER(ptr_hook, remaining_calls) - 1 : -1);
ptr_hook->running = 0;
hook_callback_end (ptr_hook, &hook_exec_cb);
if (!ptr_hook->deleted)
{
HOOK_TIMER(ptr_hook, last_exec).tv_sec = tv_time.tv_sec;
+36 -2
View File
@@ -1988,7 +1988,8 @@ COMMAND_CALLBACK(debug)
struct t_config_option *ptr_option;
struct t_weechat_plugin *ptr_plugin;
struct timeval time_start, time_end;
char *result;
char *result, *str_threshold;
long long threshold;
int debug;
/* make C compiler happy */
@@ -2023,6 +2024,28 @@ COMMAND_CALLBACK(debug)
return WEECHAT_RC_OK;
}
if (string_strcmp (argv[1], "callbacks") == 0)
{
COMMAND_MIN_ARGS(3, "callbacks");
threshold = util_parse_delay (argv[2], 1);
if (threshold > 0)
{
str_threshold = util_get_microseconds_string (threshold);
debug_long_callbacks = threshold;
gui_chat_printf (NULL,
_("Debug enabled for callbacks (threshold: %s)"),
(str_threshold) ? str_threshold : "?");
if (str_threshold)
free (str_threshold);
}
else
{
debug_long_callbacks = 0;
gui_chat_printf (NULL, _("Debug disabled for callbacks"));
}
return WEECHAT_RC_OK;
}
if (string_strcmp (argv[1], "certs") == 0)
{
gui_chat_printf (NULL,
@@ -8024,6 +8047,7 @@ command_init ()
" || dump|hooks [<plugin>]"
" || buffer|certs|color|dirs|infolists|libs|memory|tags|"
"term|windows"
" || callbacks <duration>[<unit>]"
" || mouse|cursor [verbose]"
" || hdata [free]"
" || time <command>"
@@ -8036,7 +8060,16 @@ command_init ()
"written when WeeChat crashes)\n"
" hooks: display infos about hooks (with a plugin: display "
"detailed info about hooks created by the plugin)\n"
" buffer: dump buffer content with hexadecimal values in log file\n"
" buffer: dump buffer content with hexadecimal values in WeeChat "
"log file\n"
"callbacks: write hook and bar item callbacks that took more than "
"\"duration\" in the WeeChat log file (0 = disable), where optional "
"unit is one of:\n"
" us: microseconds (default)\n"
" ms: milliseconds\n"
" s: seconds\n"
" m: minutes\n"
" h: hours\n"
" certs: display number of loaded trusted certificate authorities\n"
" color: display infos about current color pairs\n"
" cursor: toggle debug for cursor mode\n"
@@ -8066,6 +8099,7 @@ command_init ()
" || set %(plugins_names)|" PLUGIN_CORE
" || dump %(plugins_names)|" PLUGIN_CORE
" || buffer"
" || callbacks"
" || certs"
" || color"
" || cursor verbose"
+3
View File
@@ -67,6 +67,9 @@
int debug_dump_active = 0;
long long debug_long_callbacks = 0; /* callbacks taking more than */
/* N microseconds will be traced */
/*
* Writes dump of data to WeeChat log file.
+2
View File
@@ -24,6 +24,8 @@
struct t_gui_window_tree;
extern long long debug_long_callbacks;
extern void debug_sigsegv_cb ();
extern void debug_windows_tree ();
extern void debug_memory ();
+63
View File
@@ -31,12 +31,14 @@
#include <errno.h>
#include "weechat.h"
#include "wee-debug.h"
#include "wee-hook.h"
#include "wee-hashtable.h"
#include "wee-infolist.h"
#include "wee-log.h"
#include "wee-signal.h"
#include "wee-string.h"
#include "wee-util.h"
#include "../gui/gui-chat.h"
#include "../plugins/plugin.h"
@@ -426,6 +428,67 @@ hook_exec_end ()
hook_remove_deleted ();
}
/*
* Starts execution of a hook callback.
*/
void
hook_callback_start (struct t_hook *hook, struct t_hook_exec_cb *hook_exec_cb)
{
if (hook->type == HOOK_TYPE_COMMAND)
hook->running++;
else
hook->running = 1;
if (debug_long_callbacks > 0)
{
gettimeofday (&hook_exec_cb->start_time, NULL);
}
else
{
hook_exec_cb->start_time.tv_sec = 0;
hook_exec_cb->start_time.tv_usec = 0;
}
}
/*
* Ends execution of a hook callback.
*/
void
hook_callback_end (struct t_hook *hook, struct t_hook_exec_cb *hook_exec_cb)
{
struct timeval end_time;
long long time_diff;
char *str_diff;
if (hook->type == HOOK_TYPE_COMMAND)
hook->running--;
else
hook->running = 0;
if ((debug_long_callbacks > 0)
&& (hook_exec_cb->start_time.tv_sec > 0))
{
gettimeofday (&end_time, NULL);
time_diff = util_timeval_diff (&hook_exec_cb->start_time, &end_time);
if (time_diff >= debug_long_callbacks)
{
str_diff = util_get_microseconds_string (time_diff);
log_printf (
_("debug: long callback: hook %s (%s), plugin: %s, "
"subplugin: %s, time elapsed: %s"),
hook_type_string[hook->type],
hook_get_description (hook),
plugin_get_name (hook->plugin),
(hook->subplugin) ? hook->subplugin : "-",
str_diff);
if (str_diff)
free (str_diff);
}
}
}
/*
* Returns description of hook.
*
+11
View File
@@ -110,6 +110,12 @@ struct t_hook
struct t_hook *next_hook; /* link to next hook */
};
struct t_hook_exec_cb
{
struct timeval start_time; /* callback exec star time (to trace */
/* long running callbacks) */
};
/* hook variables */
extern char *hook_type_string[];
@@ -118,6 +124,7 @@ extern struct t_hook *last_weechat_hook[];
extern int hooks_count[];
extern int hooks_count_total;
extern int hook_socketpair_ok;
extern long long hook_debug_long_callbacks;
/* hook functions */
@@ -130,6 +137,10 @@ extern void hook_init_data (struct t_hook *hook,
extern int hook_valid (struct t_hook *hook);
extern void hook_exec_start ();
extern void hook_exec_end ();
extern void hook_callback_start (struct t_hook *hook,
struct t_hook_exec_cb *hook_exec_cb);
extern void hook_callback_end (struct t_hook *hook,
struct t_hook_exec_cb *hook_exec_cb);
extern char *hook_get_description (struct t_hook *hook);
extern void hook_set (struct t_hook *hook, const char *property,
const char *value);
+32 -1
View File
@@ -30,6 +30,7 @@
#include "../core/weechat.h"
#include "../core/wee-arraylist.h"
#include "../core/wee-config.h"
#include "../core/wee-debug.h"
#include "../core/wee-hashtable.h"
#include "../core/wee-hdata.h"
#include "../core/wee-hook.h"
@@ -37,6 +38,7 @@
#include "../core/wee-log.h"
#include "../core/wee-string.h"
#include "../core/wee-utf8.h"
#include "../core/wee-util.h"
#include "../plugins/plugin.h"
#include "gui-bar-item.h"
#include "gui-bar.h"
@@ -359,9 +361,11 @@ gui_bar_item_get_value (struct t_gui_bar *bar, struct t_gui_window *window,
int item, int subitem)
{
char *item_value, delimiter_color[32], bar_color[32];
char **result, str_attr[8];
char **result, str_attr[8], *str_diff;
struct t_gui_buffer *buffer;
struct t_gui_bar_item *ptr_item;
struct timeval start_time, end_time;
long long time_diff;
if (!bar || !bar->items_array[item][subitem])
return NULL;
@@ -383,6 +387,15 @@ gui_bar_item_get_value (struct t_gui_bar *bar, struct t_gui_window *window,
bar->items_name[item][subitem]);
if (ptr_item && ptr_item->build_callback)
{
if (debug_long_callbacks > 0)
{
gettimeofday (&start_time, NULL);
}
else
{
start_time.tv_sec = 0;
start_time.tv_usec = 0;
}
item_value = (ptr_item->build_callback) (
ptr_item->build_callback_pointer,
ptr_item->build_callback_data,
@@ -390,6 +403,24 @@ gui_bar_item_get_value (struct t_gui_bar *bar, struct t_gui_window *window,
window,
buffer,
NULL);
if ((debug_long_callbacks > 0) && (start_time.tv_sec > 0))
{
gettimeofday (&end_time, NULL);
time_diff = util_timeval_diff (&start_time, &end_time);
if (time_diff >= debug_long_callbacks)
{
str_diff = util_get_microseconds_string (time_diff);
log_printf (
_("debug: long callback: bar: %s, item: %s, plugin: %s, "
"time elapsed: %s"),
bar->name,
ptr_item->name,
plugin_get_name (ptr_item->plugin),
str_diff);
if (str_diff)
free (str_diff);
}
}
}
if (item_value && !item_value[0])
{