diff --git a/po/cs.po b/po/cs.po index a726df2df..6c7ed4f9a 100644 --- a/po/cs.po +++ b/po/cs.po @@ -23,7 +23,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-05-30 14:01+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: Czech \n" @@ -6331,6 +6331,9 @@ msgstr "%s: chyba: slovník \"%s\" není ve vašem systému dostupný" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Využití paměti (viz \"man mallinfo\" pro nápovědu):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/de.po b/po/de.po index 8649f5213..7e260728a 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: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-06-28 08:28+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -7169,6 +7169,9 @@ msgstr "Die Systemfunktion „%s“ ist nicht verfügbar" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Ressourcennutzung (siehe „man getrusage“ für Hilfe):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/es.po b/po/es.po index 269947a57..8187c6120 100644 --- a/po/es.po +++ b/po/es.po @@ -24,7 +24,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-06-28 08:46+0200\n" "Last-Translator: Santiago Forero \n" "Language-Team: Spanish \n" @@ -6486,6 +6486,9 @@ msgstr "%s: error: diccionario \"%s\" no está disponible en tu sistema" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Uso de memoria (ver en \"man mallinfo\" por ayuda):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/fr.po b/po/fr.po index 691720039..25cbf873a 100644 --- a/po/fr.po +++ b/po/fr.po @@ -23,8 +23,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" -"PO-Revision-Date: 2026-07-04 21:52+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" +"PO-Revision-Date: 2026-07-04 22:02+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: French \n" "Language: fr\n" @@ -7057,6 +7057,9 @@ msgstr "La fonction système \"%s\" n'est pas disponible" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Utilisation des ressources (voir \"man getrusage\" pour de l'aide) :" +msgid "WeeChat default theme for light-background terminals" +msgstr "Thème par défaut de WeeChat par défaut pour les terminaux à fond clair" + msgid "Automatic backup" msgstr "Sauvegarde automatique" diff --git a/po/hu.po b/po/hu.po index 12fb96797..3613a7605 100644 --- a/po/hu.po +++ b/po/hu.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-03-08 08:59+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: Hungarian \n" @@ -6000,6 +6000,9 @@ msgstr "%s a \"%s\" modul nem található\n" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/it.po b/po/it.po index e2c68c7f5..aaab9288b 100644 --- a/po/it.po +++ b/po/it.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-05-30 14:02+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: Italian \n" @@ -6474,6 +6474,9 @@ msgstr "%s: errore: il dizionario \"%s\" non è disponibile su questo sistema" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Uso della memoria (consultare \"man mallinfo\" per aiuto):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/ja.po b/po/ja.po index 84d7eb4c1..a0f372408 100644 --- a/po/ja.po +++ b/po/ja.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-05-30 14:02+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -6652,6 +6652,9 @@ msgstr "%s: エラー: 辞書 \"%s\" がシステム上に見つかりません" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "メモリ使用量 (ヘルプを見るには \"man mallinfo\" を参照してください):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/pl.po b/po/pl.po index 79071bcf7..96efe7528 100644 --- a/po/pl.po +++ b/po/pl.po @@ -23,7 +23,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-06-28 08:55+0200\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: Polish \n" @@ -6830,6 +6830,9 @@ msgstr "Funkcja systemowa \"%s\" nie jest dostępna" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Zużycie zasobów (zobacz \"man getrusage\"):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/pt.po b/po/pt.po index 94ec2623c..61d7a10db 100644 --- a/po/pt.po +++ b/po/pt.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-06-28 08:48+0200\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese \n" @@ -6708,6 +6708,9 @@ msgstr "%s: erro: o dicionário \"%s\" não está disponível no sistema" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Utilização de memória (ver \"man mallingo\" para obter ajuda):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index ac4bc1cd7..afc97743e 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -46,7 +46,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-06-28 08:49+0200\n" "Last-Translator: Érico Nogueira \n" "Language-Team: Portuguese (Brazil) \n" @@ -6375,6 +6375,9 @@ msgstr "%s: erro: dicionário \"%s\" não está disponível em seu sistema" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Uso de memória (veja \"man mallinfo\" para ajuda):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/ru.po b/po/ru.po index 058900246..94bf58b6d 100644 --- a/po/ru.po +++ b/po/ru.po @@ -23,7 +23,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-03-08 08:59+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: Russian \n" @@ -6037,6 +6037,9 @@ msgstr "%s plugin \"%s\" не найден\n" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/sr.po b/po/sr.po index c6326d332..7a4fc9e07 100644 --- a/po/sr.po +++ b/po/sr.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-06-28 08:52+0200\n" "Last-Translator: Ivan Pešić \n" "Language-Team: Serbian \n" @@ -6812,6 +6812,9 @@ msgstr "Системска функција „%s” није доступна" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Употреба ресурса (за помоћ погледајте „man getrusage”):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/tr.po b/po/tr.po index d279f28cf..39f887706 100644 --- a/po/tr.po +++ b/po/tr.po @@ -23,7 +23,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2026-06-28 08:53+0200\n" "Last-Translator: Emir SARI \n" "Language-Team: Turkish \n" @@ -6612,6 +6612,9 @@ msgstr "Sistem işlevi \"%s\" kullanılabilir değil" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "Özkaynak kullanımı (yardım için bkz. \"man getrusage\"):" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index f2b3aad86..21358ae17 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -23,7 +23,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-07-04 21:47+0200\n" +"POT-Creation-Date: 2026-07-04 22:01+0200\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -5594,6 +5594,9 @@ msgstr "" msgid "Resource usage (see \"man getrusage\" for help):" msgstr "" +msgid "WeeChat default theme for light-background terminals" +msgstr "" + msgid "Automatic backup" msgstr "" diff --git a/src/core/core-theme-builtin.c b/src/core/core-theme-builtin.c index 26c457aa3..c97d180e7 100644 --- a/src/core/core-theme-builtin.c +++ b/src/core/core-theme-builtin.c @@ -26,6 +26,8 @@ #endif #include +#include +#include #include "weechat.h" #include "core-hashtable.h" @@ -88,14 +90,16 @@ struct t_theme_builtin_entry theme_builtin_light_core[] = /* * Build a hashtable of overrides from a NULL-terminated table and - * register it under the given theme name. + * register it under the given theme name, with an optional description. */ void theme_builtin_register_entries (const char *name, + const char *description, const struct t_theme_builtin_entry *entries) { struct t_hashtable *overrides; + struct t_theme *theme; int i; if (!name || !entries) @@ -111,7 +115,12 @@ theme_builtin_register_entries (const char *name, for (i = 0; entries[i].option; i++) hashtable_set (overrides, entries[i].option, entries[i].value); - theme_register (NULL, NULL, name, overrides); + theme = theme_register (NULL, NULL, name, overrides); + if (theme && description) + { + free (theme->description); + theme->description = strdup (description); + } hashtable_free (overrides); } @@ -125,5 +134,8 @@ theme_builtin_register_entries (const char *name, void theme_builtin_init (void) { - theme_builtin_register_entries ("light", theme_builtin_light_core); + theme_builtin_register_entries ( + "light", + _("WeeChat default theme for light-background terminals"), + theme_builtin_light_core); } diff --git a/tests/unit/core/test-core-theme.cpp b/tests/unit/core/test-core-theme.cpp index 5f2abb305..15d1a6029 100644 --- a/tests/unit/core/test-core-theme.cpp +++ b/tests/unit/core/test-core-theme.cpp @@ -1143,6 +1143,10 @@ TEST(CoreTheme, BuiltinInit) theme = theme_search ("light"); CHECK(theme != NULL); + /* the built-in "light" theme carries a description */ + CHECK(theme->description != NULL); + CHECK(theme->description[0] != '\0'); + /* sanity check: many core color overrides (>= 30) */ CHECK(theme_overrides_count (theme) >= 30);