From ef5f197a4a2543e7360c680fb1b94ceb7e921df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 30 Jan 2026 13:49:23 +0100 Subject: [PATCH] irc: fix unit of server option `anti_flood` from seconds to milliseconds in output of `/server listfull` --- CHANGELOG.md | 1 + po/cs.po | 11 ++++++++++- po/de.po | 10 +++++++++- po/es.po | 10 +++++++++- po/fr.po | 9 +++++++-- po/hu.po | 8 +++++++- po/it.po | 10 +++++++++- po/ja.po | 9 ++++++++- po/pl.po | 11 ++++++++++- po/pt.po | 10 +++++++++- po/pt_BR.po | 10 +++++++++- po/ru.po | 9 ++++++++- po/sr.po | 11 ++++++++++- po/tr.po | 10 +++++++++- po/weechat.pot | 7 ++++++- src/plugins/irc/irc-command.c | 4 ++-- 16 files changed, 123 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d8bf0a4..498da6fde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ SPDX-License-Identifier: GPL-3.0-or-later ### Fixed - core: fix buffer size in function util_parse_time, causing buffer overflow error in unit tests +- irc: fix unit of server option `anti_flood` from seconds to milliseconds in output of `/server listfull` - irc: fix creation of irc.msgbuffer option without a server name - irc: ignore self join if the channel is already joined ([#2291](https://github.com/weechat/weechat/issues/2291)) diff --git a/po/cs.po b/po/cs.po index dfa5974ce..e16682090 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:48+0100\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -8733,6 +8733,15 @@ msgstr[0] "sekunda" msgstr[1] "sekundy" msgstr[2] "sekund" +#, fuzzy +#| msgid "second" +#| msgid_plural "seconds" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "sekunda" +msgstr[1] "sekundy" +msgstr[2] "sekund" + msgid "minute" msgid_plural "minutes" msgstr[0] "minuta" diff --git a/po/de.po b/po/de.po index 03a43974c..f14c9a281 100644 --- a/po/de.po +++ b/po/de.po @@ -28,7 +28,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:49+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -9957,6 +9957,14 @@ msgid_plural "seconds" msgstr[0] "Sekunde" msgstr[1] "Sekunden" +#, fuzzy +#| msgid "second" +#| msgid_plural "seconds" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "Sekunde" +msgstr[1] "Sekunden" + msgid "minute" msgid_plural "minutes" msgstr[0] "Minute" diff --git a/po/es.po b/po/es.po index 1bff8fff7..78cc1371d 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:49+0100\n" "Last-Translator: Santiago Forero \n" "Language-Team: weechat-dev \n" @@ -8929,6 +8929,14 @@ msgid_plural "seconds" msgstr[0] "segundo" msgstr[1] "segundos" +#, fuzzy +#| msgid "second" +#| msgid_plural "seconds" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "segundo" +msgstr[1] "segundos" + msgid "minute" msgid_plural "minutes" msgstr[0] "minuto" diff --git a/po/fr.po b/po/fr.po index 8b0e0ec8d..02f380d6a 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-01-21 20:45+0100\n" -"PO-Revision-Date: 2026-01-21 21:17+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" +"PO-Revision-Date: 2026-01-30 13:46+0100\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -9791,6 +9791,11 @@ msgid_plural "seconds" msgstr[0] "seconde" msgstr[1] "secondes" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "milliseconde" +msgstr[1] "millisecondes" + msgid "minute" msgid_plural "minutes" msgstr[0] "minute" diff --git a/po/hu.po b/po/hu.po index b7171c230..6e57209a0 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:50+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -8344,6 +8344,12 @@ msgid_plural "seconds" msgstr[0] "másodperc" msgstr[1] "másodperc" +#, fuzzy +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "másodperc" +msgstr[1] "másodperc" + #, fuzzy msgid "minute" msgid_plural "minutes" diff --git a/po/it.po b/po/it.po index 9c74717e7..ced5a40ec 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:50+0100\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -8913,6 +8913,14 @@ msgid_plural "seconds" msgstr[0] "secondo" msgstr[1] "secondi" +#, fuzzy +#| msgid "second" +#| msgid_plural "seconds" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "secondo" +msgstr[1] "secondi" + msgid "minute" msgid_plural "minutes" msgstr[0] "minuto" diff --git a/po/ja.po b/po/ja.po index f93a0553e..7a46998cf 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:51+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" "Language-Team: weechat-dev \n" @@ -9466,6 +9466,15 @@ msgstr[0] "sekunda" msgstr[1] "sekundy" msgstr[2] "sekund" +#, fuzzy +#| msgid "second" +#| msgid_plural "seconds" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "sekunda" +msgstr[1] "sekundy" +msgstr[2] "sekund" + msgid "minute" msgid_plural "minutes" msgstr[0] "minutę" diff --git a/po/pt.po b/po/pt.po index f57746240..9d3b435a3 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:51+0100\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese <>\n" @@ -9191,6 +9191,14 @@ msgid_plural "seconds" msgstr[0] "segundo" msgstr[1] "segundos" +#, fuzzy +#| msgid "second" +#| msgid_plural "seconds" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "segundo" +msgstr[1] "segundos" + msgid "minute" msgid_plural "minutes" msgstr[0] "minuto" diff --git a/po/pt_BR.po b/po/pt_BR.po index ead229be6..c082af6d3 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -23,7 +23,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:51+0100\n" "Last-Translator: Érico Nogueira \n" "Language-Team: weechat-dev \n" @@ -8778,6 +8778,14 @@ msgid_plural "seconds" msgstr[0] "segundo" msgstr[1] "segundos" +#, fuzzy +#| msgid "second" +#| msgid_plural "seconds" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "segundo" +msgstr[1] "segundos" + msgid "minute" msgid_plural "minutes" msgstr[0] "minuto" diff --git a/po/ru.po b/po/ru.po index 12753f366..c1dcd1c62 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:52+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -8387,6 +8387,13 @@ msgstr[0] "секунда" msgstr[1] "секунда" msgstr[2] "секунда" +#, fuzzy +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "секунда" +msgstr[1] "секунда" +msgstr[2] "секунда" + #, fuzzy msgid "minute" msgid_plural "minutes" diff --git a/po/sr.po b/po/sr.po index cf7b476e0..b657b834a 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:52+0100\n" "Last-Translator: Ivan Pešić \n" "Language-Team: weechat-dev \n" @@ -9474,6 +9474,15 @@ msgstr[0] "секунда" msgstr[1] "секунде" msgstr[2] "секунди" +#, fuzzy +#| msgid "second" +#| msgid_plural "seconds" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "секунда" +msgstr[1] "секунде" +msgstr[2] "секунди" + msgid "minute" msgid_plural "minutes" msgstr[0] "минут" diff --git a/po/tr.po b/po/tr.po index cef80b88e..4490429fe 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2026-01-21 20:52+0100\n" "Last-Translator: Emir SARI \n" "Language-Team: weechat-dev \n" @@ -9232,6 +9232,14 @@ msgid_plural "seconds" msgstr[0] "saniye" msgstr[1] "saniye" +#, fuzzy +#| msgid "second" +#| msgid_plural "seconds" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "saniye" +msgstr[1] "saniye" + msgid "minute" msgid_plural "minutes" msgstr[0] "dakika" diff --git a/po/weechat.pot b/po/weechat.pot index ecc60711e..c1b8f0cdc 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-01-21 20:45+0100\n" +"POT-Creation-Date: 2026-01-30 13:45+0100\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -7801,6 +7801,11 @@ msgid_plural "seconds" msgstr[0] "" msgstr[1] "" +msgid "millisecond" +msgid_plural "milliseconds" +msgstr[0] "" +msgstr[1] "" + msgid "minute" msgid_plural "minutes" msgstr[0] "" diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index cea356dec..7d6992579 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -5615,12 +5615,12 @@ irc_command_display_server (struct t_irc_server *server, int with_detail) if (weechat_config_option_is_null (server->options[IRC_SERVER_OPTION_ANTI_FLOOD])) weechat_printf (NULL, " anti_flood . . . . . : (%d %s)", IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_ANTI_FLOOD), - NG_("second", "seconds", IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_ANTI_FLOOD))); + NG_("millisecond", "milliseconds", IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_ANTI_FLOOD))); else weechat_printf (NULL, " anti_flood . . . . . : %s%d %s", IRC_COLOR_CHAT_VALUE, weechat_config_integer (server->options[IRC_SERVER_OPTION_ANTI_FLOOD]), - NG_("second", "seconds", weechat_config_integer (server->options[IRC_SERVER_OPTION_ANTI_FLOOD]))); + NG_("millisecond", "milliseconds", weechat_config_integer (server->options[IRC_SERVER_OPTION_ANTI_FLOOD]))); /* away_check */ if (weechat_config_option_is_null (server->options[IRC_SERVER_OPTION_AWAY_CHECK])) weechat_printf (NULL, " away_check . . . . . : (%d %s)",