diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-04-05 21:04:54 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-04-05 21:04:54 +0200 |
commit | 5c801f2741dec493bf2801203f9d0937c1f91cc4 (patch) | |
tree | 5de3cb7019dcb404bc6b63065d66fc2c8ad2af7a | |
parent | 87216279cae1d3b8a7fb13031dfd00ab0452fd35 (diff) | |
download | weechat-5c801f2741dec493bf2801203f9d0937c1f91cc4.zip |
irc: display a warning if command name in option `irc.msgbuffer.*` is not lower case
-rw-r--r-- | po/cs.po | 8 | ||||
-rw-r--r-- | po/de.po | 8 | ||||
-rw-r--r-- | po/es.po | 8 | ||||
-rw-r--r-- | po/fr.po | 12 | ||||
-rw-r--r-- | po/hu.po | 8 | ||||
-rw-r--r-- | po/it.po | 8 | ||||
-rw-r--r-- | po/ja.po | 8 | ||||
-rw-r--r-- | po/pl.po | 8 | ||||
-rw-r--r-- | po/pt.po | 8 | ||||
-rw-r--r-- | po/pt_BR.po | 8 | ||||
-rw-r--r-- | po/ru.po | 8 | ||||
-rw-r--r-- | po/sr.po | 8 | ||||
-rw-r--r-- | po/tr.po | 8 | ||||
-rw-r--r-- | po/weechat.pot | 8 | ||||
-rw-r--r-- | src/plugins/irc/irc-config.c | 15 |
15 files changed, 116 insertions, 15 deletions
@@ -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" @@ -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" @@ -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" @@ -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" @@ -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 "" @@ -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" @@ -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 サーバから受け取ったメッセージを表示するバッファ" @@ -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" @@ -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" @@ -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 "" @@ -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 сервера" @@ -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", |