summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-04-05 21:04:54 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-04-05 21:04:54 +0200
commit5c801f2741dec493bf2801203f9d0937c1f91cc4 (patch)
tree5de3cb7019dcb404bc6b63065d66fc2c8ad2af7a
parent87216279cae1d3b8a7fb13031dfd00ab0452fd35 (diff)
downloadweechat-5c801f2741dec493bf2801203f9d0937c1f91cc4.zip
irc: display a warning if command name in option `irc.msgbuffer.*` is not lower case
-rw-r--r--po/cs.po8
-rw-r--r--po/de.po8
-rw-r--r--po/es.po8
-rw-r--r--po/fr.po12
-rw-r--r--po/hu.po8
-rw-r--r--po/it.po8
-rw-r--r--po/ja.po8
-rw-r--r--po/pl.po8
-rw-r--r--po/pt.po8
-rw-r--r--po/pt_BR.po8
-rw-r--r--po/ru.po8
-rw-r--r--po/sr.po8
-rw-r--r--po/tr.po8
-rw-r--r--po/weechat.pot8
-rw-r--r--src/plugins/irc/irc-config.c15
15 files changed, 116 insertions, 15 deletions
diff --git a/po/cs.po b/po/cs.po
index 20802f512..86c2997f0 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-25 21:13+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8481,6 +8481,12 @@ msgstr ""
"%s%s: varování: server \"%s\" nenalezen v konfiguračním souboru, nesmazáno z "
"paměti, protože se stále používá"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr "buffer použitý pro zobrazení zprávy obdržené od IRC serveru"
diff --git a/po/de.po b/po/de.po
index 3c9ba2126..0167fd4d0 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-04-01 22:43+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German - Germany <weechatter@arcor.de>\n"
@@ -10545,6 +10545,12 @@ msgstr ""
"gefunden werden. Da der Server zur Zeit genutzt wird, konnte er noch nicht "
"entfernt werden"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr ""
"Buffer welcher zur Ausgabe von IRC Server Nachrichten genutzt werden soll"
diff --git a/po/es.po b/po/es.po
index d4d98aac9..9283534f3 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-25 21:13+0100\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -9144,6 +9144,12 @@ msgstr ""
"%s%s: atención: servidor \"%s\" no encontrado en el archivo de "
"configuración, no es borrado de la memoria porque aún está en uso"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr "buffer donde mostrar los mensajes recibidos desde el servidor IRC"
diff --git a/po/fr.po b/po/fr.po
index b117a4105..3dd0bdf9f 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-04-05 20:55+0200\n"
-"PO-Revision-Date: 2023-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
+"PO-Revision-Date: 2023-04-05 21:04+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -10360,6 +10360,14 @@ msgstr ""
"%s%s : attention : le serveur \"%s\" n'a pas été trouvé dans le fichier de "
"configuration, non supprimé en mémoire car il est en cours d'utilisation"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+"%s%s : attention : le nom de commande \"%s\" doit être en minuscules, "
+"l'option \"irc.msgbuffer.%s\" ne fonctionnera pas"
+
msgid "buffer used to display message received from IRC server"
msgstr "tampon utilisé pour afficher le message reçu du serveur IRC"
diff --git a/po/hu.po b/po/hu.po
index 3354129bc..db7b857cf 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2022-10-15 22:51+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8009,6 +8009,12 @@ msgid ""
"memory because it's currently used"
msgstr ""
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr ""
diff --git a/po/it.po b/po/it.po
index 0b9762ddf..e87b7f88e 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-25 21:13+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8851,6 +8851,12 @@ msgstr ""
"%s%s: attenzione: il server \"%s\" non è stato trovato nel file di "
"configurazione, e non è stato eliminato perché è attivo"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr "buffer usato per visualizzare i messaggi ricevuti dal server IRC"
diff --git a/po/ja.po b/po/ja.po
index 428f6cb3b..eea1b4d25 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-25 21:13+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -9960,6 +9960,12 @@ msgstr ""
"%s%s: 警告: サーバ \"%s\" が設定ファイルに見つかりません、現在使用中のためメ"
"モリから削除されません"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr "IRC サーバから受け取ったメッセージを表示するバッファ"
diff --git a/po/pl.po b/po/pl.po
index 87982393d..69e2003a9 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-27 22:02+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -10778,6 +10778,12 @@ msgstr ""
"%s%s: ostrzeżenie: serwer \"%s\" nie znaleziony w pliku konfiguracyjnym, nie "
"usunięty z pamięci, ponieważ jest obecnie używany"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr "bufor używany do wyświetlania wiadomości otrzymanych od serwera IRC"
diff --git a/po/pt.po b/po/pt.po
index 14d0da8dd..901dffdaf 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-25 21:13+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -9732,6 +9732,12 @@ msgstr ""
"%s%s: aviso: o servidor \"%s\" não foi encontrado no ficheiro de "
"configuração, não foi eliminado da memória porque está a ser utilizado"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr "buffer usado para mostrar mensagens recebidas do servidor IRC"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 90bc42e28..83e28f031 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-25 21:13+0100\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8516,6 +8516,12 @@ msgstr ""
"%s%s: aviso: servidor \"%s\" não encontrado no arquivo de configuração, não "
"foi excluído da memória porque está sendo utilizado atualmente"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr "buffer utilizado para exibir mensagem recebida do servidor IRC"
diff --git a/po/ru.po b/po/ru.po
index 3a1f59a84..a698d8451 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-25 21:13+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -8039,6 +8039,12 @@ msgid ""
"memory because it's currently used"
msgstr ""
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr ""
diff --git a/po/sr.po b/po/sr.po
index 54d8babb8..932aad3fd 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-27 22:15+0200\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -10478,6 +10478,12 @@ msgstr ""
"%s%s: упозорење: у конфигурационом фајлу није пронађен сервер „%s”, није "
"обрисан из меморије јер се тренутно користи"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr "бафер који се користи за приказ поруке која се прими од IRC сервера"
diff --git a/po/tr.po b/po/tr.po
index 4339c1028..d2fd56975 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+0200\n"
"PO-Revision-Date: 2023-03-25 21:13+0100\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -10742,6 +10742,12 @@ msgstr ""
"%s%s: uyarı: \"%s\" sunucusu yapılandırma dosyasında bulunamadı, bellekten "
"silinmedi çünkü şu anda kullanılıyor"
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr ""
"IRC sunucusundan alınan iletileri görüntülemek için kullanılan arabellek"
diff --git a/po/weechat.pot b/po/weechat.pot
index 55b8d2f35..e26fecab3 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-04-05 20:55+0200\n"
+"POT-Creation-Date: 2023-04-05 21:03+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"
@@ -7201,6 +7201,12 @@ msgid ""
"memory because it's currently used"
msgstr ""
+#, c-format
+msgid ""
+"%s%s: warning: the command name \"%s\" must be lower case, the option \"irc."
+"msgbuffer.%s\" will not work"
+msgstr ""
+
msgid "buffer used to display message received from IRC server"
msgstr ""
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index aa6d4677c..bbae1a381 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -1406,6 +1406,7 @@ irc_config_msgbuffer_create_option (const void *pointer, void *data,
const char *option_name, const char *value)
{
struct t_config_option *ptr_option;
+ char *name_lower;
int rc;
/* make C compiler happy */
@@ -1432,6 +1433,20 @@ irc_config_msgbuffer_create_option (const void *pointer, void *data,
{
if (value)
{
+ name_lower = weechat_string_tolower (option_name);
+ if (name_lower && (strcmp (option_name, name_lower) != 0))
+ {
+ weechat_printf (
+ NULL,
+ _("%s%s: warning: the command name \"%s\" must be "
+ "lower case, the option \"irc.msgbuffer.%s\" will "
+ "not work"),
+ weechat_prefix ("error"), IRC_PLUGIN_NAME,
+ option_name, option_name);
+ }
+ if (name_lower)
+ free (name_lower);
+
ptr_option = weechat_config_new_option (
config_file, section,
option_name, "integer",