From e9d998a9bfdd96f5a76fc77bc12c42517cc635ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 23 Jun 2026 12:15:47 +0200 Subject: [PATCH] trigger: add unit for timer interval in /help trigger --- po/cs.po | 6 ++++-- po/de.po | 8 ++++++-- po/es.po | 6 ++++-- po/fr.po | 12 +++++++----- po/hu.po | 6 ++++-- po/it.po | 6 ++++-- po/ja.po | 6 ++++-- po/pl.po | 8 ++++++-- po/pt.po | 6 ++++-- po/pt_BR.po | 6 ++++-- po/ru.po | 6 ++++-- po/sr.po | 8 ++++++-- po/tr.po | 6 ++++-- po/weechat.pot | 6 ++++-- src/plugins/trigger/trigger-command.c | 3 ++- 15 files changed, 67 insertions(+), 32 deletions(-) diff --git a/po/cs.po b/po/cs.po index 5495bb09c..761e6afd5 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-05-30 14:01+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: Czech \n" @@ -16690,7 +16690,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/po/de.po b/po/de.po index d5e877b23..5579165f4 100644 --- a/po/de.po +++ b/po/de.po @@ -29,7 +29,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-06-09 10:41+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German - Germany \n" @@ -18181,7 +18181,11 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "> type `command_run`: Befehl(e) (erforderlich)" -msgid "> type `timer`: interval (required), align on second, max calls" +#, fuzzy +#| msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" "> type `timer`: Intervall (erforderlich), an Sekunden anpassen, maximale " "Anzahl an Aufrufen" diff --git a/po/es.po b/po/es.po index 7aada5512..99d48f9ba 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-05-30 14:01+0200\n" "Last-Translator: Santiago Forero \n" "Language-Team: Spanish - Spain \n" @@ -16980,7 +16980,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/po/fr.po b/po/fr.po index 6263eb7a4..d11e2e13b 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-06-08 22:23+0200\n" -"PO-Revision-Date: 2026-06-08 23:14+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" +"PO-Revision-Date: 2026-06-23 12:14+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: French - France \n" "Language: fr\n" @@ -17837,10 +17837,12 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "> type `command_run` : commande(s) (obligatoire)" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" -"> type `timer` : intervalle (obligatoire), alignement sur la seconde, nombre " -"max d'appels" +"> type `timer` : intervalle (obligatoire, en millisecondes), alignement sur " +"la seconde, nombre max d'appels" msgid "> type `config`: name(s) of option (required)" msgstr "> type `config` : nom(s) de l'option (obligatoire)" diff --git a/po/hu.po b/po/hu.po index 78b06208e..2136cecd4 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-03-08 08:59+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: Hungarian \n" @@ -15910,7 +15910,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/po/it.po b/po/it.po index 679f68aef..5b40dff7d 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-05-30 14:02+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: Italian \n" @@ -17070,7 +17070,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/po/ja.po b/po/ja.po index ce8c917db..e861a1e3a 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-05-30 14:02+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -17645,7 +17645,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/po/pl.po b/po/pl.po index bc86f2df2..5063a3e79 100644 --- a/po/pl.po +++ b/po/pl.po @@ -24,7 +24,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2026-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-05-30 14:02+0200\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: Polish \n" @@ -17388,7 +17388,11 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "> typ `command_run`: komenda(-y) (wymagane)" -msgid "> type `timer`: interval (required), align on second, max calls" +#, fuzzy +#| msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" "> typ `timer`: interwał (wymagany), wyrównane do sekund, maksymalne wywołania" diff --git a/po/pt.po b/po/pt.po index edef9a90d..c29919e8b 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-05-30 14:02+0200\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese - Portugal \n" @@ -17535,7 +17535,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/po/pt_BR.po b/po/pt_BR.po index 21b4b28aa..1dcb22879 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-05-30 14:02+0200\n" "Last-Translator: Érico Nogueira \n" "Language-Team: Portuguese - Brazil \n" @@ -16466,7 +16466,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/po/ru.po b/po/ru.po index 34e640f29..88f1b41ad 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-03-08 08:59+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: Russian \n" @@ -15962,7 +15962,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/po/sr.po b/po/sr.po index f4df75d67..97299c0e5 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-05-30 14:02+0200\n" "Last-Translator: Ivan Pešić \n" "Language-Team: Serbian \n" @@ -17333,7 +17333,11 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "> тип `command_run`: команд(а/е) (обавезно)" -msgid "> type `timer`: interval (required), align on second, max calls" +#, fuzzy +#| msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "> тип `timer`: интервал (обавезан), поравнање на секунди, макс позива" msgid "> type `config`: name(s) of option (required)" diff --git a/po/tr.po b/po/tr.po index b2e240be6..522ca0c96 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2026-05-30 14:02+0200\n" "Last-Translator: Emir SARI \n" "Language-Team: Turkish \n" @@ -17755,7 +17755,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/po/weechat.pot b/po/weechat.pot index 2be39d598..bfa08b8a1 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-06-08 22:23+0200\n" +"POT-Creation-Date: 2026-06-23 12:14+0200\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -14579,7 +14579,9 @@ msgstr "" msgid "> type `command_run`: command(s) (required)" msgstr "" -msgid "> type `timer`: interval (required), align on second, max calls" +msgid "" +"> type `timer`: interval (required, in milliseconds), align on second, max " +"calls" msgstr "" msgid "> type `config`: name(s) of option (required)" diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c index a6f2c7b52..3a41e7341 100644 --- a/src/plugins/trigger/trigger-command.c +++ b/src/plugins/trigger/trigger-command.c @@ -1305,7 +1305,8 @@ trigger_command_init (void) "are evaluated, \"${tg_trigger_name}\" is replaced by the trigger " "name, see /help eval)"), N_("> type `command_run`: command(s) (required)"), - N_("> type `timer`: interval (required), align on second, max calls"), + N_("> type `timer`: interval (required, in milliseconds), " + "align on second, max calls"), N_("> type `config`: name(s) of option (required)"), N_("> type `focus`: name(s) of area (required)"), N_("> type `info`: name(s) of info (required)"),