diff options
29 files changed, 286 insertions, 81 deletions
diff --git a/doc/de/autogen/user/buflist_commands.adoc b/doc/de/autogen/user/buflist_commands.adoc index c82246851..4a6950c93 100644 --- a/doc/de/autogen/user/buflist_commands.adoc +++ b/doc/de/autogen/user/buflist_commands.adoc @@ -10,7 +10,8 @@ refresh: force the refresh of the "buflist" bar item -The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options: +The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options: + - buflist.look.display_conditions: conditions to display a buffer in the list - buflist.format.buffer: format for a buffer which is not current buffer - buflist.format.buffer_current: format for the current buffer diff --git a/doc/de/autogen/user/buflist_options.adoc b/doc/de/autogen/user/buflist_options.adoc index 62a7e805b..8b9fbcb7d 100644 --- a/doc/de/autogen/user/buflist_options.adoc +++ b/doc/de/autogen/user/buflist_options.adoc @@ -62,6 +62,12 @@ ** Werte: beliebige Zeichenkette ** Standardwert: `+" ${color:green}[${color:brown}${lag}${color:green}]"+` +* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions* +** Beschreibung: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist)] +** Typ: Zeichenkette +** Werte: beliebige Zeichenkette +** Standardwert: `+"${buffer.hidden}==0"+` + * [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh* ** Beschreibung: pass:none[comma-separated list of signals that are hooked and trigger the refresh of buffers list] ** Typ: Zeichenkette diff --git a/doc/en/autogen/user/buflist_commands.adoc b/doc/en/autogen/user/buflist_commands.adoc index c82246851..4a6950c93 100644 --- a/doc/en/autogen/user/buflist_commands.adoc +++ b/doc/en/autogen/user/buflist_commands.adoc @@ -10,7 +10,8 @@ refresh: force the refresh of the "buflist" bar item -The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options: +The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options: + - buflist.look.display_conditions: conditions to display a buffer in the list - buflist.format.buffer: format for a buffer which is not current buffer - buflist.format.buffer_current: format for the current buffer diff --git a/doc/en/autogen/user/buflist_options.adoc b/doc/en/autogen/user/buflist_options.adoc index bde041a38..6e42890df 100644 --- a/doc/en/autogen/user/buflist_options.adoc +++ b/doc/en/autogen/user/buflist_options.adoc @@ -62,6 +62,12 @@ ** values: any string ** default value: `+" ${color:green}[${color:brown}${lag}${color:green}]"+` +* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions* +** description: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist)] +** type: string +** values: any string +** default value: `+"${buffer.hidden}==0"+` + * [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh* ** description: pass:none[comma-separated list of signals that are hooked and trigger the refresh of buffers list] ** type: string diff --git a/doc/fr/autogen/user/buflist_commands.adoc b/doc/fr/autogen/user/buflist_commands.adoc index 8ea5758e8..6d7a99145 100644 --- a/doc/fr/autogen/user/buflist_commands.adoc +++ b/doc/fr/autogen/user/buflist_commands.adoc @@ -10,7 +10,8 @@ refresh : forcer le rafraichissement de l'objet de barre "buflist" -Les lignes avec les tampons sont affichées en utilisant l'évaluation de chaînes (voir /help eval pour le format), avec deux options principales : +Les lignes avec les tampons sont affichées en utilisant l'évaluation de chaînes (voir /help eval pour le format), avec ces options : + - buflist.look.display_conditions : conditions pour afficher un tampon dans la liste - buflist.format.buffer : format pour un tampon qui n'est pas le tampon courant - buflist.format.buffer_current: format pour le tampon courant diff --git a/doc/fr/autogen/user/buflist_options.adoc b/doc/fr/autogen/user/buflist_options.adoc index 46c05431a..8bb6d34d4 100644 --- a/doc/fr/autogen/user/buflist_options.adoc +++ b/doc/fr/autogen/user/buflist_options.adoc @@ -62,6 +62,12 @@ ** valeurs: toute chaîne ** valeur par défaut: `+" ${color:green}[${color:brown}${lag}${color:green}]"+` +* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions* +** description: pass:none[conditions pour afficher un tampon (note : le contenu est évalué, voir /help buflist)] +** type: chaîne +** valeurs: toute chaîne +** valeur par défaut: `+"${buffer.hidden}==0"+` + * [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh* ** description: pass:none[liste de signaux séparés par des virgules qui sont accrochés et déclenchent l'affichage de la liste des tampons] ** type: chaîne diff --git a/doc/it/autogen/user/buflist_commands.adoc b/doc/it/autogen/user/buflist_commands.adoc index c82246851..4a6950c93 100644 --- a/doc/it/autogen/user/buflist_commands.adoc +++ b/doc/it/autogen/user/buflist_commands.adoc @@ -10,7 +10,8 @@ refresh: force the refresh of the "buflist" bar item -The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options: +The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options: + - buflist.look.display_conditions: conditions to display a buffer in the list - buflist.format.buffer: format for a buffer which is not current buffer - buflist.format.buffer_current: format for the current buffer diff --git a/doc/it/autogen/user/buflist_options.adoc b/doc/it/autogen/user/buflist_options.adoc index 06b88b05b..f9d30996e 100644 --- a/doc/it/autogen/user/buflist_options.adoc +++ b/doc/it/autogen/user/buflist_options.adoc @@ -62,6 +62,12 @@ ** valori: qualsiasi stringa ** valore predefinito: `+" ${color:green}[${color:brown}${lag}${color:green}]"+` +* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions* +** descrizione: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist)] +** tipo: stringa +** valori: qualsiasi stringa +** valore predefinito: `+"${buffer.hidden}==0"+` + * [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh* ** descrizione: pass:none[comma-separated list of signals that are hooked and trigger the refresh of buffers list] ** tipo: stringa diff --git a/doc/ja/autogen/user/buflist_commands.adoc b/doc/ja/autogen/user/buflist_commands.adoc index c82246851..4a6950c93 100644 --- a/doc/ja/autogen/user/buflist_commands.adoc +++ b/doc/ja/autogen/user/buflist_commands.adoc @@ -10,7 +10,8 @@ refresh: force the refresh of the "buflist" bar item -The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options: +The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options: + - buflist.look.display_conditions: conditions to display a buffer in the list - buflist.format.buffer: format for a buffer which is not current buffer - buflist.format.buffer_current: format for the current buffer diff --git a/doc/ja/autogen/user/buflist_options.adoc b/doc/ja/autogen/user/buflist_options.adoc index 5689b13ed..54cc65102 100644 --- a/doc/ja/autogen/user/buflist_options.adoc +++ b/doc/ja/autogen/user/buflist_options.adoc @@ -62,6 +62,12 @@ ** 値: 未制約文字列 ** デフォルト値: `+" ${color:green}[${color:brown}${lag}${color:green}]"+` +* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions* +** 説明: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist)] +** タイプ: 文字列 +** 値: 未制約文字列 +** デフォルト値: `+"${buffer.hidden}==0"+` + * [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh* ** 説明: pass:none[comma-separated list of signals that are hooked and trigger the refresh of buffers list] ** タイプ: 文字列 diff --git a/doc/pl/autogen/user/buflist_commands.adoc b/doc/pl/autogen/user/buflist_commands.adoc index c82246851..4a6950c93 100644 --- a/doc/pl/autogen/user/buflist_commands.adoc +++ b/doc/pl/autogen/user/buflist_commands.adoc @@ -10,7 +10,8 @@ refresh: force the refresh of the "buflist" bar item -The lines with buffers are displayed using string evaluation (see /help eval for the format), with two main options: +The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options: + - buflist.look.display_conditions: conditions to display a buffer in the list - buflist.format.buffer: format for a buffer which is not current buffer - buflist.format.buffer_current: format for the current buffer diff --git a/doc/pl/autogen/user/buflist_options.adoc b/doc/pl/autogen/user/buflist_options.adoc index e65dd88d6..1e58e8347 100644 --- a/doc/pl/autogen/user/buflist_options.adoc +++ b/doc/pl/autogen/user/buflist_options.adoc @@ -62,6 +62,12 @@ ** wartości: dowolny ciąg ** domyślna wartość: `+" ${color:green}[${color:brown}${lag}${color:green}]"+` +* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions* +** opis: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist)] +** typ: ciąg +** wartości: dowolny ciąg +** domyślna wartość: `+"${buffer.hidden}==0"+` + * [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh* ** opis: pass:none[comma-separated list of signals that are hooked and trigger the refresh of buffers list] ** typ: ciąg @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-01-06 21:59+0100\n" "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4883,7 +4883,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -4914,10 +4916,11 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" -msgstr "" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" +msgstr "příkaz spuštěný při startu WeeChat, před načtením pluginů" #, fuzzy msgid "" @@ -4925,6 +4928,11 @@ msgid "" "buffers list" msgstr "čárkami oddělený seznam slovníků, které použít pro tento buffer" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " @@ -19,7 +19,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-03-12 21:27+0100\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German <kde-i18n-de@kde.org>\n" @@ -5750,7 +5750,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -5781,10 +5783,13 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" msgstr "" +"Realname der auf dem Server genutzt werden soll (Hinweis: Inhalt wird " +"evaluiert, siehe /help eval)" #, fuzzy msgid "" @@ -5794,6 +5799,11 @@ msgstr "" "durch Kommata getrennte Liste von Wörterbüchern, welche in diesem Buffer " "genutzt werden sollen" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-01-06 22:01+0100\n" "Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5095,7 +5095,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -5126,10 +5128,11 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" -msgstr "" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" +msgstr "comando ejecutado cuando WeeChat inicia, antes de cargar los plugins" #, fuzzy msgid "" @@ -5137,6 +5140,11 @@ msgid "" "buffers list" msgstr "lista separada por comas de diccionarios para usar en este buffer" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" -"PO-Revision-Date: 2017-03-25 21:33+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" +"PO-Revision-Date: 2017-03-25 22:12+0100\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -5628,7 +5628,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -5661,7 +5663,9 @@ msgstr "" "refresh : forcer le rafraichissement de l'objet de barre \"buflist\"\n" "\n" "Les lignes avec les tampons sont affichées en utilisant l'évaluation de " -"chaînes (voir /help eval pour le format), avec deux options principales :\n" +"chaînes (voir /help eval pour le format), avec ces options :\n" +" - buflist.look.display_conditions : conditions pour afficher un tampon " +"dans la liste\n" " - buflist.format.buffer : format pour un tampon qui n'est pas le tampon " "courant\n" " - buflist.format.buffer_current: format pour le tampon courant\n" @@ -5694,12 +5698,11 @@ msgstr "" "pas de lag (évaluation de l'option buflist.format.lag)" msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" msgstr "" -"liste de champs séparés par des virgules pour trier les tampons ; chaque " -"champ est une variable hdata du tampon ; le caractère \"-\" peut être " -"utilisé pour inverser l'ordre" +"conditions pour afficher un tampon (note : le contenu est évalué, voir /help " +"buflist)" msgid "" "comma-separated list of signals that are hooked and trigger the refresh of " @@ -5709,6 +5712,14 @@ msgstr "" "l'affichage de la liste des tampons" msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" +"liste de champs séparés par des virgules pour trier les tampons ; chaque " +"champ est une variable hdata du tampon ; le caractère \"-\" peut être " +"utilisé pour inverser l'ordre" + +msgid "" "format of each line with a buffer (note: content is evaluated, see /help " "buflist)" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-01-06 22:03+0100\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4420,7 +4420,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -4451,16 +4453,22 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" -msgstr "" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" +msgstr "felhasználónév az IRC szerveren" msgid "" "comma-separated list of signals that are hooked and trigger the refresh of " "buffers list" msgstr "" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-01-06 22:04+0100\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5234,7 +5234,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -5265,10 +5267,13 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" msgstr "" +"nome utente per il server proxy (nota: il contenuto viene valutato, " +"consultare /help eval)" #, fuzzy msgid "" @@ -5276,6 +5281,11 @@ msgid "" "buffers list" msgstr "elenco separato da virgole di dizionari da usare su questo buffer" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-03-20 09:00+0900\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -5368,7 +5368,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -5399,10 +5401,12 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" msgstr "" +"サーバで使用する実名 (注意: 値は評価されます、/help eval を参照してください)" #, fuzzy msgid "" @@ -5410,6 +5414,11 @@ msgid "" "buffers list" msgstr "このバッファで使用中の辞書のコンマ区切りリスト" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-01-06 22:05+0100\n" "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5487,7 +5487,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -5518,10 +5520,13 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" msgstr "" +"prawdziwa nazwa do użycia na serwerze (uwaga: zawartość jest przetwarzana, " +"zobacz /help eval)" #, fuzzy msgid "" @@ -5529,6 +5534,11 @@ msgid "" "buffers list" msgstr "oddzielona przecinkami lista słowników do użycia w tym buforze" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-01-14 21:39+0100\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -5489,7 +5489,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -5520,10 +5522,12 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" msgstr "" +"nome real a usar no servidor (nota: o conteúdo é avaliado, ver /help eval)" #, fuzzy msgid "" @@ -5531,6 +5535,11 @@ msgid "" "buffers list" msgstr "lista de dicionários separados por vírgula para usar neste buffer" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " diff --git a/po/pt_BR.po b/po/pt_BR.po index d00ccf950..6cb0d65bb 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: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2016-09-03 08:24+0200\n" "Last-Translator: Eduardo Elias <camponez@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5036,7 +5036,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -5067,10 +5069,13 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" msgstr "" +"comando executado quando o WeeChat inicia, antes do carregamento dos plugins " +"(nota: conteúdo é avaliado, veja /help eval)" #, fuzzy msgid "" @@ -5078,6 +5083,11 @@ msgid "" "buffers list" msgstr "lista de dicionários (separados por vírgula) para uso neste buffer" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-01-06 22:06+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4458,7 +4458,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -4489,16 +4491,22 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" -msgstr "" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" +msgstr "ник, используемый на IRC сервере" msgid "" "comma-separated list of signals that are hooked and trigger the refresh of " "buffers list" msgstr "" +msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + #, fuzzy msgid "" "format of each line with a buffer (note: content is evaluated, see /help " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+0100\n" "PO-Revision-Date: 2017-01-06 22:07+0100\n" "Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4024,7 +4024,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -4056,8 +4058,8 @@ msgid "" msgstr "" msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" msgstr "" msgid "" @@ -4066,6 +4068,11 @@ msgid "" msgstr "" msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + +msgid "" "format of each line with a buffer (note: content is evaluated, see /help " "buflist)" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index ded7ff317..eee08c935 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: 2017-03-25 21:32+0100\n" +"POT-Creation-Date: 2017-03-25 22:12+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" @@ -4009,7 +4009,9 @@ msgid "" "refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " -"for the format), with two main options:\n" +"for the format), with these options:\n" +" - buflist.look.display_conditions: conditions to display a buffer in the " +"list\n" " - buflist.format.buffer: format for a buffer which is not current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" "\n" @@ -4041,8 +4043,8 @@ msgid "" msgstr "" msgid "" -"comma-separated list of fields to sort buffers; each field is a hdata " -"variable of buffer; char \"-\" can be used before field to reverse order" +"conditions to display a buffer (note: content is evaluated, see /help " +"buflist)" msgstr "" msgid "" @@ -4051,6 +4053,11 @@ msgid "" msgstr "" msgid "" +"comma-separated list of fields to sort buffers; each field is a hdata " +"variable of buffer; char \"-\" can be used before field to reverse order" +msgstr "" + +msgid "" "format of each line with a buffer (note: content is evaluated, see /help " "buflist)" msgstr "" diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c index 17092f114..1f5f43959 100644 --- a/src/plugins/buflist/buflist-bar-item.c +++ b/src/plugins/buflist/buflist-bar-item.c @@ -33,6 +33,7 @@ struct t_gui_bar_item *buflist_bar_item_buflist = NULL; struct t_hashtable *buflist_hashtable_pointers = NULL; struct t_hashtable *buflist_hashtable_extra_vars = NULL; struct t_hashtable *buflist_hashtable_options = NULL; +struct t_hashtable *buflist_hashtable_options_conditions = NULL; /* @@ -49,7 +50,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data, struct t_arraylist *buffers; struct t_gui_buffer *ptr_buffer, *ptr_current_buffer; struct t_gui_hotlist *ptr_hotlist; - char **buflist, *str_buflist; + char **buflist, *str_buflist, *condition; char str_format_number[32], str_format_number_empty[32]; char str_number[32], str_indent_name[4], *line, **hotlist, *str_hotlist; char str_hotlist_count[32]; @@ -97,6 +98,22 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data, { ptr_buffer = weechat_arraylist_get (buffers, i); + /* set pointers */ + weechat_hashtable_set (buflist_hashtable_pointers, + "buffer", ptr_buffer); + + /* check condition: if false, the buffer is not displayed */ + condition = weechat_string_eval_expression ( + weechat_config_string (buflist_config_look_display_conditions), + buflist_hashtable_pointers, + NULL, /* extra vars */ + buflist_hashtable_options_conditions); + rc = (condition && (strcmp (condition, "1") == 0)); + if (condition) + free (condition); + if (!rc) + continue; + current_buffer = (ptr_buffer == ptr_current_buffer); ptr_hotlist = weechat_hdata_pointer (buflist_hdata_buffer, @@ -139,10 +156,6 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data, snprintf (str_indent_name, sizeof (str_indent_name), " "); } - /* set pointers */ - weechat_hashtable_set (buflist_hashtable_pointers, - "buffer", ptr_buffer); - /* set extra variables */ weechat_hashtable_set (buflist_hashtable_extra_vars, "format_buffer", @@ -273,7 +286,7 @@ end: int buflist_bar_item_init () { - /* create hashtable used by the bar item callback */ + /* create hashtables used by the bar item callback */ buflist_hashtable_pointers = weechat_hashtable_new ( 8, WEECHAT_HASHTABLE_STRING, @@ -282,6 +295,7 @@ buflist_bar_item_init () NULL); if (!buflist_hashtable_pointers) return 0; + buflist_hashtable_extra_vars = weechat_hashtable_new ( 32, WEECHAT_HASHTABLE_STRING, @@ -293,6 +307,7 @@ buflist_bar_item_init () weechat_hashtable_free (buflist_hashtable_pointers); return 0; } + buflist_hashtable_options = weechat_hashtable_new ( 8, WEECHAT_HASHTABLE_STRING, @@ -307,6 +322,21 @@ buflist_bar_item_init () } weechat_hashtable_set (buflist_hashtable_options, "extra", "eval"); + buflist_hashtable_options_conditions = weechat_hashtable_new ( + 8, + WEECHAT_HASHTABLE_STRING, + WEECHAT_HASHTABLE_STRING, + NULL, NULL); + if (!buflist_hashtable_options_conditions) + { + weechat_hashtable_free (buflist_hashtable_pointers); + weechat_hashtable_free (buflist_hashtable_extra_vars); + weechat_hashtable_free (buflist_hashtable_options); + return 0; + } + weechat_hashtable_set (buflist_hashtable_options_conditions, + "type", "condition"); + /* bar items */ buflist_bar_item_buflist = weechat_bar_item_new ( BUFLIST_BAR_ITEM_NAME, @@ -332,4 +362,7 @@ buflist_bar_item_end () weechat_hashtable_free (buflist_hashtable_options); buflist_hashtable_options = NULL; + + weechat_hashtable_free (buflist_hashtable_options_conditions); + buflist_hashtable_options_conditions = NULL; } diff --git a/src/plugins/buflist/buflist-command.c b/src/plugins/buflist/buflist-command.c index 392c298ac..02ef81451 100644 --- a/src/plugins/buflist/buflist-command.c +++ b/src/plugins/buflist/buflist-command.c @@ -73,7 +73,9 @@ buflist_command_init () N_("refresh: force the refresh of the \"buflist\" bar item\n" "\n" "The lines with buffers are displayed using string evaluation " - "(see /help eval for the format), with two main options:\n" + "(see /help eval for the format), with these options:\n" + " - buflist.look.display_conditions: conditions to display a " + "buffer in the list\n" " - buflist.format.buffer: format for a buffer which is not " "current buffer\n" " - buflist.format.buffer_current: format for the current buffer\n" diff --git a/src/plugins/buflist/buflist-config.c b/src/plugins/buflist/buflist-config.c index d61ac9a6a..1c24a6d61 100644 --- a/src/plugins/buflist/buflist-config.c +++ b/src/plugins/buflist/buflist-config.c @@ -31,6 +31,7 @@ struct t_config_file *buflist_config_file = NULL; /* buflist config, look section */ +struct t_config_option *buflist_config_look_display_conditions; struct t_config_option *buflist_config_look_signals_refresh; struct t_config_option *buflist_config_look_sort; @@ -205,17 +206,16 @@ buflist_config_init () return 0; } - buflist_config_look_sort = weechat_config_new_option ( + buflist_config_look_display_conditions = weechat_config_new_option ( buflist_config_file, ptr_section, - "sort", "string", - N_("comma-separated list of fields to sort buffers; each field is " - "a hdata variable of buffer; char \"-\" can be used before field " - "to reverse order"), + "display_conditions", "string", + N_("conditions to display a buffer " + "(note: content is evaluated, see /help buflist)"), NULL, 0, 0, - "number,-active", + "${buffer.hidden}==0", NULL, 0, NULL, NULL, NULL, - &buflist_config_change_sort, NULL, NULL, + &buflist_config_change_signals_refresh, NULL, NULL, NULL, NULL, NULL); buflist_config_look_signals_refresh = weechat_config_new_option ( buflist_config_file, ptr_section, @@ -231,6 +231,18 @@ buflist_config_init () NULL, NULL, NULL, &buflist_config_change_signals_refresh, NULL, NULL, NULL, NULL, NULL); + buflist_config_look_sort = weechat_config_new_option ( + buflist_config_file, ptr_section, + "sort", "string", + N_("comma-separated list of fields to sort buffers; each field is " + "a hdata variable of buffer; char \"-\" can be used before field " + "to reverse order"), + NULL, 0, 0, + "number,-active", + NULL, 0, + NULL, NULL, NULL, + &buflist_config_change_sort, NULL, NULL, + NULL, NULL, NULL); /* format */ ptr_section = weechat_config_new_section (buflist_config_file, "format", diff --git a/src/plugins/buflist/buflist-config.h b/src/plugins/buflist/buflist-config.h index 87c7fbf8b..c49890a4f 100644 --- a/src/plugins/buflist/buflist-config.h +++ b/src/plugins/buflist/buflist-config.h @@ -24,6 +24,7 @@ extern struct t_config_file *buflist_config_file; +extern struct t_config_option *buflist_config_look_display_conditions; extern struct t_config_option *buflist_config_look_signals_refresh; extern struct t_config_option *buflist_config_look_sort; |