summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-12-24 16:50:45 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-12-24 16:50:45 +0100
commit28fc733aaf27d43f56cb97ac909855722b82540a (patch)
treeeee574bb6903e21703fda78ea457af974fa83363
parent77002288234d0255f5f92065b0ece8c9f3b65e3d (diff)
downloadweechat-28fc733aaf27d43f56cb97ac909855722b82540a.zip
core: display when zstd is not available in output of `/debug libs`
-rw-r--r--po/cs.po10
-rw-r--r--po/de.po18
-rw-r--r--po/es.po9
-rw-r--r--po/fr.po10
-rw-r--r--po/hu.po9
-rw-r--r--po/it.po9
-rw-r--r--po/ja.po10
-rw-r--r--po/pl.po10
-rw-r--r--po/pt.po10
-rw-r--r--po/pt_BR.po9
-rw-r--r--po/ru.po9
-rw-r--r--po/sr.po10
-rw-r--r--po/tr.po10
-rw-r--r--po/weechat.pot8
-rw-r--r--src/core/wee-debug.c63
15 files changed, 156 insertions, 48 deletions
diff --git a/po/cs.po b/po/cs.po
index 04077747d..1302d1346 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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 ""
diff --git a/po/de.po b/po/de.po
index 521450c5c..cb8fec378 100644
--- a/po/de.po
+++ b/po/de.po
@@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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)"
-
diff --git a/po/es.po b/po/es.po
index 5e32167cc..5915005b1 100644
--- a/po/es.po
+++ b/po/es.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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 ""
diff --git a/po/fr.po b/po/fr.po
index d99785934..f3d77a1e2 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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"
diff --git a/po/hu.po b/po/hu.po
index c5a2a9e80..14bd01850 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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 ""
diff --git a/po/it.po b/po/it.po
index cf82b8f9e..c40c86cb2 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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 ""
diff --git a/po/ja.po b/po/ja.po
index 1592a3c4e..be71370d4 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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 "(一時的、終了時に削除されます)"
diff --git a/po/pl.po b/po/pl.po
index f030e3474..d634424ba 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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"
diff --git a/po/pt.po b/po/pt.po
index e3765016d..e6c46d57e 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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 ""
diff --git a/po/ru.po b/po/ru.po
index 2e5cd8bde..906cc77e1 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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 ""
diff --git a/po/sr.po b/po/sr.po
index 6a5ffc8f9..bf1a826d1 100644
--- a/po/sr.po
+++ b/po/sr.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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 "ПРИВРЕМЕН, брише се приликом напуштања програма"
diff --git a/po/tr.po b/po/tr.po
index 2a512c906..34dbf77d6 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 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;