diff --git a/CHANGELOG.md b/CHANGELOG.md index e3e7b3388..561773152 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ - **breaking:** alias: display an error with `/alias add` or `/alias addcompletion` when the alias already exists, add options `addreplace` and `addreplacecompletion` in command `/alias` ([#2095](https://github.com/weechat/weechat/issues/2095)) - core: add option `addreplace` in commands `/bar` and `/proxy` ([#2095](https://github.com/weechat/weechat/issues/2095)) -- irc: add option `addreplace` in command `/ignore` ([#2095](https://github.com/weechat/weechat/issues/2095)) +- irc: add option `addreplace` in commands `/ignore` and `/notify` ([#2095](https://github.com/weechat/weechat/issues/2095)) - relay: enable websocket extension "permessage-deflate" with "api" relay only ([#1549](https://github.com/weechat/weechat/issues/1549)) ### Added diff --git a/po/cs.po b/po/cs.po index 8f2a33704..f210f34b8 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -8464,6 +8464,10 @@ msgstr "%s%s: notifikace již existuje" msgid "%sMonitor list is full (%d)" msgstr "" +#, fuzzy, c-format +msgid "%s: notification updated for %s%s%s" +msgstr "%s%s: chyba při přidávání notifikace" + #, fuzzy, c-format msgid "%s: notification added for %s%s%s" msgstr "%s%s: notifikace nenalezena" @@ -9651,7 +9655,9 @@ msgstr "" "serveru" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +#, fuzzy +#| msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "add [ [-away]] || del |-all []" #, fuzzy @@ -9659,6 +9665,11 @@ msgstr "add [ [-away]] || del |-all [ msgid "raw[add]: add a notification" msgstr "%s%s: chyba při přidávání notifikace" +#, fuzzy +#| msgid "%s%s: error adding notification" +msgid "raw[addreplace]: add or replace a notification" +msgstr "%s%s: chyba při přidávání notifikace" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/po/de.po b/po/de.po index c08ec6637..ab1a10cf4 100644 --- a/po/de.po +++ b/po/de.po @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-05-31 20:32+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -9707,6 +9707,11 @@ msgstr "%s%s: Benachrichtigung existiert schon" msgid "%sMonitor list is full (%d)" msgstr "%sMonitor-Liste ist voll (%d)" +#, fuzzy, c-format +#| msgid "%s: notification deleted for %s%s%s" +msgid "%s: notification updated for %s%s%s" +msgstr "%s: Benachrichtigung für %s%s%s gelöscht" + #, c-format msgid "%s: notification added for %s%s%s" msgstr "%s: Benachrichtigung für %s%s%s hinzugefügt" @@ -10833,12 +10838,21 @@ msgstr "" "hinzu" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +#, fuzzy +#| msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "add [ [-away]] || del |-all []" msgid "raw[add]: add a notification" msgstr "raw[add]: fügt eine Benachrichtigung hinzu" +#, fuzzy +#| msgid "raw[addreplace]: add or replace an existing filter" +msgid "raw[addreplace]: add or replace a notification" +msgstr "" +"raw[addreplace]: neuen Filter anlegen oder einen schon existierenden Filter " +"ersetzen" + msgid "server: internal server name (by default current server)" msgstr "Server: interner Servername (standardmäßig aktueller Server)" diff --git a/po/es.po b/po/es.po index 983a40539..41ede3f2d 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Santiago Forero \n" "Language-Team: weechat-dev \n" @@ -8659,6 +8659,10 @@ msgstr "%s%s: la notificación ya existe" msgid "%sMonitor list is full (%d)" msgstr "" +#, fuzzy, c-format +msgid "%s: notification updated for %s%s%s" +msgstr "%s: notificación para %s%s agregada" + #, fuzzy, c-format msgid "%s: notification added for %s%s%s" msgstr "%s: notificación para %s%s agregada" @@ -9850,7 +9854,9 @@ msgstr "" "servidores" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +#, fuzzy +#| msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "add [ [-away]] || del |-all []" #, fuzzy @@ -9858,6 +9864,11 @@ msgstr "add [ [-away]] || del |-all []" msgid "raw[add]: add a notification" msgstr "%s%s: error al agregar la notificación" +#, fuzzy +#| msgid "%s%s: error adding notification" +msgid "raw[addreplace]: add or replace a notification" +msgstr "%s%s: error al agregar la notificación" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/po/fr.po b/po/fr.po index ed17152dd..3a32c541c 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: 2024-06-09 15:30+0200\n" -"PO-Revision-Date: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" +"PO-Revision-Date: 2024-06-09 15:37+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -9499,6 +9499,10 @@ msgstr "%s%s : la notification existe déjà" msgid "%sMonitor list is full (%d)" msgstr "%sLa liste de surveillance est pleine (%d)" +#, c-format +msgid "%s: notification updated for %s%s%s" +msgstr "%s : notification mise à jour pour %s%s%s" + #, c-format msgid "%s: notification added for %s%s%s" msgstr "%s : notification ajoutée pour %s%s%s" @@ -10603,12 +10607,16 @@ msgstr "" "sur les serveurs" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" -msgstr "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" +msgstr "" +"add|addreplace [ [-away]] || del |-all []" msgid "raw[add]: add a notification" msgstr "raw[add] : ajouter une notification" +msgid "raw[addreplace]: add or replace a notification" +msgstr "raw[addreplace] : ajouter ou remplacer une notification" + msgid "server: internal server name (by default current server)" msgstr "serveur : nom interne du serveur (par défaut le serveur courant)" diff --git a/po/hu.po b/po/hu.po index b7c915367..426104b9a 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -8093,6 +8093,10 @@ msgstr "%s az ignore már létezik\n" msgid "%sMonitor list is full (%d)" msgstr "" +#, fuzzy, c-format +msgid "%s: notification updated for %s%s%s" +msgstr "%s IP-cím nem található\n" + #, fuzzy, c-format msgid "%s: notification added for %s%s%s" msgstr "%s IP-cím nem található\n" @@ -9230,13 +9234,17 @@ msgid "add a notification for presence or away status of nicks on servers" msgstr "" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "" #, fuzzy msgid "raw[add]: add a notification" msgstr "%s nincs elég memória az információs pult üzenethez\n" +#, fuzzy +msgid "raw[addreplace]: add or replace a notification" +msgstr "%s nincs elég memória az információs pult üzenethez\n" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/po/it.po b/po/it.po index dd77b1a22..05484815b 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -8654,6 +8654,10 @@ msgstr "%s%s: la notifica esiste già" msgid "%sMonitor list is full (%d)" msgstr "" +#, fuzzy, c-format +msgid "%s: notification updated for %s%s%s" +msgstr "%s: notifica aggiunta per %s%s" + #, fuzzy, c-format msgid "%s: notification added for %s%s%s" msgstr "%s: notifica aggiunta per %s%s" @@ -9846,7 +9850,9 @@ msgstr "" "aggiunge una notifica per lo stato di presenza o assenza dei nick sui server" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +#, fuzzy +#| msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "add [ [-away]] || del |-all []" #, fuzzy @@ -9854,6 +9860,11 @@ msgstr "add [ [-away]] || del |-all []" msgid "raw[add]: add a notification" msgstr "%s%s: errore nell'aggiunta della notifica" +#, fuzzy +#| msgid "%s%s: error adding notification" +msgid "raw[addreplace]: add or replace a notification" +msgstr "%s%s: errore nell'aggiunta della notifica" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/po/ja.po b/po/ja.po index 8a67feef4..5806e9f52 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese ") must be translated -msgid "add [ [-away]] || del |-all []" +#, fuzzy +#| msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "add [ [-away]] || del |-all []" #, fuzzy @@ -10146,6 +10153,11 @@ msgstr "add [ [-away]] || del |-all []" msgid "raw[add]: add a notification" msgstr "%s%s: 通知の追加中にエラー" +#, fuzzy +#| msgid "%s%s: error adding notification" +msgid "raw[addreplace]: add or replace a notification" +msgstr "%s%s: 通知の追加中にエラー" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/po/pl.po b/po/pl.po index 0ba999fb0..16ed83d7f 100644 --- a/po/pl.po +++ b/po/pl.po @@ -9209,6 +9209,11 @@ msgstr "%s%s: powiadomienie juz istnieje" msgid "%sMonitor list is full (%d)" msgstr "%sLista monitorowania jest pełna (%d)" +#, fuzzy, c-format +#| msgid "%s: notification deleted for %s%s%s" +msgid "%s: notification updated for %s%s%s" +msgstr "%s: powiadomienie usunięte dla %s%s%s" + #, c-format msgid "%s: notification added for %s%s%s" msgstr "%s: powiadomienie dodane dla %s%s%s" @@ -10291,12 +10296,19 @@ msgstr "" "dodaje powiadomienie o obecności lub statusie nieobecności nicków na serwerze" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +#, fuzzy +#| msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "add [ [-away]] || del |-all []" msgid "raw[add]: add a notification" msgstr "raw[add]: dodaje powiadomienie" +#, fuzzy +#| msgid "raw[addreplace]: add or replace an existing filter" +msgid "raw[addreplace]: add or replace a notification" +msgstr "raw[addreplace]: dodaj lub zastąp istniejący filtr" + msgid "server: internal server name (by default current server)" msgstr "serwer: wewnętrzna nazwa serwera (domyślnie obecny serwer)" diff --git a/po/pt.po b/po/pt.po index 802a53ff7..c1e474fb7 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese <>\n" @@ -8900,6 +8900,11 @@ msgstr "%s%s: a notificação já existe" msgid "%sMonitor list is full (%d)" msgstr "%sA lista de monitorização está cheia (%d)" +#, fuzzy, c-format +#| msgid "%s: notification deleted for %s%s%s" +msgid "%s: notification updated for %s%s%s" +msgstr "%s: notificação para %s%s%s eliminada" + #, c-format msgid "%s: notification added for %s%s%s" msgstr "%s: notificação para %s%s%s adicionada" @@ -10117,7 +10122,9 @@ msgstr "" "servidores" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +#, fuzzy +#| msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "add [ [-away]] || del |-all []" #, fuzzy @@ -10125,6 +10132,11 @@ msgstr "add [ [-away]] || del |-all []" msgid "raw[add]: add a notification" msgstr "%s%s: error ao adicionar a notificação" +#, fuzzy +#| msgid "%s%s: error adding notification" +msgid "raw[addreplace]: add or replace a notification" +msgstr "%s%s: error ao adicionar a notificação" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index 784387454..0d8a0ca73 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Érico Nogueira \n" "Language-Team: weechat-dev \n" @@ -8526,6 +8526,10 @@ msgstr "" msgid "%sMonitor list is full (%d)" msgstr "" +#, fuzzy, c-format +msgid "%s: notification updated for %s%s%s" +msgstr "%s: desconectado do cliente %s%s%s (%s.%s)" + #, fuzzy, c-format msgid "%s: notification added for %s%s%s" msgstr "%s%s: falha na autenticação com cliente %s%s%s (%s.%s)" @@ -9623,12 +9627,19 @@ msgid "add a notification for presence or away status of nicks on servers" msgstr "" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" -msgstr "" +#, fuzzy +#| msgid "list || add [re:] [ []] || del |-all" +msgid "add|addreplace [ [-away]] || del |-all []" +msgstr "list || add [re:] [ []] || del |-all" msgid "raw[add]: add a notification" msgstr "" +#, fuzzy +#| msgid "%s%s: failed to add word to personal dictionary" +msgid "raw[addreplace]: add or replace a notification" +msgstr "%s%s: falha ao adicionar palavra no dicionário pessoal" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/po/ru.po b/po/ru.po index f79339e98..4931861c1 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -8136,6 +8136,10 @@ msgstr "%s игнорирование уже существует\n" msgid "%sMonitor list is full (%d)" msgstr "" +#, fuzzy, c-format +msgid "%s: notification updated for %s%s%s" +msgstr "%s IP адрес не найден\n" + #, fuzzy, c-format msgid "%s: notification added for %s%s%s" msgstr "%s IP адрес не найден\n" @@ -9275,13 +9279,17 @@ msgid "add a notification for presence or away status of nicks on servers" msgstr "" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "" #, fuzzy msgid "raw[add]: add a notification" msgstr "%s недостаточно памяти для сообщения в строке информации\n" +#, fuzzy +msgid "raw[addreplace]: add or replace a notification" +msgstr "%s недостаточно памяти для сообщения в строке информации\n" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/po/sr.po b/po/sr.po index 24687c77c..5e896af9c 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-05-07 14:00+0400\n" "Last-Translator: Ivan Pešić \n" "Language-Team: weechat-dev \n" @@ -9225,6 +9225,11 @@ msgstr "%s%s: већ постоји обавештење" msgid "%sMonitor list is full (%d)" msgstr "%sМонитор листа је пуна (%d)" +#, fuzzy, c-format +#| msgid "%s: notification deleted for %s%s%s" +msgid "%s: notification updated for %s%s%s" +msgstr "%s: обрисано је обавештење за %s%s%s" + #, c-format msgid "%s: notification added for %s%s%s" msgstr "%s: додато је обавештење за %s%s%s" @@ -10294,12 +10299,19 @@ msgid "add a notification for presence or away status of nicks on servers" msgstr "додавање обавештења присуства или одсуства надимака на серверима" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +#, fuzzy +#| msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "add <надимак> [<сервер> [-away]] || del <надимак>|-all [<сервер>]" msgid "raw[add]: add a notification" msgstr "raw[add]: додавање обавештења" +#, fuzzy +#| msgid "raw[addreplace]: add or replace an existing filter" +msgid "raw[addreplace]: add or replace a notification" +msgstr "raw[addreplace]: додаје или замењује постојећи филтер" + msgid "server: internal server name (by default current server)" msgstr "сервер: интерно име сервера (подразумевано је то текући сервер)" diff --git a/po/tr.po b/po/tr.po index 7a3f04564..86f712e56 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Emir SARI \n" "Language-Team: weechat-dev \n" @@ -9022,6 +9022,11 @@ msgstr "%s%s: Bildirim halihazırda mevcut" msgid "%sMonitor list is full (%d)" msgstr "%sMonitör listesi dolu (%d)" +#, fuzzy, c-format +#| msgid "%s: notification deleted for %s%s%s" +msgid "%s: notification updated for %s%s%s" +msgstr "%s: %s%s%s için bildirim silindi" + #, c-format msgid "%s: notification added for %s%s%s" msgstr "%s: %s%s%s için bildirim eklendi" @@ -10264,7 +10269,9 @@ msgstr "" "Sunucu takma adlarının buradalığı veya uzakta durumu için bildirim ekle" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +#, fuzzy +#| msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "add [ [-away]] || del |-all []" #, fuzzy @@ -10272,6 +10279,11 @@ msgstr "add [ [-away]] || del |-all []" msgid "raw[add]: add a notification" msgstr "%s%s: Bildirim eklerken hata" +#, fuzzy +#| msgid "%s%s: error adding notification" +msgid "raw[addreplace]: add or replace a notification" +msgstr "%s%s: Bildirim eklerken hata" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index 2e2e7cc73..12602f6a0 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: 2024-06-09 15:30+0200\n" +"POT-Creation-Date: 2024-06-09 15:35+0200\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -7568,6 +7568,10 @@ msgstr "" msgid "%sMonitor list is full (%d)" msgstr "" +#, c-format +msgid "%s: notification updated for %s%s%s" +msgstr "" + #, c-format msgid "%s: notification added for %s%s%s" msgstr "" @@ -8521,12 +8525,15 @@ msgid "add a notification for presence or away status of nicks on servers" msgstr "" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated -msgid "add [ [-away]] || del |-all []" +msgid "add|addreplace [ [-away]] || del |-all []" msgstr "" msgid "raw[add]: add a notification" msgstr "" +msgid "raw[addreplace]: add or replace a notification" +msgstr "" + msgid "server: internal server name (by default current server)" msgstr "" diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index e19ea02f9..6be345b5b 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -4171,7 +4171,7 @@ IRC_COMMAND_CALLBACK(notice) IRC_COMMAND_CALLBACK(notify) { struct t_irc_notify *ptr_notify; - int i, check_away; + int i, check_away, update; IRC_BUFFER_GET_SERVER(buffer); @@ -4189,10 +4189,12 @@ IRC_COMMAND_CALLBACK(notify) } /* add notify */ - if (weechat_strcmp (argv[1], "add") == 0) + if ((weechat_strcmp (argv[1], "add") == 0) + || (weechat_strcmp (argv[1], "addreplace") == 0)) { WEECHAT_COMMAND_MIN_ARGS(3, argv[1]); + update = 0; check_away = 0; if (argc > 3) @@ -4230,11 +4232,20 @@ IRC_COMMAND_CALLBACK(notify) ptr_notify = irc_notify_search (ptr_server, argv[2]); if (ptr_notify) { - weechat_printf ( - NULL, - _("%s%s: notify already exists"), - weechat_prefix ("error"), IRC_PLUGIN_NAME); - return WEECHAT_RC_OK; + if (weechat_strcmp (argv[1], "addreplace") == 0) + { + update = 1; + irc_notify_free (ptr_server, ptr_notify, 1); + irc_notify_set_server_option (ptr_server); + } + else + { + weechat_printf ( + NULL, + _("%s%s: notify already exists"), + weechat_prefix ("error"), IRC_PLUGIN_NAME); + return WEECHAT_RC_OK; + } } if ((ptr_server->monitor > 0) @@ -4253,6 +4264,8 @@ IRC_COMMAND_CALLBACK(notify) irc_notify_set_server_option (ptr_server); weechat_printf ( ptr_server->buffer, + (update) ? + _("%s: notification updated for %s%s%s") : _("%s: notification added for %s%s%s"), IRC_PLUGIN_NAME, irc_nick_color_for_msg (ptr_server, 1, NULL, ptr_notify->nick), @@ -7654,10 +7667,11 @@ irc_command_init () "notify", N_("add a notification for presence or away status of nicks on servers"), /* TRANSLATORS: only text between angle brackets (eg: "") must be translated */ - N_("add [ [-away]]" + N_("add|addreplace [ [-away]]" " || del |-all []"), WEECHAT_CMD_ARGS_DESC( N_("raw[add]: add a notification"), + N_("raw[addreplace]: add or replace a notification"), N_("nick: nick"), N_("server: internal server name (by default current server)"), N_("raw[-away]: notify when away message is changed (by doing whois on nick)"), @@ -7671,7 +7685,7 @@ irc_command_init () AI(" /notify add toto"), AI(" /notify add toto libera"), AI(" /notify add toto libera -away")), - "add %(irc_channel_nicks) %(irc_servers) -away %-" + "add|addreplace %(irc_channel_nicks) %(irc_servers) -away %-" " || del -all|%(irc_notify_nicks) %(irc_servers) %-", &irc_command_notify, NULL, NULL); weechat_hook_command (