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).v2.8-utf8proc
parent
92e176ab89
commit
bc6c1f274c
12
po/cs.po
12
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)"
|
||||
|
|
10
po/de.po
10
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)"
|
||||
|
|
12
po/es.po
12
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)"
|
||||
|
|
12
po/fr.po
12
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)"
|
||||
|
|
6
po/hu.po
6
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
|
||||
|
|
12
po/it.po
12
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)"
|
||||
|
|
12
po/ja.po
12
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)"
|
||||
|
|
12
po/pl.po
12
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)"
|
||||
|
|
12
po/pt.po
12
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)"
|
||||
|
|
12
po/pt_BR.po
12
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)"
|
||||
|
|
12
po/ru.po
12
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)"
|
||||
|
|
6
po/tr.po
6
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue