diff --git a/ChangeLog b/ChangeLog index 092cb8b13..156fa960a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ Version 0.3.8 (under dev!) (task #11316) * core: fix display of wide chars on last column of chat area (patch #7733) * api: add list "gui_buffer_last_displayed" in hdata "buffer" +* irc: add signals and tags in messages for irc notify (task #11887) * irc: check notify immediately when adding a nick to notify list, improve first notify message for a nick (bug #35731) * irc: fix display of color in hostname (join/part/quit messages) diff --git a/doc/de/weechat_user.de.txt b/doc/de/weechat_user.de.txt index 655c903a2..07624b4cb 100644 --- a/doc/de/weechat_user.de.txt +++ b/doc/de/weechat_user.de.txt @@ -2071,7 +2071,8 @@ Paket Ersteller:: Patches:: Dmitry Kobylin, Rudolf Polzer, Jim Ramsay, Pistos, Gwenn, Dominik Honnef, - JD Horelick, Stefano Pigozzi, Gu1ll4um3r0m41n, Kyle Fuller + JD Horelick, Stefano Pigozzi, Gu1ll4um3r0m41n, Kyle Fuller, + Quentin Glidic (SardemFF7) [[support]] diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index c0506ff47..c90fdf16c 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -7380,6 +7380,31 @@ Arguments: - | ignore removed +| irc | irc_notify_join + + (_new in version 0.3.8_) | + string: server name + "," + nick | + a nick in notify list has joined server + +| irc | irc_notify_quit + + (_new in version 0.3.8_) | + string: server name + "," + nick | + a nick in notify list has quit server + +| irc | irc_notify_away + + (_new in version 0.3.8_) | + string: server name + "," + nick + "," + away message | + a nick in notify list is now away on server + +| irc | irc_notify_still_away + + (_new in version 0.3.8_) | + string: server name + "," + nick + "," + away message | + a nick in notify list is still away on server (away message has changed) + +| irc | irc_notify_back + + (_new in version 0.3.8_) | + string: server name + "," + nick | + a nick in notify list is back (away status removed) + | logger | logger_start | pointer: buffer | start logging for buffer diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt index 2a6571739..0238694cb 100644 --- a/doc/en/weechat_user.en.txt +++ b/doc/en/weechat_user.en.txt @@ -2039,7 +2039,8 @@ Translations:: Patches:: Dmitry Kobylin, Rudolf Polzer, Jim Ramsay, Pistos, Gwenn, Dominik Honnef, - JD Horelick, Stefano Pigozzi, Gu1ll4um3r0m41n, Kyle Fuller + JD Horelick, Stefano Pigozzi, Gu1ll4um3r0m41n, Kyle Fuller, + Quentin Glidic (SardemFF7) [[support]] diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index 2f4581aaf..34c9e9a37 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -7490,6 +7490,31 @@ Paramètres : - | ignore supprimé +| irc | irc_notify_join + + (_nouveau dans la version 0.3.8_) | + chaîne: nom du serveur + "," + pseudo | + un pseudo dans la liste de notifications a rejoint le serveur + +| irc | irc_notify_quit + + (_nouveau dans la version 0.3.8_) | + chaîne: nom du serveur + "," + pseudo | + un pseudo dans la liste de notifications a quitté le serveur + +| irc | irc_notify_away + + (_nouveau dans la version 0.3.8_) | + chaîne: nom du serveur + "," + pseudo + "," + message d'absence | + un pseudo dans la liste de notifications est maintenant absent sur le serveur + +| irc | irc_notify_still_away + + (_nouveau dans la version 0.3.8_) | + chaîne: nom du serveur + "," + pseudo + "," + message d'absence | + un pseudo dans la liste de notifications est toujours absent sur le serveur (le message d'absence a changé) + +| irc | irc_notify_back + + (_nouveau dans la version 0.3.8_) | + chaîne: nom du serveur + "," + pseudo | + un pseudo dans la liste de notifications est de retour (statut d'absence supprimé) + | logger | logger_start | pointeur : tampon | démarrage de l'enregistrement sur disque pour le tampon diff --git a/doc/fr/weechat_user.fr.txt b/doc/fr/weechat_user.fr.txt index 21a174277..30b3b128c 100644 --- a/doc/fr/weechat_user.fr.txt +++ b/doc/fr/weechat_user.fr.txt @@ -2100,7 +2100,8 @@ Traductions:: Patchs:: Dmitry Kobylin, Rudolf Polzer, Jim Ramsay, Pistos, Gwenn, Dominik Honnef, - JD Horelick, Stefano Pigozzi, Gu1ll4um3r0m41n, Kyle Fuller + JD Horelick, Stefano Pigozzi, Gu1ll4um3r0m41n, Kyle Fuller, + Quentin Glidic (SardemFF7) [[support]] diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index 3586feed0..af8463c44 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -7410,6 +7410,36 @@ Argomenti: - | ignore rimosso +// TRANSLATION MISSING +| irc | irc_notify_join + + (_new in version 0.3.8_) | + string: server name + "," + nick | + a nick in notify list has joined server + +// TRANSLATION MISSING +| irc | irc_notify_quit + + (_new in version 0.3.8_) | + string: server name + "," + nick | + a nick in notify list has quit server + +// TRANSLATION MISSING +| irc | irc_notify_away + + (_new in version 0.3.8_) | + string: server name + "," + nick + "," + away message | + a nick in notify list is now away on server + +// TRANSLATION MISSING +| irc | irc_notify_still_away + + (_new in version 0.3.8_) | + string: server name + "," + nick + "," + away message | + a nick in notify list is still away on server (away message has changed) + +// TRANSLATION MISSING +| irc | irc_notify_back + + (_new in version 0.3.8_) | + string: server name + "," + nick | + a nick in notify list is back (away status removed) + | logger | logger_start | puntatore: buffer | avvia il logging per il buffer diff --git a/doc/it/weechat_user.it.txt b/doc/it/weechat_user.it.txt index ba0a96fff..c2ea9bc4c 100644 --- a/doc/it/weechat_user.it.txt +++ b/doc/it/weechat_user.it.txt @@ -2086,7 +2086,8 @@ Traduzioni:: Patches:: Dmitry Kobylin, Rudolf Polzer, Jim Ramsay, Pistos, Gwenn, Dominik Honnef, - JD Horelick, Stefano Pigozzi, Gu1ll4um3r0m41n, Kyle Fuller + JD Horelick, Stefano Pigozzi, Gu1ll4um3r0m41n, Kyle Fuller, + Quentin Glidic (SardemFF7) [[support]] diff --git a/po/cs.po b/po/cs.po index 4ff1ccea3..be1e6a32a 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: 2012-02-26 09:16+0100\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -6082,24 +6082,20 @@ msgstr "Seznam notifikací pro všechny servery:" msgid "Notify list is empty on all servers" msgstr "Seznam notifikací na všech serverech je prázdný" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "%snotifikace: %s%s%s se připojil %s%s" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "%snotifikace: %s%s%s se připojil %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has joined %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has joined" msgstr "%snotifikace: %s%s%s se připojil %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has quit %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has quit" msgstr "%snotifikace: %s%s%s odešel %s%s" #, c-format diff --git a/po/de.po b/po/de.po index ada9b3786..ca896a5a8 100644 --- a/po/de.po +++ b/po/de.po @@ -23,7 +23,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: 2012-02-26 09:16+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -6535,24 +6535,20 @@ msgstr "Benachrichtigungen für alle Server:" msgid "Notify list is empty on all servers" msgstr "Es existiert keine Benachrichtigung für Server" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "%snotify: %s%s%s hat sich am Server %s%s angemeldet" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "%snotify: %s%s%s hat sich am Server %s%s angemeldet" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has joined %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has joined" msgstr "%snotify: %s%s%s hat sich am Server %s%s angemeldet" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has quit %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has quit" msgstr "%snotify: %s%s%s hat sich vom Server %s%s abgemeldet" #, c-format diff --git a/po/es.po b/po/es.po index d6c085408..f582cdf13 100644 --- a/po/es.po +++ b/po/es.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: 2012-02-26 09:16+0100\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -6321,24 +6321,20 @@ msgstr "Lista de notificaciones para todos los servidores:" msgid "Notify list is empty on all servers" msgstr "Lista de notificaciones vacía en todos los servidores" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "%saviso: %s%s%s se ha unido a %s%s" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "%saviso: %s%s%s se ha unido a %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has joined %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has joined" msgstr "%saviso: %s%s%s se ha unido a %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has quit %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has quit" msgstr "%saviso: %s%s%s ha salido de %s%s" #, c-format diff --git a/po/fr.po b/po/fr.po index a55ea6893..00e4d7b90 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" -"PO-Revision-Date: 2012-03-11 13:40+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" +"PO-Revision-Date: 2012-03-12 10:28+0100\n" "Last-Translator: Sebastien Helleu \n" "Language-Team: weechat-dev \n" "Language: French\n" @@ -6383,25 +6383,21 @@ msgstr "Liste de notifications pour tous les serveurs:" msgid "Notify list is empty on all servers" msgstr "La liste de notifications est vide sur tous les serveurs" -#. TRANSLATORS: final "%s%s" is the server name #, c-format -msgid "%snotify: %s%s%s is connected on %s%s" -msgstr "%snotify: %s%s%s est connecté sur %s%s" +msgid "%snotify: %s%s%s is connected" +msgstr "%snotify: %s%s%s est connecté" -#. TRANSLATORS: final "%s%s" is the server name #, c-format -msgid "%snotify: %s%s%s is offline on %s%s" -msgstr "%snotify: %s%s%s est déconnecté de %s%s" +msgid "%snotify: %s%s%s is offline" +msgstr "%snotify: %s%s%s est déconnecté" -#. TRANSLATORS: final "%s%s" is the server name #, c-format -msgid "%snotify: %s%s%s has joined %s%s" -msgstr "%snotify: %s%s%s a rejoint %s%s" +msgid "%snotify: %s%s%s has joined" +msgstr "%snotify: %s%s%s a rejoint" -#. TRANSLATORS: final "%s%s" is the server name #, c-format -msgid "%snotify: %s%s%s has quit %s%s" -msgstr "%snotify: %s%s%s a quitté %s%s" +msgid "%snotify: %s%s%s has quit" +msgstr "%snotify: %s%s%s a quitté" #, c-format msgid "%snotify: %s%s%s is now away: \"%s\"" diff --git a/po/hu.po b/po/hu.po index e2bddd773..6bd780ae3 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: 2012-02-26 09:16+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -5663,24 +5663,20 @@ msgstr "hotlist törlése" msgid "Notify list is empty on all servers" msgstr "" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "%s%s%s kirúgta %s%s%s-t a(z) %s%s szobából" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "%s%s%s kirúgta %s%s%s-t a(z) %s%s szobából" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s has joined %s%s" +msgid "%snotify: %s%s%s has joined" msgstr "%s%s%s kirúgta %s%s%s-t a(z) %s%s szobából" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s has quit %s%s" +msgid "%snotify: %s%s%s has quit" msgstr "%s%s%s kirúgta %s%s%s-t a(z) %s%s szobából" #, fuzzy, c-format diff --git a/po/it.po b/po/it.po index e846ecc4b..8549b8ddc 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: 2012-02-26 09:16+0100\n" "Last-Translator: Marco Paolone \n" "Language-Team: weechat-dev \n" @@ -6316,24 +6316,20 @@ msgstr "La lista notifiche per tutti i server:" msgid "Notify list is empty on all servers" msgstr "La lista notifiche è vuota su tutti i server" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "%snotifica: %s%s%s è entrato in %s%s" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "%snotifica: %s%s%s è entrato in %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has joined %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has joined" msgstr "%snotifica: %s%s%s è entrato in %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has quit %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has quit" msgstr "%snotifica: %s%s%s è uscito da %s%s" #, c-format diff --git a/po/ja.po b/po/ja.po index 218bb6455..e3ac1722a 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: 2012-02-26 09:16+0100\n" "Last-Translator: \"AYANOKOUZI, Ryuunosuke\" \n" "Language-Team: Japanese\n" @@ -6151,24 +6151,20 @@ msgstr "全てのサーバの通知リスト:" msgid "Notify list is empty on all servers" msgstr "全てのサーバの通知リストは空です" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "%s通知: %s%s%s が %s%s に参加" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "%s通知: %s%s%s が %s%s に参加" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has joined %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has joined" msgstr "%s通知: %s%s%s が %s%s に参加" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has quit %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has quit" msgstr "%s通知: %s%s%s が %s%s から終了" #, c-format diff --git a/po/pl.po b/po/pl.po index 700bf698a..93f09f344 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: 2012-02-26 09:16+0100\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -6281,24 +6281,20 @@ msgstr "Lista powiadomień dla wszystkich serwerów" msgid "Notify list is empty on all servers" msgstr "Lista powiadomień jest pusta na wszystkich serwerach" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "%spowiadomienie: %s%s%s wszedł na %s%s" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "%spowiadomienie: %s%s%s wszedł na %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has joined %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has joined" msgstr "%spowiadomienie: %s%s%s wszedł na %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has quit %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has quit" msgstr "%spowiadomienie: %s%s%s wyszedł %s%s" #, c-format diff --git a/po/pt_BR.po b/po/pt_BR.po index ee4dc9a9e..6924469fe 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: 2012-02-26 09:16+0100\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -5799,24 +5799,20 @@ msgstr "Lista de notificação para todos os servidores:" msgid "Notify list is empty on all servers" msgstr "Lista de notificação está vazia em todos os servidores" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "%snotificação: %s%s%s entrou %s%s" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "%snotificação: %s%s%s entrou %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has joined %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has joined" msgstr "%snotificação: %s%s%s entrou %s%s" -#. TRANSLATORS: final "%s%s" is the server name -#, c-format -msgid "%snotify: %s%s%s has quit %s%s" +#, fuzzy, c-format +msgid "%snotify: %s%s%s has quit" msgstr "%snotificação: %s%s%s saiu %s%s" #, c-format diff --git a/po/ru.po b/po/ru.po index 768871843..a69537101 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.8-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: 2012-02-26 09:16+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -5688,24 +5688,20 @@ msgstr "очистить хотлист" msgid "Notify list is empty on all servers" msgstr "" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "%s%s%s выкинул %s%s%s с канала %s%s" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "%s%s%s выкинул %s%s%s с канала %s%s" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s has joined %s%s" +msgid "%snotify: %s%s%s has joined" msgstr "%s%s%s выкинул %s%s%s с канала %s%s" -#. TRANSLATORS: final "%s%s" is the server name #, fuzzy, c-format -msgid "%snotify: %s%s%s has quit %s%s" +msgid "%snotify: %s%s%s has quit" msgstr "%s%s%s выкинул %s%s%s с канала %s%s" #, fuzzy, c-format diff --git a/po/weechat.pot b/po/weechat.pot index 04181e110..137cb0434 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2012-03-12 07:47+0100\n" +"POT-Creation-Date: 2012-03-12 10:27+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -4898,24 +4898,20 @@ msgstr "" msgid "Notify list is empty on all servers" msgstr "" -#. TRANSLATORS: final "%s%s" is the server name #, c-format -msgid "%snotify: %s%s%s is connected on %s%s" +msgid "%snotify: %s%s%s is connected" msgstr "" -#. TRANSLATORS: final "%s%s" is the server name #, c-format -msgid "%snotify: %s%s%s is offline on %s%s" +msgid "%snotify: %s%s%s is offline" msgstr "" -#. TRANSLATORS: final "%s%s" is the server name #, c-format -msgid "%snotify: %s%s%s has joined %s%s" +msgid "%snotify: %s%s%s has joined" msgstr "" -#. TRANSLATORS: final "%s%s" is the server name #, c-format -msgid "%snotify: %s%s%s has quit %s%s" +msgid "%snotify: %s%s%s has quit" msgstr "" #, c-format diff --git a/src/plugins/irc/irc-notify.c b/src/plugins/irc/irc-notify.c index e3fe8b557..ee2be411f 100644 --- a/src/plugins/irc/irc-notify.c +++ b/src/plugins/irc/irc-notify.c @@ -465,20 +465,55 @@ irc_notify_display_list (struct t_irc_server *server) */ const char * -irc_notify_get_tags (struct t_config_option *option) +irc_notify_get_tags (struct t_config_option *option, const char *type, + const char *nick) { static char string[1024]; const char *tags; tags = weechat_config_string (option); - snprintf (string, sizeof (string), "irc_notify%s%s", + snprintf (string, sizeof (string), "irc_notify,irc_notify_%s,nick_%s%s%s", + type, + nick, (tags && tags[0]) ? "," : "", (tags && tags[0]) ? tags : ""); return string; } +/* + * irc_notify_send_signal: send signal on notify event + */ + +void +irc_notify_send_signal (struct t_irc_notify *notify, + const char *type, + const char *away_message) +{ + char signal[128], *data; + int length; + + snprintf (signal, sizeof (signal), "irc_notify_%s", type); + + length = strlen (notify->server->name) + 1 + strlen (notify->nick) + 1 + + ((away_message) ? strlen (away_message) : 0) + 1; + data = malloc (length); + if (data) + { + snprintf (data, length, "%s,%s%s%s", + notify->server->name, + notify->nick, + (away_message && away_message[0]) ? "," : "", + (away_message && away_message[0]) ? away_message : ""); + } + + weechat_hook_signal_send (signal, WEECHAT_HOOK_SIGNAL_STRING, data); + + if (data) + free (data); +} + /* * irc_notify_set_is_on_server: set flag "is_on_server" for a notify * and display message if user was not on server @@ -496,25 +531,22 @@ irc_notify_set_is_on_server (struct t_irc_notify *notify, return; weechat_printf_tags (notify->server->buffer, - irc_notify_get_tags (irc_config_look_notify_tags_ison), + irc_notify_get_tags (irc_config_look_notify_tags_ison, + (is_on_server) ? "join" : "quit", + notify->nick), (notify->is_on_server < 0) ? ((is_on_server) ? - /* TRANSLATORS: final "%s%s" is the server name */ - _("%snotify: %s%s%s is connected on %s%s") : - /* TRANSLATORS: final "%s%s" is the server name */ - _("%snotify: %s%s%s is offline on %s%s")) : + _("%snotify: %s%s%s is connected") : + _("%snotify: %s%s%s is offline")) : ((is_on_server) ? - /* TRANSLATORS: final "%s%s" is the server name */ - _("%snotify: %s%s%s has joined %s%s") : - /* TRANSLATORS: final "%s%s" is the server name */ - _("%snotify: %s%s%s has quit %s%s")), + _("%snotify: %s%s%s has joined") : + _("%snotify: %s%s%s has quit")), weechat_prefix ("network"), IRC_COLOR_CHAT_NICK, notify->nick, (is_on_server) ? - IRC_COLOR_MESSAGE_JOIN : IRC_COLOR_MESSAGE_QUIT, - IRC_COLOR_CHAT_SERVER, - notify->server->name); + IRC_COLOR_MESSAGE_JOIN : IRC_COLOR_MESSAGE_QUIT); + irc_notify_send_signal (notify, (is_on_server) ? "join" : "quit", NULL); notify->is_on_server = is_on_server; } @@ -540,34 +572,43 @@ irc_notify_set_away_message (struct t_irc_notify *notify, if (!notify->away_message && away_message) { weechat_printf_tags (notify->server->buffer, - irc_notify_get_tags (irc_config_look_notify_tags_whois), + irc_notify_get_tags (irc_config_look_notify_tags_whois, + "away", + notify->nick), _("%snotify: %s%s%s is now away: \"%s\""), weechat_prefix ("network"), IRC_COLOR_CHAT_NICK, notify->nick, IRC_COLOR_RESET, away_message); + irc_notify_send_signal (notify, "away", away_message); } else if (notify->away_message && !away_message) { weechat_printf_tags (notify->server->buffer, - irc_notify_get_tags (irc_config_look_notify_tags_whois), + irc_notify_get_tags (irc_config_look_notify_tags_whois, + "back", + notify->nick), _("%snotify: %s%s%s is back"), weechat_prefix ("network"), IRC_COLOR_CHAT_NICK, notify->nick, IRC_COLOR_RESET); + irc_notify_send_signal (notify, "back", NULL); } else if (notify->away_message && away_message) { weechat_printf_tags (notify->server->buffer, - irc_notify_get_tags (irc_config_look_notify_tags_whois), + irc_notify_get_tags (irc_config_look_notify_tags_whois, + "still_away", + notify->nick), _("%snotify: %s%s%s is still away: \"%s\""), weechat_prefix ("network"), IRC_COLOR_CHAT_NICK, notify->nick, IRC_COLOR_RESET, away_message); + irc_notify_send_signal (notify, "still_away", away_message); } if (notify->away_message)