diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-04-02 08:37:47 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-04-02 08:37:47 +0200 |
commit | 20bb762e28a08d70e86dd55e9daf65b51e4ad048 (patch) | |
tree | 4c0aa513bc6b84695a23a542a0f15a42199b8728 | |
parent | e6db6185a75b7f00037b81bc4ea6c71ed1d303cc (diff) | |
download | weechat-20bb762e28a08d70e86dd55e9daf65b51e4ad048.zip |
buflist: add options buflist.look.nick_prefix and buflist.look.nick_prefix_empty
The option buflist.look.signals_refresh is not an extra list of signals for
refresh, so it is empty by default.
The default list of signals is handled directly by buflist and not visible to
the user.
29 files changed, 561 insertions, 85 deletions
diff --git a/doc/de/autogen/user/buflist_commands.adoc b/doc/de/autogen/user/buflist_commands.adoc index ffea9f6c0..ca80e8765 100644 --- a/doc/de/autogen/user/buflist_commands.adoc +++ b/doc/de/autogen/user/buflist_commands.adoc @@ -27,6 +27,7 @@ The following variables can be used in these options: - ${format_number}: indented number with separator (evaluation of option buflist.format.number) - ${number}: indented number, for example " 1" if there are between 10 and 99 buffers - ${indent}: indentation for name (channel and private buffers are indented) + - ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled) - ${name}: the short name (if set), with a fallback on the name - ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level) - ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist) diff --git a/doc/de/autogen/user/buflist_options.adoc b/doc/de/autogen/user/buflist_options.adoc index d383abac6..c74e87cc3 100644 --- a/doc/de/autogen/user/buflist_options.adoc +++ b/doc/de/autogen/user/buflist_options.adoc @@ -6,7 +6,7 @@ ** Beschreibung: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)] ** Typ: Zeichenkette ** Werte: beliebige Zeichenkette -** Standardwert: `+"${format_number}${indent}${color_hotlist}${name}"+` +** Standardwert: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+` * [[option_buflist.format.buffer_current]] *buflist.format.buffer_current* ** Beschreibung: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)] @@ -92,11 +92,23 @@ ** Werte: on, off ** Standardwert: `+on+` +* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix* +** Beschreibung: pass:none[get the nick prefix and its color from nicklist so that ${nick_prefix} can be used in format; this can be slow on buffers with lot of nicks in nicklist, so this option is disabled by default] +** Typ: boolesch +** Werte: on, off +** Standardwert: `+off+` + +* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty* +** Beschreibung: pass:none[when the nick prefix is enabled, display a space instead if there is no nick prefix on the buffer] +** Typ: boolesch +** Werte: on, off +** Standardwert: `+on+` + * [[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] +** Beschreibung: pass:none[comma-separated list of extra signals that are hooked and trigger the refresh of buffers list; this can be useful if some custom variables are used in formats and need specific refresh] ** Typ: Zeichenkette ** Werte: beliebige Zeichenkette -** Standardwert: `+"buffer_opened,buffer_closed,buffer_merged,buffer_unmerged,buffer_moved,buffer_renamed,buffer_switch,buffer_hidden,buffer_unhidden,buffer_localvar_added,buffer_localvar_changed,window_switch,hotlist_changed"+` +** Standardwert: `+""+` * [[option_buflist.look.sort]] *buflist.look.sort* ** Beschreibung: pass:none[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] diff --git a/doc/en/autogen/user/buflist_commands.adoc b/doc/en/autogen/user/buflist_commands.adoc index ffea9f6c0..ca80e8765 100644 --- a/doc/en/autogen/user/buflist_commands.adoc +++ b/doc/en/autogen/user/buflist_commands.adoc @@ -27,6 +27,7 @@ The following variables can be used in these options: - ${format_number}: indented number with separator (evaluation of option buflist.format.number) - ${number}: indented number, for example " 1" if there are between 10 and 99 buffers - ${indent}: indentation for name (channel and private buffers are indented) + - ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled) - ${name}: the short name (if set), with a fallback on the name - ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level) - ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist) diff --git a/doc/en/autogen/user/buflist_options.adoc b/doc/en/autogen/user/buflist_options.adoc index 578c7ac5e..cb487694a 100644 --- a/doc/en/autogen/user/buflist_options.adoc +++ b/doc/en/autogen/user/buflist_options.adoc @@ -6,7 +6,7 @@ ** description: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)] ** type: string ** values: any string -** default value: `+"${format_number}${indent}${color_hotlist}${name}"+` +** default value: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+` * [[option_buflist.format.buffer_current]] *buflist.format.buffer_current* ** description: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)] @@ -92,11 +92,23 @@ ** values: on, off ** default value: `+on+` +* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix* +** description: pass:none[get the nick prefix and its color from nicklist so that ${nick_prefix} can be used in format; this can be slow on buffers with lot of nicks in nicklist, so this option is disabled by default] +** type: boolean +** values: on, off +** default value: `+off+` + +* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty* +** description: pass:none[when the nick prefix is enabled, display a space instead if there is no nick prefix on the buffer] +** type: boolean +** values: on, off +** default value: `+on+` + * [[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] +** description: pass:none[comma-separated list of extra signals that are hooked and trigger the refresh of buffers list; this can be useful if some custom variables are used in formats and need specific refresh] ** type: string ** values: any string -** default value: `+"buffer_opened,buffer_closed,buffer_merged,buffer_unmerged,buffer_moved,buffer_renamed,buffer_switch,buffer_hidden,buffer_unhidden,buffer_localvar_added,buffer_localvar_changed,window_switch,hotlist_changed"+` +** default value: `+""+` * [[option_buflist.look.sort]] *buflist.look.sort* ** description: pass:none[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] diff --git a/doc/fr/autogen/user/buflist_commands.adoc b/doc/fr/autogen/user/buflist_commands.adoc index 932d4e95f..eb8dbc0db 100644 --- a/doc/fr/autogen/user/buflist_commands.adoc +++ b/doc/fr/autogen/user/buflist_commands.adoc @@ -27,6 +27,7 @@ Les variables suivantes peuvent être utilisées dans ces options : - ${format_number} : numéro indenté avec un séparateur (évaluation de l'option buflist.format.number) - ${number} : numéro indenté, par exemple " 1" s'il y a entre 10 et 99 tampons - ${indent} : indentation pour le nom (les tampons de canaux ou privés sont indentés) + - ${nick_prefix} : le préfixe du pseudo pour un cancl (défini seulement si l'option buflist.look.nick_prefix est activée) - ${name} : le nom court (si défini), sinon le nom - ${color_hotlist} : la couleur qui dépend du niveau de hotlist le plus élevé pour le tampon (évaluation de l'option buflist.format.hotlist_xxx où xxx est le niveau) - ${format_hotlist} : la hotlist formatée (évaluation de l'option buflist.format.hotlist) diff --git a/doc/fr/autogen/user/buflist_options.adoc b/doc/fr/autogen/user/buflist_options.adoc index e0c06a122..360795c23 100644 --- a/doc/fr/autogen/user/buflist_options.adoc +++ b/doc/fr/autogen/user/buflist_options.adoc @@ -6,7 +6,7 @@ ** description: pass:none[format pour chaque ligne avec un tampon (note : le contenu est évalué, voir /help buflist)] ** type: chaîne ** valeurs: toute chaîne -** valeur par défaut: `+"${format_number}${indent}${color_hotlist}${name}"+` +** valeur par défaut: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+` * [[option_buflist.format.buffer_current]] *buflist.format.buffer_current* ** description: pass:none[format pour la ligne avec le tampon courant (note : le contenu est évalué, voir /help buflist)] @@ -92,11 +92,23 @@ ** valeurs: on, off ** valeur par défaut: `+on+` +* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix* +** description: pass:none[obtenir le préfixe du pseudo et sa couleur depuis la liste de pseudos de telle sorte que ${nick_prefix} puisse être utilisé dans le format ; cela peut être lent sur les tampons avec beaucoup de pseudos dans la liste, donc cette option est désactivée par défaut] +** type: booléen +** valeurs: on, off +** valeur par défaut: `+off+` + +* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty* +** description: pass:none[lorsque le préfixe de pseudo est activé, afficher un espace à la place s'il n'y a pas de préfixe de pseudo sur le tampon] +** type: booléen +** valeurs: on, off +** valeur par défaut: `+on+` + * [[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] +** 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 ; cela peut être utile si certaines variables personnalisées sont utilisées dans les formats et nécessitent un rafraîchissement particulier] ** type: chaîne ** valeurs: toute chaîne -** valeur par défaut: `+"buffer_opened,buffer_closed,buffer_merged,buffer_unmerged,buffer_moved,buffer_renamed,buffer_switch,buffer_hidden,buffer_unhidden,buffer_localvar_added,buffer_localvar_changed,window_switch,hotlist_changed"+` +** valeur par défaut: `+""+` * [[option_buflist.look.sort]] *buflist.look.sort* ** description: pass:none[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] diff --git a/doc/it/autogen/user/buflist_commands.adoc b/doc/it/autogen/user/buflist_commands.adoc index ffea9f6c0..ca80e8765 100644 --- a/doc/it/autogen/user/buflist_commands.adoc +++ b/doc/it/autogen/user/buflist_commands.adoc @@ -27,6 +27,7 @@ The following variables can be used in these options: - ${format_number}: indented number with separator (evaluation of option buflist.format.number) - ${number}: indented number, for example " 1" if there are between 10 and 99 buffers - ${indent}: indentation for name (channel and private buffers are indented) + - ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled) - ${name}: the short name (if set), with a fallback on the name - ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level) - ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist) diff --git a/doc/it/autogen/user/buflist_options.adoc b/doc/it/autogen/user/buflist_options.adoc index 3f899a67a..30db597ec 100644 --- a/doc/it/autogen/user/buflist_options.adoc +++ b/doc/it/autogen/user/buflist_options.adoc @@ -6,7 +6,7 @@ ** descrizione: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)] ** tipo: stringa ** valori: qualsiasi stringa -** valore predefinito: `+"${format_number}${indent}${color_hotlist}${name}"+` +** valore predefinito: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+` * [[option_buflist.format.buffer_current]] *buflist.format.buffer_current* ** descrizione: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)] @@ -92,11 +92,23 @@ ** valori: on, off ** valore predefinito: `+on+` +* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix* +** descrizione: pass:none[get the nick prefix and its color from nicklist so that ${nick_prefix} can be used in format; this can be slow on buffers with lot of nicks in nicklist, so this option is disabled by default] +** tipo: bool +** valori: on, off +** valore predefinito: `+off+` + +* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty* +** descrizione: pass:none[when the nick prefix is enabled, display a space instead if there is no nick prefix on the buffer] +** tipo: bool +** valori: on, off +** valore predefinito: `+on+` + * [[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] +** descrizione: pass:none[comma-separated list of extra signals that are hooked and trigger the refresh of buffers list; this can be useful if some custom variables are used in formats and need specific refresh] ** tipo: stringa ** valori: qualsiasi stringa -** valore predefinito: `+"buffer_opened,buffer_closed,buffer_merged,buffer_unmerged,buffer_moved,buffer_renamed,buffer_switch,buffer_hidden,buffer_unhidden,buffer_localvar_added,buffer_localvar_changed,window_switch,hotlist_changed"+` +** valore predefinito: `+""+` * [[option_buflist.look.sort]] *buflist.look.sort* ** descrizione: pass:none[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] diff --git a/doc/ja/autogen/user/buflist_commands.adoc b/doc/ja/autogen/user/buflist_commands.adoc index 27d1a5e92..369385dc4 100644 --- a/doc/ja/autogen/user/buflist_commands.adoc +++ b/doc/ja/autogen/user/buflist_commands.adoc @@ -27,6 +27,7 @@ The following variables can be used in these options: - ${format_number}: indented number with separator (evaluation of option buflist.format.number) - ${number}: indented number, for example " 1" if there are between 10 and 99 buffers - ${indent}: indentation for name (channel and private buffers are indented) + - ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled) - ${name}: the short name (if set), with a fallback on the name - ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level) - ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist) diff --git a/doc/ja/autogen/user/buflist_options.adoc b/doc/ja/autogen/user/buflist_options.adoc index 2e4fabcf3..c20c30c12 100644 --- a/doc/ja/autogen/user/buflist_options.adoc +++ b/doc/ja/autogen/user/buflist_options.adoc @@ -6,7 +6,7 @@ ** 説明: pass:none[各バッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)] ** タイプ: 文字列 ** 値: 未制約文字列 -** デフォルト値: `+"${format_number}${indent}${color_hotlist}${name}"+` +** デフォルト値: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+` * [[option_buflist.format.buffer_current]] *buflist.format.buffer_current* ** 説明: pass:none[現在のバッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)] @@ -92,11 +92,23 @@ ** 値: on, off ** デフォルト値: `+on+` +* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix* +** 説明: pass:none[get the nick prefix and its color from nicklist so that ${nick_prefix} can be used in format; this can be slow on buffers with lot of nicks in nicklist, so this option is disabled by default] +** タイプ: ブール +** 値: on, off +** デフォルト値: `+off+` + +* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty* +** 説明: pass:none[when the nick prefix is enabled, display a space instead if there is no nick prefix on the buffer] +** タイプ: ブール +** 値: on, off +** デフォルト値: `+on+` + * [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh* -** 説明: pass:none[フックされたシグナルおよびバッファリストの再読込シグナルのコンマ区切りリスト] +** 説明: pass:none[comma-separated list of extra signals that are hooked and trigger the refresh of buffers list; this can be useful if some custom variables are used in formats and need specific refresh] ** タイプ: 文字列 ** 値: 未制約文字列 -** デフォルト値: `+"buffer_opened,buffer_closed,buffer_merged,buffer_unmerged,buffer_moved,buffer_renamed,buffer_switch,buffer_hidden,buffer_unhidden,buffer_localvar_added,buffer_localvar_changed,window_switch,hotlist_changed"+` +** デフォルト値: `+""+` * [[option_buflist.look.sort]] *buflist.look.sort* ** 説明: pass:none[バッファをソートする際に考慮するフィールドのコンマ区切りリスト; 各フィールドはバッファの hdata 変数です; フィールドの先頭に "-" 文字を付けることでソート順を逆にすることも可能です] diff --git a/doc/pl/autogen/user/buflist_commands.adoc b/doc/pl/autogen/user/buflist_commands.adoc index ffea9f6c0..ca80e8765 100644 --- a/doc/pl/autogen/user/buflist_commands.adoc +++ b/doc/pl/autogen/user/buflist_commands.adoc @@ -27,6 +27,7 @@ The following variables can be used in these options: - ${format_number}: indented number with separator (evaluation of option buflist.format.number) - ${number}: indented number, for example " 1" if there are between 10 and 99 buffers - ${indent}: indentation for name (channel and private buffers are indented) + - ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled) - ${name}: the short name (if set), with a fallback on the name - ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level) - ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist) diff --git a/doc/pl/autogen/user/buflist_options.adoc b/doc/pl/autogen/user/buflist_options.adoc index 34870bca8..37d619348 100644 --- a/doc/pl/autogen/user/buflist_options.adoc +++ b/doc/pl/autogen/user/buflist_options.adoc @@ -6,7 +6,7 @@ ** opis: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)] ** typ: ciąg ** wartości: dowolny ciąg -** domyślna wartość: `+"${format_number}${indent}${color_hotlist}${name}"+` +** domyślna wartość: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+` * [[option_buflist.format.buffer_current]] *buflist.format.buffer_current* ** opis: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)] @@ -92,11 +92,23 @@ ** wartości: on, off ** domyślna wartość: `+on+` +* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix* +** opis: pass:none[get the nick prefix and its color from nicklist so that ${nick_prefix} can be used in format; this can be slow on buffers with lot of nicks in nicklist, so this option is disabled by default] +** typ: bool +** wartości: on, off +** domyślna wartość: `+off+` + +* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty* +** opis: pass:none[when the nick prefix is enabled, display a space instead if there is no nick prefix on the buffer] +** typ: bool +** wartości: on, off +** domyślna wartość: `+on+` + * [[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] +** opis: pass:none[comma-separated list of extra signals that are hooked and trigger the refresh of buffers list; this can be useful if some custom variables are used in formats and need specific refresh] ** typ: ciąg ** wartości: dowolny ciąg -** domyślna wartość: `+"buffer_opened,buffer_closed,buffer_merged,buffer_unmerged,buffer_moved,buffer_renamed,buffer_switch,buffer_hidden,buffer_unhidden,buffer_localvar_added,buffer_localvar_changed,window_switch,hotlist_changed"+` +** domyślna wartość: `+""+` * [[option_buflist.look.sort]] *buflist.look.sort* ** opis: pass:none[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] @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -4930,6 +4930,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -4941,6 +4943,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " napojené signály:" + #, fuzzy msgid "" "conditions to display a buffer (note: content is evaluated, see /help " @@ -4956,13 +4962,25 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" #, fuzzy msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "čárkami oddělený seznam slovníků, které použít pro tento buffer" msgid "" @@ -19,7 +19,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -5798,6 +5798,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -5809,6 +5811,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " eingehangene (hooked) Signale:" + #, fuzzy msgid "" "conditions to display a buffer (note: content is evaluated, see /help " @@ -5826,13 +5832,25 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" #, fuzzy msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "" "durch Kommata getrennte Liste von Wörterbüchern, welche in diesem Buffer " "genutzt werden sollen" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -5143,6 +5143,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -5154,6 +5156,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " señales enganchadas:" + #, fuzzy msgid "" "conditions to display a buffer (note: content is evaluated, see /help " @@ -5169,13 +5175,25 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" #, fuzzy msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "lista separada por comas de diccionarios para usar en este buffer" msgid "" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" -"PO-Revision-Date: 2017-04-01 12:20+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\n" +"PO-Revision-Date: 2017-04-02 08:32+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -5685,6 +5685,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -5724,6 +5726,8 @@ msgstr "" "tampons\n" " - ${indent} : indentation pour le nom (les tampons de canaux ou privés " "sont indentés)\n" +" - ${nick_prefix} : le préfixe du pseudo pour un cancl (défini seulement " +"si l'option buflist.look.nick_prefix est activée)\n" " - ${name} : le nom court (si défini), sinon le nom\n" " - ${color_hotlist} : la couleur qui dépend du niveau de hotlist le plus " "élevé pour le tampon (évaluation de l'option buflist.format.hotlist_xxx où " @@ -5734,6 +5738,10 @@ msgstr "" " - ${format_lag} : le lag pour un tampon de serveur IRC, vide s'il n'y a " "pas de lag (évaluation de l'option buflist.format.lag)" +#, c-format +msgid "%s: %d signals hooked" +msgstr "%s: %d signaux accrochés" + msgid "" "conditions to display a buffer (note: content is evaluated, see /help " "buflist)" @@ -5754,17 +5762,37 @@ msgstr "" "la liste" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" +"obtenir le préfixe du pseudo et sa couleur depuis la liste de pseudos de " +"telle sorte que ${nick_prefix} puisse être utilisé dans le format ; cela " +"peut être lent sur les tampons avec beaucoup de pseudos dans la liste, donc " +"cette option est désactivée par défaut" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" +"lorsque le préfixe de pseudo est activé, afficher un espace à la place s'il " +"n'y a pas de préfixe de pseudo sur le tampon" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" "si activé, les actions de roulette de souris haut/bas sautent au tampon " "précédent/suivant dans la liste" msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "" "liste de signaux séparés par des virgules qui sont accrochés et déclenchent " -"l'affichage de la liste des tampons" +"l'affichage de la liste des tampons ; cela peut être utile si certaines " +"variables personnalisées sont utilisées dans les formats et nécessitent un " +"rafraîchissement particulier" msgid "" "comma-separated list of fields to sort buffers; each field is a hdata " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -4467,6 +4467,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -4478,6 +4480,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " üzenetkezelők:\n" + #, fuzzy msgid "" "conditions to display a buffer (note: content is evaluated, see /help " @@ -4493,12 +4499,24 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "" msgid "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -5281,6 +5281,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -5292,6 +5294,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " hook sui segnali:" + #, fuzzy msgid "" "conditions to display a buffer (note: content is evaluated, see /help " @@ -5309,13 +5315,25 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" #, fuzzy msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "elenco separato da virgole di dizionari da usare su questo buffer" msgid "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\n" "PO-Revision-Date: 2017-03-26 09:00+0900\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -5419,6 +5419,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -5462,6 +5464,10 @@ msgstr "" " - ${format_lag}: IRC サーババッファの遅延時間、遅延がない場合は空 " "(buflist.format.lag オプションの評価結果)" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " フックされたシグナル:" + msgid "" "conditions to display a buffer (note: content is evaluated, see /help " "buflist)" @@ -5477,12 +5483,25 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" +#, fuzzy msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "" "フックされたシグナルおよびバッファリストの再読込シグナルのコンマ区切りリスト" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -5535,6 +5535,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -5546,6 +5548,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " powiązane sygnały:" + #, fuzzy msgid "" "conditions to display a buffer (note: content is evaluated, see /help " @@ -5563,13 +5569,25 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" #, fuzzy msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "oddzielona przecinkami lista słowników do użycia w tym buforze" msgid "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\n" "PO-Revision-Date: 2017-01-14 21:39+0100\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -5537,6 +5537,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -5548,6 +5550,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " sinais ligados:" + #, fuzzy msgid "" "conditions to display a buffer (note: content is evaluated, see /help " @@ -5564,13 +5570,25 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" #, fuzzy msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "lista de dicionários separados por vírgula para usar neste buffer" msgid "" diff --git a/po/pt_BR.po b/po/pt_BR.po index 9894006a1..0a161ee06 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-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -5083,6 +5083,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -5094,6 +5096,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " sinais relacionados:" + #, fuzzy msgid "" "conditions to display a buffer (note: content is evaluated, see /help " @@ -5111,13 +5117,25 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" #, fuzzy msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "lista de dicionários (separados por vírgula) para uso neste buffer" msgid "" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -4505,6 +4505,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -4516,6 +4518,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, fuzzy, c-format +msgid "%s: %d signals hooked" +msgstr " обработчики сообщений:\n" + #, fuzzy msgid "" "conditions to display a buffer (note: content is evaluated, see /help " @@ -4531,12 +4537,24 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "" msgid "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -4070,6 +4070,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -4081,6 +4083,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, c-format +msgid "%s: %d signals hooked" +msgstr "" + msgid "" "conditions to display a buffer (note: content is evaluated, see /help " "buflist)" @@ -4095,12 +4101,24 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "" msgid "" diff --git a/po/weechat.pot b/po/weechat.pot index 680336070..15b76d832 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-04-01 12:14+0200\n" +"POT-Creation-Date: 2017-04-02 08:32+0200\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" @@ -4055,6 +4055,8 @@ msgid "" "and 99 buffers\n" " - ${indent}: indentation for name (channel and private buffers are " "indented)\n" +" - ${nick_prefix}: nick prefix for a channel (set only if the option " +"buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the name\n" " - ${color_hotlist}: the color depending on the highest hotlist level for " "the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the " @@ -4066,6 +4068,10 @@ msgid "" "lag (evaluation of option buflist.format.lag)" msgstr "" +#, c-format +msgid "%s: %d signals hooked" +msgstr "" + msgid "" "conditions to display a buffer (note: content is evaluated, see /help " "buflist)" @@ -4080,12 +4086,24 @@ msgid "if enabled, mouse gestures (drag & drop) move buffers in list" msgstr "" msgid "" +"get the nick prefix and its color from nicklist so that ${nick_prefix} can " +"be used in format; this can be slow on buffers with lot of nicks in " +"nicklist, so this option is disabled by default" +msgstr "" + +msgid "" +"when the nick prefix is enabled, display a space instead if there is no nick " +"prefix on the buffer" +msgstr "" + +msgid "" "if enabled, mouse wheel up/down actions jump to previous/next buffer in list" msgstr "" msgid "" -"comma-separated list of signals that are hooked and trigger the refresh of " -"buffers list" +"comma-separated list of extra signals that are hooked and trigger the " +"refresh of buffers list; this can be useful if some custom variables are " +"used in formats and need specific refresh" msgstr "" msgid "" diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c index 069aed700..39c6e5129 100644 --- a/src/plugins/buflist/buflist-bar-item.c +++ b/src/plugins/buflist/buflist-bar-item.c @@ -50,17 +50,21 @@ 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_nick *ptr_gui_nick; struct t_gui_hotlist *ptr_hotlist; char **buflist, *str_buflist, *condition; char str_format_number[32], str_format_number_empty[32]; + char str_nick_prefix[32]; char str_number[32], str_indent_name[4], *line, **hotlist, *str_hotlist; char str_hotlist_count[32]; const char *ptr_format, *ptr_format_current, *ptr_name, *ptr_type; + const char *ptr_nick, *ptr_nick_prefix; const char *ptr_hotlist_format, *ptr_hotlist_priority; const char *hotlist_priority_none = "none"; const char *hotlist_priority[4] = { "low", "message", "private", "highlight" }; const char *ptr_lag; + int is_channel, is_private; int i, j, length_max_number, current_buffer, number, prev_number, priority; int rc, count; @@ -161,11 +165,47 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data, /* buffer name */ str_indent_name[0] = '\0'; ptr_type = weechat_buffer_get_string (ptr_buffer, "localvar_type"); - if (ptr_type - && ((strcmp (ptr_type, "channel") == 0) - || (strcmp (ptr_type, "private") == 0))) - { + is_channel = (ptr_type && (strcmp (ptr_type, "channel") == 0)); + is_private = (ptr_type && (strcmp (ptr_type, "private") == 0)); + if (is_channel || is_private) snprintf (str_indent_name, sizeof (str_indent_name), " "); + + /* nick prefix */ + if (is_channel + && weechat_config_boolean (buflist_config_look_nick_prefix)) + { + snprintf (str_nick_prefix, sizeof (str_nick_prefix), + "%s", + (weechat_config_boolean (buflist_config_look_nick_prefix_empty)) ? + " " : ""); + ptr_nick = weechat_buffer_get_string (ptr_buffer, "localvar_nick"); + if (ptr_nick) + { + ptr_gui_nick = weechat_nicklist_search_nick (ptr_buffer, NULL, + ptr_nick); + if (ptr_gui_nick) + { + ptr_nick_prefix = weechat_nicklist_nick_get_string ( + ptr_buffer, ptr_gui_nick, "prefix"); + if (ptr_nick_prefix && (ptr_nick_prefix[0] != ' ')) + { + snprintf (str_nick_prefix, sizeof (str_nick_prefix), + "%s%s", + weechat_color ( + weechat_nicklist_nick_get_string ( + ptr_buffer, ptr_gui_nick, + "prefix_color")), + ptr_nick_prefix); + } + } + } + weechat_hashtable_set (buflist_hashtable_extra_vars, + "nick_prefix", str_nick_prefix); + } + else + { + weechat_hashtable_set (buflist_hashtable_extra_vars, + "nick_prefix", ""); } /* set extra variables */ diff --git a/src/plugins/buflist/buflist-command.c b/src/plugins/buflist/buflist-command.c index b9b873c90..2c61252c9 100644 --- a/src/plugins/buflist/buflist-command.c +++ b/src/plugins/buflist/buflist-command.c @@ -99,6 +99,8 @@ buflist_command_init () "are between 10 and 99 buffers\n" " - ${indent}: indentation for name (channel and private " "buffers are indented)\n" + " - ${nick_prefix}: nick prefix for a channel (set only " + "if the option buflist.look.nick_prefix is enabled)\n" " - ${name}: the short name (if set), with a fallback on the " "name\n" " - ${color_hotlist}: the color depending on the highest " diff --git a/src/plugins/buflist/buflist-config.c b/src/plugins/buflist/buflist-config.c index 8c814fc9c..d974b198a 100644 --- a/src/plugins/buflist/buflist-config.c +++ b/src/plugins/buflist/buflist-config.c @@ -20,6 +20,7 @@ */ #include <stdlib.h> +#include <string.h> #include "../weechat-plugin.h" #include "buflist.h" @@ -35,6 +36,8 @@ struct t_config_option *buflist_config_look_display_conditions; struct t_config_option *buflist_config_look_mouse_jump_visited_buffer; struct t_config_option *buflist_config_look_mouse_move_buffer; struct t_config_option *buflist_config_look_mouse_wheel; +struct t_config_option *buflist_config_look_nick_prefix; +struct t_config_option *buflist_config_look_nick_prefix_empty; struct t_config_option *buflist_config_look_signals_refresh; struct t_config_option *buflist_config_look_sort; @@ -123,6 +126,26 @@ buflist_config_signal_buffer_cb (const void *pointer, void *data, } /* + * Compares two signals to add them in the sorted arraylist. + * + * Returns: + * -1: signal1 < signal2 + * 0: signal1 == signal2 + * 1: signal1 > signal2 + */ + +int +buflist_config_compare_signals (void *data, struct t_arraylist *arraylist, + void *pointer1, void *pointer2) +{ + /* make C compiler happy */ + (void) data; + (void) arraylist; + + return strcmp ((const char *)pointer1, (const char *)pointer2); +} + +/* * Callback for changes on option "buflist.look.signals_refresh". */ @@ -130,7 +153,9 @@ void buflist_config_change_signals_refresh (const void *pointer, void *data, struct t_config_option *option) { - char **signals; + char **all_signals, **signals; + const char *ptr_signals_refresh; + struct t_arraylist *signals_list; int count, i; /* make C compiler happy */ @@ -141,25 +166,85 @@ buflist_config_change_signals_refresh (const void *pointer, void *data, if (buflist_config_signals_refresh) buflist_config_free_signals_refresh (); - signals = weechat_string_split ( - weechat_config_string (buflist_config_look_signals_refresh), - ",", 0, 0, &count); - if (signals && (count > 0)) + all_signals = weechat_string_dyn_alloc (256); + if (!all_signals) + return; + + ptr_signals_refresh = weechat_config_string ( + buflist_config_look_signals_refresh); + + weechat_string_dyn_concat (all_signals, BUFLIST_CONFIG_SIGNALS_REFRESH); + if (ptr_signals_refresh && ptr_signals_refresh[0]) + { + weechat_string_dyn_concat (all_signals, ","); + weechat_string_dyn_concat ( + all_signals, + weechat_config_string (buflist_config_look_signals_refresh)); + } + if (weechat_config_boolean (buflist_config_look_nick_prefix)) { - buflist_config_signals_refresh = malloc ( - count * sizeof (*buflist_config_signals_refresh)); - if (buflist_config_signals_refresh) + weechat_string_dyn_concat (all_signals, ","); + weechat_string_dyn_concat ( + all_signals, + BUFLIST_CONFIG_SIGNALS_REFRESH_NICK_PREFIX); + } + + signals = weechat_string_split (*all_signals, ",", 0, 0, &count); + if (signals) + { + signals_list = weechat_arraylist_new ( + 32, 1, 0, + &buflist_config_compare_signals, + NULL, NULL, NULL); + if (signals_list) { - buflist_config_num_signals_refresh = count; for (i = 0; i < count; i++) { - buflist_config_signals_refresh[i] = weechat_hook_signal ( - signals[i], &buflist_config_signal_buffer_cb, NULL, NULL); + weechat_arraylist_add (signals_list, signals[i]); + } + buflist_config_signals_refresh = malloc ( + weechat_arraylist_size (signals_list) * + sizeof (*buflist_config_signals_refresh)); + if (buflist_config_signals_refresh) + { + buflist_config_num_signals_refresh = count; + for (i = 0; i < weechat_arraylist_size (signals_list); i++) + { + buflist_config_signals_refresh[i] = weechat_hook_signal ( + weechat_arraylist_get (signals_list, i), + &buflist_config_signal_buffer_cb, NULL, NULL); + } + if (weechat_buflist_plugin->debug >= 1) + { + weechat_printf (NULL, + _("%s: %d signals hooked"), + BUFLIST_PLUGIN_NAME, + weechat_arraylist_size (signals_list)); + } } + weechat_arraylist_free (signals_list); } - } - if (signals) weechat_string_free_split (signals); + } + + weechat_string_dyn_free (all_signals, 1); +} + +/* + * Callback for changes on option "buflist.look.nick_prefix". + */ + +void +buflist_config_change_nick_prefix (const void *pointer, void *data, + struct t_config_option *option) +{ + /* make C compiler happy */ + (void) pointer; + (void) data; + (void) option; + + buflist_config_change_signals_refresh (NULL, NULL, NULL); + weechat_bar_item_update (BUFLIST_BAR_ITEM_NAME); } /* @@ -238,6 +323,26 @@ buflist_config_init () NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + buflist_config_look_nick_prefix = weechat_config_new_option ( + buflist_config_file, ptr_section, + "nick_prefix", "boolean", + N_("get the nick prefix and its color from nicklist so that " + "${nick_prefix} can be used in format; this can be slow on buffers " + "with lot of nicks in nicklist, so this option is disabled " + "by default"), + NULL, 0, 0, "off", NULL, 0, + NULL, NULL, NULL, + &buflist_config_change_nick_prefix, NULL, NULL, + NULL, NULL, NULL); + buflist_config_look_nick_prefix_empty = weechat_config_new_option ( + buflist_config_file, ptr_section, + "nick_prefix_empty", "boolean", + N_("when the nick prefix is enabled, display a space instead if there " + "is no nick prefix on the buffer"), + NULL, 0, 0, "on", NULL, 0, + NULL, NULL, NULL, + &buflist_config_change_buflist, NULL, NULL, + NULL, NULL, NULL); buflist_config_look_mouse_wheel = weechat_config_new_option ( buflist_config_file, ptr_section, "mouse_wheel", "boolean", @@ -250,14 +355,10 @@ buflist_config_init () buflist_config_look_signals_refresh = weechat_config_new_option ( buflist_config_file, ptr_section, "signals_refresh", "string", - N_("comma-separated list of signals that are hooked and trigger the " - "refresh of buffers list"), - NULL, 0, 0, - "buffer_opened,buffer_closed,buffer_merged,buffer_unmerged," - "buffer_moved,buffer_renamed,buffer_switch,buffer_hidden," - "buffer_unhidden,buffer_localvar_added,buffer_localvar_changed," - "window_switch,hotlist_changed", - NULL, 0, + N_("comma-separated list of extra signals that are hooked and trigger " + "the refresh of buffers list; this can be useful if some custom " + "variables are used in formats and need specific refresh"), + NULL, 0, 0, "", NULL, 0, NULL, NULL, NULL, &buflist_config_change_signals_refresh, NULL, NULL, NULL, NULL, NULL); @@ -294,7 +395,7 @@ buflist_config_init () N_("format of each line with a buffer " "(note: content is evaluated, see /help buflist)"), NULL, 0, 0, - "${format_number}${indent}${color_hotlist}${name}", + "${format_number}${indent}${nick_prefix}${color_hotlist}${name}", NULL, 0, NULL, NULL, NULL, &buflist_config_change_buflist, NULL, NULL, diff --git a/src/plugins/buflist/buflist-config.h b/src/plugins/buflist/buflist-config.h index 027bcd98a..f78dcce29 100644 --- a/src/plugins/buflist/buflist-config.h +++ b/src/plugins/buflist/buflist-config.h @@ -22,12 +22,22 @@ #define BUFLIST_CONFIG_NAME "buflist" +#define BUFLIST_CONFIG_SIGNALS_REFRESH \ + "buffer_opened,buffer_closed,buffer_merged,buffer_unmerged," \ + "buffer_moved,buffer_renamed,buffer_switch,buffer_hidden," \ + "buffer_unhidden,buffer_localvar_added,buffer_localvar_changed," \ + "window_switch,hotlist_changed" +#define BUFLIST_CONFIG_SIGNALS_REFRESH_NICK_PREFIX \ + "nicklist_nick_*" + 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_mouse_jump_visited_buffer; extern struct t_config_option *buflist_config_look_mouse_move_buffer; extern struct t_config_option *buflist_config_look_mouse_wheel; +extern struct t_config_option *buflist_config_look_nick_prefix; +extern struct t_config_option *buflist_config_look_nick_prefix_empty; extern struct t_config_option *buflist_config_look_signals_refresh; extern struct t_config_option *buflist_config_look_sort; |