From c6d8b544599b6907e201848060666b84bc82212a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 15 Sep 2022 20:31:06 +0200 Subject: irc: add option irc.look.display_pv_nick_change --- ChangeLog.adoc | 1 + doc/de/includes/autogen_user_options.de.adoc | 6 + doc/en/includes/autogen_user_options.en.adoc | 6 + doc/fr/includes/autogen_user_options.fr.adoc | 6 + doc/it/includes/autogen_user_options.it.adoc | 6 + doc/ja/includes/autogen_user_options.ja.adoc | 6 + doc/pl/includes/autogen_user_options.pl.adoc | 6 + doc/sr/includes/autogen_user_options.sr.adoc | 6 + po/cs.po | 23 ++-- po/de.po | 158 +++++---------------------- po/es.po | 23 ++-- po/fr.po | 25 +++-- po/hu.po | 22 ++-- po/it.po | 23 ++-- po/ja.po | 23 ++-- po/pl.po | 23 ++-- po/pt.po | 25 +++-- po/pt_BR.po | 23 ++-- po/ru.po | 22 ++-- po/sr.po | 51 +++++---- po/tr.po | 23 ++-- po/weechat.pot | 21 ++-- src/plugins/irc/irc-config.c | 7 ++ src/plugins/irc/irc-config.h | 1 + src/plugins/irc/irc-protocol.c | 44 +++++++- tests/unit/plugins/irc/test-irc-protocol.cpp | 2 + 26 files changed, 317 insertions(+), 265 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index a434a2a58..2faad0b0d 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -27,6 +27,7 @@ New features:: * api: add function crypto_hash_file * buflist: add variable `${hotlist_priority_number}` (integer version of `${hotlist_priority}`) * irc: display SETNAME command in channels and private buffers, add options irc.color.message_setname and irc.look.smart_filter_setname (issue #1805) + * irc: add option irc.look.display_pv_nick_change * trigger: add elapsed time for trigger execution on monitor buffer when trigger debug is set, add option trigger.color.identifier (issue #1806) Bug fixes:: diff --git a/doc/de/includes/autogen_user_options.de.adoc b/doc/de/includes/autogen_user_options.de.adoc index 8ed711791..1a3e7db3a 100644 --- a/doc/de/includes/autogen_user_options.de.adoc +++ b/doc/de/includes/autogen_user_options.de.adoc @@ -2348,6 +2348,12 @@ ** Werte: on, off ** Standardwert: `+on+` +* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change* +** Beschreibung: pass:none[display nick change in private] +** Typ: boolesch +** Werte: on, off +** Standardwert: `+on+` + * [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address* ** Beschreibung: pass:none[zeigt eine Warnung in einem privaten Buffer an, sobald sich die Adresse eines Remote-Nick geändert hat; diese Option ist standardmäßig ausgeschaltet, da Server wie bitlbee eine solche Warnung unvermittelt auslösen (die Adresse des Remote-Nick ändert sich während eines Login mehrfach)] ** Typ: boolesch diff --git a/doc/en/includes/autogen_user_options.en.adoc b/doc/en/includes/autogen_user_options.en.adoc index 8f7c9e000..fa8c4f1e1 100644 --- a/doc/en/includes/autogen_user_options.en.adoc +++ b/doc/en/includes/autogen_user_options.en.adoc @@ -2348,6 +2348,12 @@ ** values: on, off ** default value: `+on+` +* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change* +** description: pass:none[display nick change in private] +** type: boolean +** values: on, off +** default value: `+on+` + * [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address* ** description: pass:none[display a warning in private buffer if the address of remote nick has changed; this option is disabled by default because servers like bitlbee are causing this warning to be displayed when it is not expected (the address of remote nick changes multiple times on login)] ** type: boolean diff --git a/doc/fr/includes/autogen_user_options.fr.adoc b/doc/fr/includes/autogen_user_options.fr.adoc index 85f460271..760b805a3 100644 --- a/doc/fr/includes/autogen_user_options.fr.adoc +++ b/doc/fr/includes/autogen_user_options.fr.adoc @@ -2348,6 +2348,12 @@ ** valeurs: on, off ** valeur par défaut: `+on+` +* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change* +** description: pass:none[afficher le changement de pseudo en privé] +** type: booléen +** valeurs: on, off +** valeur par défaut: `+on+` + * [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address* ** description: pass:none[afficher un avertissement dans le tampon privé si l'adresse du pseudo distant a changé ; cette option est désactivée par défaut car les serveurs comme bitlbee causent un affichage de cet avertissement à tort (l'adresse du pseudo distant change plusieurs fois à la connexion)] ** type: booléen diff --git a/doc/it/includes/autogen_user_options.it.adoc b/doc/it/includes/autogen_user_options.it.adoc index b60b0ee1b..2c21a3093 100644 --- a/doc/it/includes/autogen_user_options.it.adoc +++ b/doc/it/includes/autogen_user_options.it.adoc @@ -2348,6 +2348,12 @@ ** valori: on, off ** valore predefinito: `+on+` +* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change* +** descrizione: pass:none[display nick change in private] +** tipo: bool +** valori: on, off +** valore predefinito: `+on+` + * [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address* ** descrizione: pass:none[display a warning in private buffer if the address of remote nick has changed; this option is disabled by default because servers like bitlbee are causing this warning to be displayed when it is not expected (the address of remote nick changes multiple times on login)] ** tipo: bool diff --git a/doc/ja/includes/autogen_user_options.ja.adoc b/doc/ja/includes/autogen_user_options.ja.adoc index ca6d96898..d7dbb95c9 100644 --- a/doc/ja/includes/autogen_user_options.ja.adoc +++ b/doc/ja/includes/autogen_user_options.ja.adoc @@ -2348,6 +2348,12 @@ ** 値: on, off ** デフォルト値: `+on+` +* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change* +** 説明: pass:none[display nick change in private] +** タイプ: ブール +** 値: on, off +** デフォルト値: `+on+` + * [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address* ** 説明: pass:none[display a warning in private buffer if the address of remote nick has changed; this option is disabled by default because servers like bitlbee are causing this warning to be displayed when it is not expected (the address of remote nick changes multiple times on login)] ** タイプ: ブール diff --git a/doc/pl/includes/autogen_user_options.pl.adoc b/doc/pl/includes/autogen_user_options.pl.adoc index 69bbda193..e96c80e3a 100644 --- a/doc/pl/includes/autogen_user_options.pl.adoc +++ b/doc/pl/includes/autogen_user_options.pl.adoc @@ -2348,6 +2348,12 @@ ** wartości: on, off ** domyślna wartość: `+on+` +* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change* +** opis: pass:none[display nick change in private] +** typ: bool +** wartości: on, off +** domyślna wartość: `+on+` + * [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address* ** opis: pass:none[wyświetl ostrzeżenie w prywatnym buforze jeśli adres zdalnego nicka uległ zmianie; ta opcja jest domyślnie wyłączona ponieważ serwery jak bitlbee powodują wyświetlanie tego ostrzeżenia, kiedy nie powinny (adres zdalnego nicka zmienia się wiele razy przy logowaniu)] ** typ: bool diff --git a/doc/sr/includes/autogen_user_options.sr.adoc b/doc/sr/includes/autogen_user_options.sr.adoc index fef6c7de0..2a90b033e 100644 --- a/doc/sr/includes/autogen_user_options.sr.adoc +++ b/doc/sr/includes/autogen_user_options.sr.adoc @@ -2348,6 +2348,12 @@ ** вредности: on, off ** подразумевана вредност: `+on+` +* [[option_irc.look.display_pv_nick_change]] *irc.look.display_pv_nick_change* +** опис: pass:none[display nick change in private] +** тип: логичка +** вредности: on, off +** подразумевана вредност: `+on+` + * [[option_irc.look.display_pv_warning_address]] *irc.look.display_pv_warning_address* ** опис: pass:none[приказ упозорења у приватном баферу ако се промени адреса удаљеног надимка; ова опција је подразумевано искључена јер сервери као што је bitlbee чине да се ово упозорење прикаже и онда када се то не очекује (адреса удаљеног надимка се током пријављивања мења више пута)] ** тип: логичка diff --git a/po/cs.po b/po/cs.po index c82daef59..73289f276 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: 2022-08-15 14:42+0200\n" +"POT-Creation-Date: 2022-09-14 21:38+0200\n" "PO-Revision-Date: 2022-06-18 16:11+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -8689,6 +8689,11 @@ msgstr "" "zobrazit v soukromém okně zprávu po tom co se uživatel vráti (po odpojení od " "serveru)" +#, fuzzy +#| msgid "use same nick color for channel and private" +msgid "display nick change in private" +msgstr "použít stejnou barvu přezdívky pro kanál a soukromý rozhovor" + msgid "" "display a warning in private buffer if the address of remote nick has " "changed; this option is disabled by default because servers like bitlbee are " @@ -13268,14 +13273,6 @@ msgstr "%s%s: chyba posílání dat k \"%s\" přes xfer chat" msgid "%s: file %s (local filename: %s) will be resumed at position %llu" msgstr "%s: soubor %s (lokální jméno souboru: %s) bude obnoven na pozici %llu" -#, c-format -msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected" -msgstr "" - -#, fuzzy, c-format -msgid "%s%s: invalid address \"%s\": error %d %s" -msgstr "%s%s: nevalidní bind adresa \"%s\" pro %s" - #, c-format msgid "%s%s: missing arguments (%s)" msgstr "%s%s: chybí argumenty (%s)" @@ -13536,6 +13533,14 @@ msgstr "seznam xfer" msgid "xfer pointer (optional)" msgstr "ukazatel xfer (volitelné)" +#, c-format +msgid "%s%s: address \"%s\" resolved to a larger sockaddr than expected" +msgstr "" + +#, fuzzy, c-format +msgid "%s%s: invalid address \"%s\": error %d %s" +msgstr "%s%s: nevalidní bind adresa \"%s\" pro %s" + #, fuzzy, c-format msgid "%s%s: unable to create pipe: error %d %s" msgstr "%s%s: nemohu se připojit\" neočekávaná chyba (%d)" diff --git a/po/de.po b/po/de.po index ac0da4227..5a334321c 100644 --- a/po/de.po +++ b/po/de.po @@ -25,7 +25,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2022-08-15 14:42+0200\n" +"POT-Creation-Date: 2022-09-14 21:38+0200\n" "PO-Revision-Date: 2022-09-11 16:24+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -6529,12 +6529,11 @@ msgid "" "more when the bar is hidden; you can also use the command \"/buflist " "toggle\" or use the default key alt+shift+b" msgstr "" -"Buflist aktivieren; Es wird empfohlen, diese Option zu verwenden, anstatt nur" -" die Bar zu verstecken, " -"da hiermit auch interne Hooks entfernt werden, die nicht benötigt werden," -" falls die Leiste ausgeblendet " -"wird; Sie können auch den Befehl \"/buflist toggle\" verwenden oder die" -" Standardtastenbelegung alt+shift+b" +"Buflist aktivieren; Es wird empfohlen, diese Option zu verwenden, anstatt " +"nur die Bar zu verstecken, da hiermit auch interne Hooks entfernt werden, " +"die nicht benötigt werden, falls die Leiste ausgeblendet wird; Sie können " +"auch den Befehl \"/buflist toggle\" verwenden oder die " +"Standardtastenbelegung alt+shift+b" msgid "" "if enabled, clicks with left/right buttons on the line with current buffer " @@ -10809,6 +10808,13 @@ msgstr "" "es wird bei einer privaten Unterhaltung eine Mitteilung ausgegeben falls der " "User wieder zurück ist (falls der User sich beim Server abgemeldet hat)" +#, fuzzy +#| msgid "use same nick color for channel and private" +msgid "display nick change in private" +msgstr "" +"nutzt die selbe Farbe für die Darstellung des Nicks im Kanal wie auch im " +"privaten Buffer" + msgid "" "display a warning in private buffer if the address of remote nick has " "changed; this option is disabled by default because servers like bitlbee are " @@ -11148,7 +11154,6 @@ msgstr "" "aktiviert einen intelligenten Filter für \"part\" und \"quit\" Nachrichten" #. TRANSLATORS: please do not translate "setname" -#| msgid "enable smart filter for \"join\" messages" msgid "enable smart filter for \"setname\" messages" msgstr "aktiviert einen intelligenten Filter für \"setname\" Nachrichten" @@ -11205,7 +11210,6 @@ msgid "color for text in account messages" msgstr "Textfarbe für \"account\" Nachrichten" #. TRANSLATORS: please do not translate "chghost" -#| msgid "color for text in chghost messages" msgid "color for text in \"chghost\" messages" msgstr "Textfarbe in der \"chghost\" Nachrichten dargestellt werden" @@ -11225,7 +11229,6 @@ msgstr "" "angezeigt werden soll" #. TRANSLATORS: please do not translate "setname" -#| msgid "color for text in join messages" msgid "color for text in \"setname\" messages" msgstr "Textfarbe in der \"setname\" Nachrichten dargestellt werden" @@ -11836,12 +11839,10 @@ msgid "%s%s%s%s%s%s%s%s%s%s has quit" msgstr "%s%s%s%s%s%s%s%s%s%s hat den IRC verlassen" #, c-format -#| msgid "%s%s%s%s has changed topic for %s%s%s to \"%s%s%s\"" msgid "%s%s%s%s has changed real name to %s\"%s%s%s\"%s" msgstr "%s%s%s%s hat den Realnamen auf %s\"%s%s%s\"%s geändert" #, c-format -#| msgid "%sYour real name has been set to \"%s\"" msgid "%s%sYour real name has been set to %s\"%s%s%s\"%s" msgstr "%s%sIhr richtiger Name wurde auf %s\"%s%s%s\"%s gesetzt" @@ -12666,16 +12667,13 @@ msgstr "" "Farbe der Zeilen des Verlaufspeichers; wird nur dann angewandt, wenn die " "Option logger.file.color_lines = off ist" -#| msgid "" -#| "automatically save content of buffers to files (unless a buffer disables " -#| "log)" msgid "" "automatically save content of buffers to files (unless a buffer disables " "log); if disabled, logging is disabled on all buffers" msgstr "" "speichert automatisch den Inhalt eines Buffers in eine Datei (sofern das " -"Protokollieren für den Buffer nicht deaktiviert sein sollte); Falls" -" deaktiviert, wird die Protokollierung für alle Buffer deaktiviert" +"Protokollieren für den Buffer nicht deaktiviert sein sollte); Falls " +"deaktiviert, wird die Protokollierung für alle Buffer deaktiviert" msgid "" "use ANSI color codes in lines written in log files and display backlog lines " @@ -15287,7 +15285,6 @@ msgid "creating variable" msgstr "erstelle Variable" #, c-format -#| msgid "%s running command %s\"%s%s%s\"%s on buffer %s%s%s" msgid "%s%lu%s running command %s\"%s%s%s\"%s on buffer %s%s%s" msgstr "%s%lu%s führe Befehl %s\"%s%s%s\"%s für Buffer %s%s%s aus" @@ -15296,9 +15293,8 @@ msgid "" "%s%lu%s elapsed: init=%.6fs, conditions=%.6fs, regex=%.6fs, command=%.6fs, " "total=%.6fs" msgstr "" -"%s%lu%s verstrichen: init=%.6fs, Bedingungen=%.6fs, regex=%.6fs, Befehl=" -"%.6fs, " -"Total=%.6fs" +"%s%lu%s verstrichen: init=%.6fs, Bedingungen=%.6fs, regex=%.6fs, " +"Befehl=%.6fs, Total=%.6fs" msgid "Triggers enabled" msgstr "Trigger aktiviert" @@ -15450,8 +15446,7 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat" msgid "" "list|listfull|listdefault || add|addoff|addreplace " -"[\"\" [\"\" [\"\" [\"\" [\"<" -"return_code>\" [\"\"]]]]]] " +"[\"\" [\"\" [\"\" [\"\" [\"\" [\"\"]]]]]] " "|| addinput [] || input|output|recreate || set