summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-03-11 21:12:40 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-03-11 21:12:40 +0100
commitbc6c1f274caffb09f65418f9124005f31de4cee4 (patch)
tree185ba72c6524a401077cbdd24cc94c3f3337f2a3
parent92e176ab895b9fdb5f15e3b3ade369c61cbb203f (diff)
downloadweechat-bc6c1f274caffb09f65418f9124005f31de4cee4.zip
core: improve message displayed when a command is not allowed (issue #928)
The whole command with arguments and the full buffer name are now displayed in the warning message (in debug mode only).
-rw-r--r--po/cs.po12
-rw-r--r--po/de.po10
-rw-r--r--po/es.po12
-rw-r--r--po/fr.po12
-rw-r--r--po/hu.po6
-rw-r--r--po/it.po12
-rw-r--r--po/ja.po12
-rw-r--r--po/pl.po12
-rw-r--r--po/pt.po12
-rw-r--r--po/pt_BR.po12
-rw-r--r--po/ru.po12
-rw-r--r--po/tr.po6
-rw-r--r--po/weechat.pot6
-rw-r--r--src/core/wee-input.c11
14 files changed, 89 insertions, 58 deletions
diff --git a/po/cs.po b/po/cs.po
index 478ac3b02..0bada6c17 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-02-28 20:53+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: cs\n"
@@ -4130,9 +4130,11 @@ msgstr "%sChyba odesílání signálu %d na pid %d: %s"
msgid "%sYou can not write text in this buffer"
msgstr "%sDo tohoto bufferu nemůžete zapisovat text"
-#, fuzzy, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "%sBarva \"%s\" není definovávána v paletě"
+#, c-format
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
#, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/de.po b/po/de.po
index 365f44257..69b2dceae 100644
--- a/po/de.po
+++ b/po/de.po
@@ -24,8 +24,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-03-09 19:33+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
"Language: de\n"
@@ -4982,8 +4982,10 @@ msgid "%sYou can not write text in this buffer"
msgstr "%sIn diesen Buffer kann nicht geschrieben werden"
#, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "debug: Befehl \"%s\" ist in diesem Kontext nicht erlaubt"
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
#, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/es.po b/po/es.po
index 1f1d4e6b8..14eb960eb 100644
--- a/po/es.po
+++ b/po/es.po
@@ -22,8 +22,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-02-28 20:53+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: es\n"
@@ -4323,9 +4323,11 @@ msgstr ""
msgid "%sYou can not write text in this buffer"
msgstr "%sNo es posible escribir texto en este buffer"
-#, fuzzy, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "%sColor \"%s\" no está definido en la paleta"
+#, c-format
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
#, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/fr.po b/po/fr.po
index fb149556e..472d4b95d 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: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-03-11 20:48+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -4853,8 +4853,12 @@ msgid "%sYou can not write text in this buffer"
msgstr "%sVous ne pouvez pas écrire de texte dans ce tampon"
#, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "debug : la commande \"%s\" n'est pas autorisée dans ce contexte"
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
+"attention : la commande \"%s\" n'est pas autorisée actuellement (commande : "
+"\"%s\", tampon : \"%s\")"
#, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/hu.po b/po/hu.po
index a406ea182..7411b6323 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: 2019-03-11 20:47+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
"PO-Revision-Date: 2019-02-28 20:18+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3698,7 +3698,9 @@ msgid "%sYou can not write text in this buffer"
msgstr "%s az utolsó puffert nem lehet bezárni\n"
#, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
msgstr ""
#, fuzzy, c-format
diff --git a/po/it.po b/po/it.po
index f12987c50..3abdee94b 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-02-28 20:53+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: it\n"
@@ -4438,9 +4438,11 @@ msgstr ""
msgid "%sYou can not write text in this buffer"
msgstr "%sNon è possibile scrivere del testo in questo buffer"
-#, fuzzy, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "%sColore \"%s\" non definito nella tavolozza"
+#, c-format
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
#, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/ja.po b/po/ja.po
index 96202770c..da8fe3fb5 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-02-28 20:53+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
"translation/ja_JP>\n"
@@ -4642,9 +4642,11 @@ msgstr "%sシグナル %d を pid %d に送信中にエラー: %s"
msgid "%sYou can not write text in this buffer"
msgstr "%sこのバッファに書き込むことは出来ません"
-#, fuzzy, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "%sコマンド \"/%s eval\" はまだ実装されていません"
+#, c-format
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
#, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/pl.po b/po/pl.po
index afe091c0f..664876959 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -22,8 +22,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-02-28 20:53+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
"Language: pl\n"
@@ -4750,9 +4750,11 @@ msgstr "%sBłąd wysyłania sygnału %d do pid %d: %s"
msgid "%sYou can not write text in this buffer"
msgstr "%s nie możesz nic pisać w tym buforze"
-#, fuzzy, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "%sKomenda \"/%s eval\" nie jest jeszcze zaimplementowana"
+#, c-format
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
#, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/pt.po b/po/pt.po
index 7e1cf749b..61720790a 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-02-28 20:53+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
"Language: pt\n"
@@ -4690,9 +4690,11 @@ msgstr "%sErro ao enviar o sinal %d ao pid %d: %s"
msgid "%sYou can not write text in this buffer"
msgstr "%sNão pode escrever texto neste buffer"
-#, fuzzy, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "%sA cor \"%s\" não está definida na paleta"
+#, c-format
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
#, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 70335cfaa..e452cbdac 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-02-28 20:53+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: pt_BR\n"
@@ -4320,9 +4320,11 @@ msgstr ""
msgid "%sYou can not write text in this buffer"
msgstr ""
-#, fuzzy, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "%sCor \"%s\" não está definida na palheta"
+#, c-format
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
#, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/ru.po b/po/ru.po
index d9a776f81..941886855 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2019-03-11 20:47+0100\n"
-"PO-Revision-Date: 2019-02-28 20:19+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
+"PO-Revision-Date: 2019-03-11 21:10+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: ru\n"
@@ -3726,9 +3726,11 @@ msgstr ""
msgid "%sYou can not write text in this buffer"
msgstr "%s невозможно закрыть единственный буфер\n"
-#, fuzzy, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
-msgstr "%sЦвет \"%s\" не определён в палитре"
+#, c-format
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
+msgstr ""
#, fuzzy, c-format
msgid "%sError: unknown command \"%s\" (type /help for help)"
diff --git a/po/tr.po b/po/tr.po
index 87dea136c..9f9804836 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: 2019-03-11 20:47+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\n"
"PO-Revision-Date: 2019-01-29 21:05+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3354,7 +3354,9 @@ msgid "%sYou can not write text in this buffer"
msgstr ""
#, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
msgstr ""
#, c-format
diff --git a/po/weechat.pot b/po/weechat.pot
index 5c71bd87d..689f4801d 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: 2019-03-11 20:47+0100\n"
+"POT-Creation-Date: 2019-03-11 20:59+0100\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"
@@ -3344,7 +3344,9 @@ msgid "%sYou can not write text in this buffer"
msgstr ""
#, c-format
-msgid "debug: command \"%s\" is not allowed in this context"
+msgid ""
+"warning: the command \"%s\" is not currently allowed (command: \"%s\", "
+"buffer: \"%s\")"
msgstr ""
#, c-format
diff --git a/src/core/wee-input.c b/src/core/wee-input.c
index 00c7edc3c..0ab2357ee 100644
--- a/src/core/wee-input.c
+++ b/src/core/wee-input.c
@@ -115,10 +115,13 @@ input_exec_command (struct t_gui_buffer *buffer,
{
if (weechat_debug_core >= 1)
{
- gui_chat_printf_date_tags (NULL, 0, GUI_FILTER_TAG_NO_FILTER,
- _("debug: command \"%s\" is not "
- "allowed in this context"),
- command_name);
+ gui_chat_printf_date_tags (
+ NULL, 0, "command_forbidden," GUI_FILTER_TAG_NO_FILTER,
+ _("warning: the command \"%s\" is not currently allowed "
+ "(command: \"%s\", buffer: \"%s\")"),
+ command_name,
+ command,
+ buffer->full_name);
}
rc = WEECHAT_RC_ERROR;
goto end;