diff --git a/ChangeLog b/ChangeLog index 81b6b348a..4ec6a16f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,12 +1,13 @@ WeeChat ChangeLog ================= Sébastien Helleu -v0.4.1-dev, 2013-02-12 +v0.4.1-dev, 2013-02-14 Version 0.4.1 (under dev!) -------------------------- +* core: add option "dirs" for command /debug * core: fix detection of iconv with cmake on OS X (bug #38321) * core: add signal "window_opened" (task #12464) * core: fix structures before buffer data when a buffer is closed diff --git a/po/cs.po b/po/cs.po index c70b2a0e9..ee1916fa5 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-01-20 12:07+0100\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -1188,6 +1188,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -3201,6 +3202,13 @@ msgstr "Využití paměti (viz \"man mallinfo\" pro nápovědu):" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "Využití pamětí není dostupné (funkce \"mallinfo\" nenalezena)" +msgid "Directories:" +msgstr "" + +#, fuzzy +msgid "default" +msgstr "výchozí hodnota" + #, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "%sChyba: příkaz \"%s\" již existuje pro plugin \"%s\"" diff --git a/po/de.po b/po/de.po index b7b820cd2..08c398be3 100644 --- a/po/de.po +++ b/po/de.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-01-20 12:07+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -1225,6 +1225,7 @@ msgstr "" "list || set || dump [] || buffer|color|infolists|" "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]" +#, fuzzy msgid "" " list: list plugins with debug levels\n" " set: set debug level for plugin\n" @@ -1235,6 +1236,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -3622,6 +3624,13 @@ msgstr "Auslastung des Speichers (siehe\"man mallinfo\" für Hilfe):" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "Speicheranzeige nicht verfügbar (Funktion \"mallinfo\" nicht gefunden)" +msgid "Directories:" +msgstr "" + +#, fuzzy +msgid "default" +msgstr "Standardwert: " + #, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "" diff --git a/po/es.po b/po/es.po index 9d1b069a7..2b9845442 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-01-20 12:07+0100\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -1202,6 +1202,7 @@ msgstr "" "list || set || dump [] || buffer|color|infolists|" "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]" +#, fuzzy msgid "" " list: list plugins with debug levels\n" " set: set debug level for plugin\n" @@ -1212,6 +1213,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -3389,6 +3391,13 @@ msgstr "Uso de memoria (ver en \"man mallinfo\" por ayuda):" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "Uso de memoria no disponible (función \"mallinfo\" no encontrada)" +msgid "Directories:" +msgstr "" + +#, fuzzy +msgid "default" +msgstr "predeterminado: " + #, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "%sError: el comando \"%s\" ya existe en el plugin \"%s\"" diff --git a/po/fr.po b/po/fr.po index b1bc354e7..1e0ebcc16 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" -"PO-Revision-Date: 2013-02-10 22:11+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" +"PO-Revision-Date: 2013-02-14 20:41+0100\n" "Last-Translator: Sebastien Helleu \n" "Language-Team: weechat-dev \n" "Language: French\n" @@ -1212,6 +1212,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -1226,14 +1227,12 @@ msgstr "" " set: définir le niveau de debug pour l'extension\n" "extension: nom de l'extension (\"core\" pour le coeur 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" -" buffer: afficher le contenu du tampon en valeurs hexadécimales dans le " -"fichier log\n" +" dump: afficher les variables mémoire WeeChat dans le fichier log (les mêmes messages sont affichés lorsque WeeChat plante)\n" +" buffer: afficher le contenu du tampon en valeurs hexadécimales dans le fichier log\n" " color: afficher des infos sur les paires de couleur courantes\n" " cursor: activer/désactiver le debug pour le mode curseur\n" -" hdata: afficher des infos sur les hdata (avec free: supprimer tous les " -"hdata en mémoire)\n" +" dirs: afficher les répertoires\n" +" hdata: afficher des infos sur les hdata (avec free: supprimer tous les hdata en mémoire)\n" " hooks: afficher des infos sur les hooks\n" "infolists: afficher des infos sur les infolists\n" " memory: afficher des infos sur l'utilisation de la mémoire\n" @@ -3515,6 +3514,12 @@ msgstr "Utilisation mémoire (voir \"man mallinfo\" pour de l'aide) :" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "Utilisation mémoire non disponible (fonction \"mallinfo\" non trouvée)" +msgid "Directories:" +msgstr "Répertoires :" + +msgid "default" +msgstr "défaut" + #, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "" diff --git a/po/hu.po b/po/hu.po index a80034674..7b71392a1 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-01-20 12:07+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -1130,6 +1130,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -2847,6 +2848,13 @@ msgstr "" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "" +msgid "Directories:" +msgstr "" + +#, fuzzy +msgid "default" +msgstr " . alapérték: %d\n" + #, fuzzy, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "%s az ignore már létezik\n" diff --git a/po/it.po b/po/it.po index 1e4eb5a3c..4ad213f91 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-02-03 12:13+0100\n" "Last-Translator: Marco Paolone \n" "Language-Team: weechat-dev \n" @@ -1190,6 +1190,7 @@ msgstr "" "list || set || dump [] || buffer|color|infolists|" "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]" +#, fuzzy msgid "" " list: list plugins with debug levels\n" " set: set debug level for plugin\n" @@ -1200,6 +1201,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -3386,6 +3388,13 @@ msgstr "Uso della memoria (consultare \"man mallinfo\" per aiuto):" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "Uso della memoria non disponibile (funzione \"mallinfo\" non trovata)" +msgid "Directories:" +msgstr "" + +#, fuzzy +msgid "default" +msgstr "predefinito: " + #, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "%sErrore: un altro comando \"%s\" esiste già per il plugin \"%s\"" diff --git a/po/ja.po b/po/ja.po index 5522fd1ad..b94bd7e5d 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-01-20 12:07+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -1175,6 +1175,7 @@ msgstr "" "list || set || dump [] || buffer|color|infolists|" "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]" +#, fuzzy msgid "" " list: list plugins with debug levels\n" " set: set debug level for plugin\n" @@ -1185,6 +1186,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -3372,6 +3374,13 @@ msgstr "メモリ使用量 (ヘルプを見るには \"man mallinfo\" を参照) msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "メモリ使用量は利用できません (\"mallinfo\" 関数が見つかりません)" +msgid "Directories:" +msgstr "" + +#, fuzzy +msgid "default" +msgstr "デフォルト: " + #, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "" diff --git a/po/pl.po b/po/pl.po index c5dfd952f..d8462f6eb 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-01-20 12:08+0100\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -1204,6 +1204,7 @@ msgstr "" "list || set || dump [] || buffer|color|infolists|" "memory|tags|term|windows || mouse|cursor [verbose] || hdata [free]" +#, fuzzy msgid "" " list: list plugins with debug levels\n" " set: set debug level for plugin\n" @@ -1214,6 +1215,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -3459,6 +3461,13 @@ msgstr "Zużycie pamięci (zobacz \"man mallinfo\"):" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "Zużycie pamięci niedostępne (nie znaleziono funkcji \"mallinfo\")" +msgid "Directories:" +msgstr "" + +#, fuzzy +msgid "default" +msgstr "domyślnie: " + #, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "%sBłąd: istnieje juz inna komenda \"%s\" dla wtyczki \"%s\"" diff --git a/po/pt_BR.po b/po/pt_BR.po index e1749fa95..473d5689c 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-01-20 12:08+0100\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -1235,6 +1235,7 @@ msgstr "" "infolists|memory|mouse|tags|term|windows || hdata [free]" # Find a better translation to crash +#, fuzzy msgid "" " list: list plugins with debug levels\n" " set: set debug level for plugin\n" @@ -1245,6 +1246,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -3292,6 +3294,13 @@ msgstr "Uso de memória (veja \"man mallinfo\" para ajuda):" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "Uso de memória não disponível (função \"mallinfo\" não encontrada)" +msgid "Directories:" +msgstr "" + +#, fuzzy +msgid "default" +msgstr "valor padrão" + #, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "%sErro: outro comando \"%s\" já existe para o plugin \"%s\"" diff --git a/po/ru.po b/po/ru.po index 3f77fb7b1..d783a20df 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-10 20:17+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-01-20 12:08+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -1149,6 +1149,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -2873,6 +2874,13 @@ msgstr "" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "" +msgid "Directories:" +msgstr "" + +#, fuzzy +msgid "default" +msgstr " . значение по умолчанию: %d\n" + #, fuzzy, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "%s игнорирование уже существует\n" diff --git a/po/weechat.pot b/po/weechat.pot index 4017d42d3..048a51259 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-14 18:08+0100\n" +"POT-Creation-Date: 2013-02-14 20:40+0100\n" "PO-Revision-Date: 2013-02-14 18:20+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: weechat-dev \n" @@ -1007,6 +1007,7 @@ msgid "" " buffer: dump buffer content with hexadecimal values in log file\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" " hooks: display infos about hooks\n" @@ -2519,6 +2520,12 @@ msgstr "" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "" +msgid "Directories:" +msgstr "" + +msgid "default" +msgstr "" + #, c-format msgid "%sError: another command \"%s\" already exists for plugin \"%s\"" msgstr "" diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 30162f288..6576fe446 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -1414,6 +1414,10 @@ COMMAND_CALLBACK(debug) { debug_windows_tree (); } + else if (string_strcasecmp (argv[1], "dirs") == 0) + { + debug_directories (); + } else if (string_strcasecmp (argv[1], "set") == 0) { COMMAND_MIN_ARGS(4, "debug set"); @@ -5943,6 +5947,7 @@ command_init () "in log file\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" " hooks: display infos about hooks\n" @@ -5958,6 +5963,7 @@ command_init () " || buffer" " || color" " || cursor verbose" + " || dirs" " || hdata free" " || hooks" " || infolists" diff --git a/src/core/wee-debug.c b/src/core/wee-debug.c index 53ac771a9..33e0c7722 100644 --- a/src/core/wee-debug.c +++ b/src/core/wee-debug.c @@ -539,6 +539,22 @@ debug_infolists () } } +/* + * Displays WeeChat directories. + */ + +void +debug_directories () +{ + gui_chat_printf (NULL, ""); + gui_chat_printf (NULL, _("Directories:")); + gui_chat_printf (NULL, " home : %s (%s: %s)", + weechat_home, _("default"), WEECHAT_HOME); + gui_chat_printf (NULL, " lib : %s", WEECHAT_LIBDIR); + gui_chat_printf (NULL, " share : %s", WEECHAT_SHAREDIR); + gui_chat_printf (NULL, " locale: %s", LOCALEDIR); +} + /* * Hooks signals for debug. */ diff --git a/src/core/wee-debug.h b/src/core/wee-debug.h index 9efa10f75..f21bbc7c8 100644 --- a/src/core/wee-debug.h +++ b/src/core/wee-debug.h @@ -28,6 +28,7 @@ extern void debug_memory (); extern void debug_hdata (); extern void debug_hooks (); extern void debug_infolists (); +extern void debug_directories (); extern void debug_init (); #endif /* __WEECHAT_DEBUG_H */