diff --git a/po/cs.po b/po/cs.po index 9b6e5add0..cca000d89 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-17 10:37+0200\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -211,6 +211,10 @@ msgstr "%sChyba: filtr \"%s\" nenalezen" msgid "%sError: WeeChat main buffer can't be closed" msgstr "%sChyba: hlavní buffer WeeChat nemůže být zavřen" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%sChyba: nemohu nastavit volbu \"%s\" pro pole \"%s\"" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "Lokální proměnné pro buffer \"%s\":" diff --git a/po/de.po b/po/de.po index feca097b7..27f59a027 100644 --- a/po/de.po +++ b/po/de.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-18 19:01+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -220,6 +220,11 @@ msgstr "%sFehler: Buffer nicht gefunden" msgid "%sError: WeeChat main buffer can't be closed" msgstr "%sFehler: Der WeeChat-Hauptbuffer kann nicht geschlossen werden" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "" +"%sFehler: Die Option \"%s\" kann für Infobar \"%s\" nicht gesetzt werden" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "Lokale Variablen für Buffer \"%s\":" diff --git a/po/es.po b/po/es.po index 09abcc792..3bcd99859 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-17 10:37+0200\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -217,6 +217,10 @@ msgstr "%sError: buffer no encontrado" msgid "%sError: WeeChat main buffer can't be closed" msgstr "%sError: el buffer principal de WeeChat no puede ser cerrado" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%sError: no se pudo configurar la opción \"%s\" en la barra \"%s\"" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "Variables locales para el buffer \"%s\":" diff --git a/po/fr.po b/po/fr.po index c38915fbe..9e259ddd1 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" -"PO-Revision-Date: 2013-08-20 14:28+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" +"PO-Revision-Date: 2013-08-21 11:16+0200\n" "Last-Translator: Sebastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -211,6 +211,10 @@ msgstr "%sErreur: tampon non trouvé" msgid "%sError: WeeChat main buffer can't be closed" msgstr "%sErreur: le tampon principal de WeeChat ne peut pas être fermé" +#, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%sErreur: impossible de définir le niveau de notification \"%s\"" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "Variables locales pour le tampon \"%s\":" diff --git a/po/hu.po b/po/hu.po index 71284e375..7ed3bca78 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-17 10:37+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -213,6 +213,10 @@ msgstr "%s a \"%s\" modul nem található\n" msgid "%sError: WeeChat main buffer can't be closed" msgstr "" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%s ismeretlen opció a \"%s\" parancsnak\n" + #, fuzzy, c-format msgid "Local variables for buffer \"%s\":" msgstr "a pufferek időbélyege" diff --git a/po/it.po b/po/it.po index 154ad2aa3..bf3afe164 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-17 10:37+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -214,6 +214,10 @@ msgstr "%sErrore: buffer non trovato" msgid "%sError: WeeChat main buffer can't be closed" msgstr "%sErrore: il buffer principale di WeeChat non può essere chiuso" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%sErrore: impossibile impostare l'opzione \"%s\" per la barra \"%s\"" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "Variabili locali per il buffer \"%s\":" diff --git a/po/ja.po b/po/ja.po index db72ee4e3..ec2999a7e 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-17 10:37+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -214,6 +214,10 @@ msgstr "%sエラー: バッファが見つかりません" msgid "%sError: WeeChat main buffer can't be closed" msgstr "%sエラー: WeeChat メインバッファを閉じることはできません" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%1$sエラー: バー \"%3$s\" にオプション \"%2$s\" を設定できません" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "バッファ \"%s\" のローカル変数:" diff --git a/po/pl.po b/po/pl.po index 9aa44f31b..3ee343b2c 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-17 10:37+0200\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -218,6 +218,10 @@ msgstr "%sBłąd: nie odnaleziono buforu" msgid "%sError: WeeChat main buffer can't be closed" msgstr "%sBłąd: główny bufor WeeChat nie może zostać zamknięty" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%sBłąd: nie można ustawić opcji \"%s\" dla paska \"%s\"" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "Lokalne zmienne bufora \"%s\":" diff --git a/po/pt_BR.po b/po/pt_BR.po index fc201133d..12ee84cfe 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-17 10:37+0200\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -237,6 +237,10 @@ msgstr "%sErro: filtro \"%s\" não encontrado" msgid "%sError: WeeChat main buffer can't be closed" msgstr "%sErro: o buffer principal do WeeChat não pode ser fechado" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%sErro: não foi possível configurar a opção \"%s\" para a barra \"%s\"" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "Variáveis locais para o buffer \"%s\":" diff --git a/po/ru.po b/po/ru.po index 11d7ddc12..374084b45 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-17 10:37+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -217,6 +217,10 @@ msgstr "%s plugin \"%s\" не найден\n" msgid "%sError: WeeChat main buffer can't be closed" msgstr "%sОшибка: нельзя закрыть основной буфер WeeChat" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%s неизвестный параметр для команды \"%s\"\n" + #, fuzzy, c-format msgid "Local variables for buffer \"%s\":" msgstr "время в буферах" diff --git a/po/tr.po b/po/tr.po index d22961f1c..2e19da7e3 100644 --- a/po/tr.po +++ b/po/tr.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-08-17 10:37+0200\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" @@ -190,6 +190,10 @@ msgstr "" msgid "%sError: WeeChat main buffer can't be closed" msgstr "" +#, fuzzy, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "%sHata: dosya \"%s\" oluşturulamaz" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index 9c52b8ae8..91c579744 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-08-20 14:27+0200\n" +"POT-Creation-Date: 2013-08-21 11:15+0200\n" "PO-Revision-Date: 2013-02-14 18:20+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: weechat-dev \n" @@ -190,6 +190,10 @@ msgstr "" msgid "%sError: WeeChat main buffer can't be closed" msgstr "" +#, c-format +msgid "%sError: unable to set notify level \"%s\"" +msgstr "" + #, c-format msgid "Local variables for buffer \"%s\":" msgstr "" diff --git a/src/core/wee-command.c b/src/core/wee-command.c index bbb50866f..3c8f6fab2 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -846,7 +846,13 @@ COMMAND_CALLBACK(buffer) if (string_strcasecmp (argv[1], "notify") == 0) { COMMAND_MIN_ARGS(3, "buffer notify"); - config_weechat_notify_set (buffer, argv_eol[2]); + if (!config_weechat_notify_set (buffer, argv_eol[2])) + { + gui_chat_printf (NULL, + _("%sError: unable to set notify level \"%s\""), + gui_chat_prefix[GUI_CHAT_PREFIX_ERROR], + argv_eol[2]); + } return WEECHAT_RC_OK; } diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 8a32df9c7..e06a945e3 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -1692,13 +1692,12 @@ config_weechat_notify_set (struct t_gui_buffer *buffer, const char *notify) return 0; /* create/update option */ - config_weechat_notify_create_option_cb (NULL, - weechat_config_file, - weechat_config_section_notify, - buffer->full_name, - (value < 0) ? - NULL : gui_buffer_notify_string[value]); - return 1; + return (config_weechat_notify_create_option_cb (NULL, + weechat_config_file, + weechat_config_section_notify, + buffer->full_name, + (value < 0) ? + NULL : gui_buffer_notify_string[value]) != WEECHAT_CONFIG_OPTION_SET_ERROR) ? 1 : 0; } /*