diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-24 16:50:45 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-24 16:50:45 +0100 |
commit | 28fc733aaf27d43f56cb97ac909855722b82540a (patch) | |
tree | eee574bb6903e21703fda78ea457af974fa83363 | |
parent | 77002288234d0255f5f92065b0ece8c9f3b65e3d (diff) | |
download | weechat-28fc733aaf27d43f56cb97ac909855722b82540a.zip |
core: display when zstd is not available in output of `/debug libs`
-rw-r--r-- | po/cs.po | 10 | ||||
-rw-r--r-- | po/de.po | 18 | ||||
-rw-r--r-- | po/es.po | 9 | ||||
-rw-r--r-- | po/fr.po | 10 | ||||
-rw-r--r-- | po/hu.po | 9 | ||||
-rw-r--r-- | po/it.po | 9 | ||||
-rw-r--r-- | po/ja.po | 10 | ||||
-rw-r--r-- | po/pl.po | 10 | ||||
-rw-r--r-- | po/pt.po | 10 | ||||
-rw-r--r-- | po/pt_BR.po | 9 | ||||
-rw-r--r-- | po/ru.po | 9 | ||||
-rw-r--r-- | po/sr.po | 10 | ||||
-rw-r--r-- | po/tr.po | 10 | ||||
-rw-r--r-- | po/weechat.pot | 8 | ||||
-rw-r--r-- | src/core/wee-debug.c | 63 |
15 files changed, 156 insertions, 48 deletions
@@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5161,6 +5161,14 @@ 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 "not initialized" +msgstr "" + +#, fuzzy +#| msgid "no variable" +msgid "not available" +msgstr "není proměnná" + msgid "TEMPORARY, deleted on exit" msgstr "" @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-12-13 21:21+0100\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German <kde-i18n-de@kde.org>\n" @@ -5852,6 +5852,14 @@ 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 "not initialized" +msgstr "" + +#, fuzzy +#| msgid "no variable" +msgid "not available" +msgstr "keine Variable" + msgid "TEMPORARY, deleted on exit" msgstr "TEMPORÄR, wird beim Beenden gelöscht" @@ -11470,7 +11478,6 @@ msgstr "zeigt den Host innerhalb einer notice Nachricht an" msgid "display host in part/quit messages" msgstr "zeigt den Host innerhalb einer part/quit Nachricht an" -#| msgid "display host in join messages" msgid "display host in wallops messages" msgstr "zeigt den Host innerhalb von wallops Nachrichten an" @@ -16427,8 +16434,7 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat" msgid "" "list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace " "<name> <hook> " -"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<" -"return_code>\" [\"<post_action>\"]]]]]] " +"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] " "|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> " "<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|" "<mask> [<name>|<mask>...]] || restart <name>|<mask> [<name>|<mask>...] || " @@ -16437,8 +16443,7 @@ msgid "" msgstr "" "list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace " "<name> <hook> " -"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<" -"return_code>\" [\"<post_action>\"]]]]]] " +"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] " "|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> " "<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|" "<mask> [<name>|<mask>...]] || restart <name>|<mask> [<name>|<mask>...] || " @@ -17436,4 +17441,3 @@ msgstr "%s%s: Zeitüberschreitung für \"%s\" mit %s" msgid "%s%s: unable to connect: unexpected error (%d)" msgstr "" "%s%s: Verbindung konnte nicht hergestellt werden: unerwarteter Fehler (%d)" - @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: Santiago Forero <santiago@forero.xyz>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5343,6 +5343,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 "not initialized" +msgstr "" + +#, fuzzy +msgid "not available" +msgstr "Variables" + msgid "TEMPORARY, deleted on exit" msgstr "" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" -"PO-Revision-Date: 2023-12-10 21:11+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" +"PO-Revision-Date: 2023-12-24 16:47+0100\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -5720,6 +5720,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 "not initialized" +msgstr "non initialisé" + +msgid "not available" +msgstr "non disponible" + msgid "TEMPORARY, deleted on exit" msgstr "TEMPORAIRE, supprimé en quittant" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4873,6 +4873,13 @@ msgstr "" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "" +msgid "not initialized" +msgstr "" + +#, fuzzy +msgid "not available" +msgstr " . típus: szám\n" + msgid "TEMPORARY, deleted on exit" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5269,6 +5269,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 "not initialized" +msgstr "" + +#, fuzzy +msgid "not available" +msgstr "Variabili" + msgid "TEMPORARY, deleted on exit" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -5429,6 +5429,14 @@ msgstr "メモリ使用量 (ヘルプを見るには \"man mallinfo\" を参照 msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "メモリ使用量は利用できません (\"mallinfo\" 関数が見つかりません)" +msgid "not initialized" +msgstr "" + +#, fuzzy +#| msgid "no variable" +msgid "not available" +msgstr "変数がありません" + #, fuzzy msgid "TEMPORARY, deleted on exit" msgstr "(一時的、終了時に削除されます)" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-12-04 21:07+0100\n" "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n" "Language-Team: Polish <kde-i18n-doc@kde.org>\n" @@ -5544,6 +5544,14 @@ 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 "not initialized" +msgstr "" + +#, fuzzy +#| msgid "no variable" +msgid "not available" +msgstr "brak zmiennej" + msgid "TEMPORARY, deleted on exit" msgstr "TYMCZASOWY, usuwany przy wyjściu" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -5484,6 +5484,14 @@ msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "" "Utilização de memória não disponível (função \"mallinfo\" não encontrada)" +msgid "not initialized" +msgstr "" + +#, fuzzy +#| msgid "no variable" +msgid "not available" +msgstr "nenhum variável" + msgid "TEMPORARY, deleted on exit" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index 327e96c4e..29dca8428 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-10-20 13:11+0200\n" "Last-Translator: Érico Nogueira <ericonr@disroot.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5225,6 +5225,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 "not initialized" +msgstr "" + +#, fuzzy +msgid "not available" +msgstr "Variáveis" + msgid "TEMPORARY, deleted on exit" msgstr "" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4902,6 +4902,13 @@ msgstr "" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "" +msgid "not initialized" +msgstr "" + +#, fuzzy +msgid "not available" +msgstr " . тип: целочисленный\n" + msgid "TEMPORARY, deleted on exit" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-12-05 14:55+0400\n" "Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5537,6 +5537,14 @@ msgstr "" "Није доступна информација о искоришћењу меморије (није пронађена функција " "„mallinfo”)" +msgid "not initialized" +msgstr "" + +#, fuzzy +#| msgid "no variable" +msgid "not available" +msgstr "нема променљиве" + msgid "TEMPORARY, deleted on exit" msgstr "ПРИВРЕМЕН, брише се приликом напуштања програма" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: Emir SARI <emir_sari@icloud.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5483,6 +5483,14 @@ msgstr "Bellek kullanımı (yardım için bkz. \"man mallinfo\"):" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "Bellek kullanımı mevcut değil (\"mallinfo\" işlevi bulunamadı)" +msgid "not initialized" +msgstr "" + +#, fuzzy +#| msgid "no variable" +msgid "not available" +msgstr "değişken yok" + msgid "TEMPORARY, deleted on exit" msgstr "GEÇİCİ, çıkışta silinir" diff --git a/po/weechat.pot b/po/weechat.pot index 1f618d157..9e7523598 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-12-10 21:05+0100\n" +"POT-Creation-Date: 2023-12-24 16:45+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" @@ -4516,6 +4516,12 @@ msgstr "" msgid "Memory usage not available (function \"mallinfo\" not found)" msgstr "" +msgid "not initialized" +msgstr "" + +msgid "not available" +msgstr "" + msgid "TEMPORARY, deleted on exit" msgstr "" diff --git a/src/core/wee-debug.c b/src/core/wee-debug.c index ef93135db..cb8b811dc 100644 --- a/src/core/wee-debug.c +++ b/src/core/wee-debug.c @@ -639,6 +639,27 @@ debug_libs_cb (const void *pointer, void *data, const char *signal, const char *type_data, void *signal_data) { +#ifdef GCRYPT_VERSION + const char *version_gcrypt = GCRYPT_VERSION; +#else + const char *version_gcrypt = "(?)"; +#endif +#ifdef GNUTLS_VERSION + const char *version_gnutls = GNUTLS_VERSION; +#else + const char *version_gnutls = "(?)"; +#endif +#ifdef LIBCURL_VERSION + const char *version_libcurl = LIBCURL_VERSION; +#else + const char *version_libcurl = "(?)"; +#endif +#ifdef ZLIB_VERSION + const char *version_zlib = ZLIB_VERSION; +#else + const char *version_zlib = "(?)"; +#endif + /* make C compiler happy */ (void) pointer; (void) data; @@ -652,45 +673,33 @@ debug_libs_cb (const void *pointer, void *data, gui_main_debug_libs (); /* display gcrypt version */ -#ifdef GCRYPT_VERSION - gui_chat_printf (NULL, " gcrypt: %s%s", - GCRYPT_VERSION, - (weechat_no_gcrypt) ? " (not initialized)" : ""); -#else - gui_chat_printf (NULL, " gcrypt: (?)%s", - (weechat_no_gcrypt) ? " (not initialized)" : ""); -#endif /* GCRYPT_VERSION */ + gui_chat_printf (NULL, " gcrypt: %s%s%s%s", + version_gcrypt, + (weechat_no_gcrypt) ? " (" : "", + (weechat_no_gcrypt) ? _("not initialized") : "", + (weechat_no_gcrypt) ? ")" : ""); /* display gnutls version */ -#ifdef GNUTLS_VERSION - gui_chat_printf (NULL, " gnutls: %s%s", - GNUTLS_VERSION, - (weechat_no_gnutls) ? " (not initialized)" : ""); -#else - gui_chat_printf (NULL, " gnutls: (?)%s", - (weechat_no_gnutls) ? " (not initialized)" : ""); -#endif /* GNUTLS_VERSION */ + gui_chat_printf (NULL, " gnutls: %s%s%s%s", + version_gnutls, + (weechat_no_gnutls) ? " (" : "", + (weechat_no_gnutls) ? _("not initialized") : "", + (weechat_no_gnutls) ? ")" : ""); /* display curl version */ -#ifdef LIBCURL_VERSION - gui_chat_printf (NULL, " curl: %s", LIBCURL_VERSION); -#else - gui_chat_printf (NULL, " curl: (?)"); -#endif /* LIBCURL_VERSION */ + gui_chat_printf (NULL, " curl: %s", version_libcurl); /* display zlib version */ -#ifdef ZLIB_VERSION - gui_chat_printf (NULL, " zlib: %s", ZLIB_VERSION); -#else - gui_chat_printf (NULL, " zlib: (?)"); -#endif /* ZLIB_VERSION */ + gui_chat_printf (NULL, " zlib: %s", version_zlib); -#ifdef HAVE_ZSTD /* display zstd version */ +#ifdef HAVE_ZSTD gui_chat_printf (NULL, " zstd: %d.%d.%d", ZSTD_VERSION_MAJOR, ZSTD_VERSION_MINOR, ZSTD_VERSION_RELEASE); +#else + gui_chat_printf (NULL, " zstd: %s", _("not available")); #endif /* HAVE_ZSTD */ return WEECHAT_RC_OK; |