From 55b5549054194c656b721aeddde6367d4c4c545d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 6 Nov 2022 09:13:02 +0100 Subject: trigger: display failing regex in trigger creation error --- po/cs.po | 11 ++++++++--- po/de.po | 17 ++++++++++++----- po/es.po | 11 ++++++++--- po/fr.po | 17 +++++++++++------ po/hu.po | 10 +++++++--- po/it.po | 11 ++++++++--- po/ja.po | 17 ++++++++++++----- po/pl.po | 17 ++++++++++++----- po/pt.po | 17 ++++++++++++----- po/pt_BR.po | 11 ++++++++--- po/ru.po | 10 +++++++--- po/sr.po | 17 ++++++++++++----- po/tr.po | 17 ++++++++++++----- po/weechat.pot | 10 +++++++--- src/plugins/trigger/trigger-command.c | 16 ++++++++++------ 15 files changed, 146 insertions(+), 63 deletions(-) diff --git a/po/cs.po b/po/cs.po index c645427b4..72ca877c0 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -12818,13 +12818,18 @@ msgid "%s%s: invalid hook type: \"%s\"" msgstr "%s%s: nekorektní znaková sada: \"%s\"" #, fuzzy, c-format -msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "%s%s: nedostatek paměti pro regulární výraz" #, fuzzy, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%s%s: \"%s\" není validní regulární výraz (%s)" +#, fuzzy, c-format +#| msgid "%s%s: not enough memory for regular expression" +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s: nedostatek paměti pro regulární výraz" + #, fuzzy, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%s%s: neplatný návratový kód \"%s\"" diff --git a/po/de.po b/po/de.po index 9cabbe1b2..c307d9cb5 100644 --- a/po/de.po +++ b/po/de.po @@ -25,7 +25,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -15563,14 +15563,21 @@ msgstr "Auflistung der Trigger:" msgid "%s%s: invalid hook type: \"%s\"" msgstr "%s%s: ungültiger hook-Typ: \"%s\"" -#, c-format -msgid "%s%s: invalid format for regular expression" +#, fuzzy, c-format +#| msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "%s%s: ungültiges Format für regulären Ausdruck" -#, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +#, fuzzy, c-format +#| msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%s%s: ungültiger regulärer Ausdruck (Kompilat fehlgeschlagen)" +#, fuzzy, c-format +#| msgid "%s%s: not enough memory for regular expression" +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s: Nicht genügend Speicher für regulären Ausdruck vorhanden" + #, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%s%s: ungültiger Rückgabewert: \"%s\"" diff --git a/po/es.po b/po/es.po index 911cfcef8..2932dd29f 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Santiago Forero \n" "Language-Team: weechat-dev \n" @@ -13431,13 +13431,18 @@ msgid "%s%s: invalid hook type: \"%s\"" msgstr "%sError: no se pudo crear el atajo \"%s\"" #, fuzzy, c-format -msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "color para el prefijo de error" #, fuzzy, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%sError en la expresión a evaluar" +#, fuzzy, c-format +#| msgid "%s%s: not enough memory for regular expression" +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s: no hay suficiente memoria para la expresión regular" + #, fuzzy, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%sError: no se pudo deshacer el atajo \"%s\"" diff --git a/po/fr.po b/po/fr.po index aa39918f9..1c5e0a2ca 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: 2022-11-06 09:02+0100\n" -"PO-Revision-Date: 2022-11-06 09:06+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" +"PO-Revision-Date: 2022-11-06 09:12+0100\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -15102,12 +15102,17 @@ msgid "%s%s: invalid hook type: \"%s\"" msgstr "%s%s : type de hook invalide : \"%s\"" #, c-format -msgid "%s%s: invalid format for regular expression" -msgstr "%s%s : format invalide pour l'expression régulière" +msgid "%s%s: invalid format for regular expression: \"%s\"" +msgstr "%s%s : format invalide pour l'expression régulière : \"%s\"" #, c-format -msgid "%s%s: invalid regular expression (compilation failed)" -msgstr "%s%s : expression régulière invalide (la compilation a échoué)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" +msgstr "" +"%s%s : expression régulière invalide (la compilation a échoué) : \"%s\"" + +#, c-format +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s : pas assez de mémoire pour l'expression régulière : \"%s\"" #, c-format msgid "%s%s: invalid return code: \"%s\"" diff --git a/po/hu.po b/po/hu.po index 04cbed9bb..091a347ab 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -12174,13 +12174,17 @@ msgid "%s%s: invalid hook type: \"%s\"" msgstr "%s nem sikerült a(z) \"%s\" billentyűt hozzárendelni\n" #, fuzzy, c-format -msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "belépési nyíl színe" #, fuzzy, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%s a(z) \"%s\" érvénytelen reguláris kifejezés (%s)\n" +#, fuzzy, c-format +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s nincs elég memória a reguláris kifejezéshez\n" + #, fuzzy, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%s nem sikerült a(z) \"%s\" billentyűparancsot visszavonni\n" diff --git a/po/it.po b/po/it.po index 310f53872..d8deedcf8 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -13259,13 +13259,18 @@ msgid "%s%s: invalid hook type: \"%s\"" msgstr "%sErrore: impossibile associare il tasto \"%s\"" #, fuzzy, c-format -msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "colore del testo per il prefisso di errore" #, fuzzy, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%sErrore nell'espressione da analizzare" +#, fuzzy, c-format +#| msgid "%s%s: not enough memory for regular expression" +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s: memoria non sufficiente per l'espressione regolare" + #, fuzzy, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%sErrore: impossibile rimuovere la combinazione del tasto \"%s\"" diff --git a/po/ja.po b/po/ja.po index 323bb5d18..ddeb34258 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" "Language-Team: Polish \n" @@ -15091,14 +15091,21 @@ msgstr "Lista triggerów:" msgid "%s%s: invalid hook type: \"%s\"" msgstr "%s%s: nieprawidłowy typ hooka: \"%s\"" -#, c-format -msgid "%s%s: invalid format for regular expression" +#, fuzzy, c-format +#| msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "%s%s: nieprawidłowy format dla wyrażenia regularnego" -#, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +#, fuzzy, c-format +#| msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%s%s: nieprawidłowe wyrażenie regularne (kompilacja nieudana)" +#, fuzzy, c-format +#| msgid "%s%s: not enough memory for regular expression" +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s: za mało pamięci dla wyrażenia regularnego" + #, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%s%s: niepoprawny kod powrotu: \"%s\"" diff --git a/po/pt.po b/po/pt.po index 0b0d52133..60e892636 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese <>\n" @@ -14200,14 +14200,21 @@ msgstr "Lista de acionadores:" msgid "%s%s: invalid hook type: \"%s\"" msgstr "%s%s: tipo de hook inválido: \"%s\"" -#, c-format -msgid "%s%s: invalid format for regular expression" +#, fuzzy, c-format +#| msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "%s%s: formato de expressão regular inválido" -#, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +#, fuzzy, c-format +#| msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%s%s: expressão regular inválida (falha ao compilar)" +#, fuzzy, c-format +#| msgid "%s%s: not enough memory for regular expression" +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s: memória insuficiente para a expressão regular" + #, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%s%s: código de retorno inválido: \"%s\"" diff --git a/po/pt_BR.po b/po/pt_BR.po index afffb0917..aa0352025 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Érico Nogueira \n" "Language-Team: weechat-dev \n" @@ -12706,13 +12706,18 @@ msgid "%s%s: invalid hook type: \"%s\"" msgstr "%sErro: não foi possível associar o atalho à tecla \"%s\"" #, fuzzy, c-format -msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "cor do texto para o prefixo de erro" #, fuzzy, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%sErro: incapaz de salvar a sessão em arquivo" +#, fuzzy, c-format +#| msgid "%s%s: not enough memory in function \"%s\"" +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s: memória insuficiente na função \"%s\"" + #, fuzzy, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%sErro: não foi possível desassociar a tecla de atalho \"%s\"" diff --git a/po/ru.po b/po/ru.po index 5271699a4..8f911b0f0 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -12212,13 +12212,17 @@ msgid "%s%s: invalid hook type: \"%s\"" msgstr "%s не могу установить клавишу \"%s\"\n" #, fuzzy, c-format -msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "цвет стрелки захода на канал (префикс)" #, fuzzy, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%s \"%s\" не является регулярным выражением (%s)\n" +#, fuzzy, c-format +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s недостаточно памяти для регулярного выражения\n" + #, fuzzy, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%s не могу отвязать клавишу \"%s\"\n" diff --git a/po/sr.po b/po/sr.po index 620bb67a2..3f92b35d9 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Ivan Pešić \n" "Language-Team: weechat-dev \n" @@ -14966,14 +14966,21 @@ msgstr "Листа окидача:" msgid "%s%s: invalid hook type: \"%s\"" msgstr "%s%s: неважећи тип куке: „%s”" -#, c-format -msgid "%s%s: invalid format for regular expression" +#, fuzzy, c-format +#| msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "%s%s: неважећи формат регуларног израза" -#, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +#, fuzzy, c-format +#| msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%s%s: неважећи регуларни израз (компајлирање није успело)" +#, fuzzy, c-format +#| msgid "%s%s: not enough memory for regular expression" +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s: нема довољно слободне меморије за регуларни израз" + #, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%s%s: неважећи повратни кôд: „%s”" diff --git a/po/tr.po b/po/tr.po index 1fdac094f..8972af835 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2022-10-15 22:51+0200\n" "Last-Translator: Emir SARI \n" "Language-Team: weechat-dev \n" @@ -14844,14 +14844,21 @@ msgstr "Tetiklerin listesi:" msgid "%s%s: invalid hook type: \"%s\"" msgstr "%s%s: Geçersiz kanca türü: \"%s\"" -#, c-format -msgid "%s%s: invalid format for regular expression" +#, fuzzy, c-format +#| msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "%s%s: Geçersiz düzenli ifade biçimi" -#, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +#, fuzzy, c-format +#| msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" msgstr "%s%s: Geçersiz düzenli ifade (derleme başarısız)" +#, fuzzy, c-format +#| msgid "%s%s: not enough memory for regular expression" +msgid "%s%s: not enough memory for regular expression: \"%s\"" +msgstr "%s%s: Düzenli ifade için yetersiz bellek" + #, c-format msgid "%s%s: invalid return code: \"%s\"" msgstr "%s%s: Geçersiz dönüş kodu: \"%s\"" diff --git a/po/weechat.pot b/po/weechat.pot index 50bff51ac..4be3d5083 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: 2022-11-06 09:02+0100\n" +"POT-Creation-Date: 2022-11-06 09:09+0100\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -11024,11 +11024,15 @@ msgid "%s%s: invalid hook type: \"%s\"" msgstr "" #, c-format -msgid "%s%s: invalid format for regular expression" +msgid "%s%s: invalid format for regular expression: \"%s\"" msgstr "" #, c-format -msgid "%s%s: invalid regular expression (compilation failed)" +msgid "%s%s: invalid regular expression (compilation failed): \"%s\"" +msgstr "" + +#, c-format +msgid "%s%s: not enough memory for regular expression: \"%s\"" msgstr "" #, c-format diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c index 8ce8db5af..5cb35d0cf 100644 --- a/src/plugins/trigger/trigger-command.c +++ b/src/plugins/trigger/trigger-command.c @@ -587,24 +587,28 @@ trigger_command_trigger (const void *pointer, void *data, case -1: /* format error */ weechat_printf (NULL, _("%s%s: invalid format for regular " - "expression"), + "expression: \"%s\""), weechat_prefix ("error"), - TRIGGER_PLUGIN_NAME); + TRIGGER_PLUGIN_NAME, + sargv[4]); goto end; break; case -2: /* regex compilation error */ weechat_printf (NULL, _("%s%s: invalid regular expression " - "(compilation failed)"), + "(compilation failed): \"%s\""), weechat_prefix ("error"), - TRIGGER_PLUGIN_NAME); + TRIGGER_PLUGIN_NAME, + sargv[4]); goto end; break; case -3: /* memory error */ weechat_printf (NULL, - _("%s%s: not enough memory"), + _("%s%s: not enough memory for regular " + "expression: \"%s\""), weechat_prefix ("error"), - TRIGGER_PLUGIN_NAME); + TRIGGER_PLUGIN_NAME, + sargv[4]); goto end; break; } -- cgit v1.2.3