From 79d0a134e310fdf3324a092bf552f0567a920ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 11 Sep 2023 07:55:54 +0200 Subject: [PATCH] buflist: add missing items buflist4 and buflist5 in help on command/options and user's guide --- doc/de/weechat_user.de.adoc | 8 +- doc/en/weechat_user.en.adoc | 5 +- doc/fr/weechat_user.fr.adoc | 6 +- doc/it/weechat_user.it.adoc | 7 +- doc/ja/weechat_user.ja.adoc | 8 +- doc/pl/weechat_user.pl.adoc | 8 +- doc/sr/weechat_user.sr.adoc | 9 ++- po/cs.po | 10 +-- po/de.po | 108 +++++++++++++++++++++++--- po/es.po | 10 +-- po/fr.po | 18 ++--- po/hu.po | 10 +-- po/it.po | 10 +-- po/ja.po | 18 +++-- po/pl.po | 18 +++-- po/pt.po | 10 +-- po/pt_BR.po | 10 +-- po/ru.po | 10 +-- po/sr.po | 100 ++++++++++++++++++++++-- po/tr.po | 18 +++-- po/weechat.pot | 10 +-- src/plugins/buflist/buflist-command.c | 2 +- src/plugins/buflist/buflist-config.c | 2 +- 23 files changed, 325 insertions(+), 90 deletions(-) diff --git a/doc/de/weechat_user.de.adoc b/doc/de/weechat_user.de.adoc index ea8c3dde1..384332114 100644 --- a/doc/de/weechat_user.de.adoc +++ b/doc/de/weechat_user.de.adoc @@ -901,6 +901,10 @@ andere Items die zur Verfügung stehen (die aber nicht standardmäßig in einer | buffer_short_name | `#test` | Kurzname des aktuellen Buffers. | buflist2 | `1.weechat` | List der Buffer, zweites Bar-Item (siehe Option <>). | buflist3 | `1.weechat` | List der Buffer, drittes Bar-Item (siehe Option <>). +// TRANSLATION MISSING +| buflist4 | `1.weechat` | List of buffers, fourth bar item (see option <>). +// TRANSLATION MISSING +| buflist5 | `1.weechat` | List of buffers, fifth bar item (see option <>). | fset | `+buflist.look.sort: …+` | Hilfstext zur aktuell ausgewählten Option im Fset-Buffer. | irc_channel | `#test` | aktueller Name des IRC Kanals. | irc_host | `+user@host.com+` | aktueller IRC Host. @@ -1426,8 +1430,10 @@ Externe Erweitertungen und Skripte können andere lokale Variablen definieren un [[buflist]] === Liste der Buffer +// TRANSLATION MISSING Die Buflist-Erweiterung dient dazu eine Liste der geöffneten Buffer in einer Bar-Item, mit Namen -"buflist", darzustellen (zwei weiere Bar-Items "buflist2" und "buflist3" sind zusätzlich verfügbar). + +"buflist", darzustellen (four other bar items "buflist2", "buflist3", "buflist4" +and "buflist5" are available as well). + Eine Standardbar, "buflist", wird beim Programmstart automatisch mit folgendem Inhalt erstellt. [[buflist_commands]] diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index 974412fbd..c7b1b515f 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -895,6 +895,8 @@ Other items available (not used in bars by default): | buffer_short_name | `#test` | Current buffer short name. | buflist2 | `1.weechat` | List of buffers, second bar item (see option <>). | buflist3 | `1.weechat` | List of buffers, third bar item (see option <>). +| buflist4 | `1.weechat` | List of buffers, fourth bar item (see option <>). +| buflist5 | `1.weechat` | List of buffers, fifth bar item (see option <>). | fset | `+buflist.look.sort: …+` | Help on currently selected option on fset buffer. | irc_channel | `#test` | Current IRC channel name. | irc_host | `+user@host.com+` | Current IRC host. @@ -1413,7 +1415,8 @@ External plugins and scripts can define and use other local variables. === List of buffers Buflist plugin displays a list of buffers in a bar item called "buflist" -(two other bar items "buflist2" and "buflist3" are available as well). + +(four other bar items "buflist2", "buflist3", "buflist4" and "buflist5" are +available as well). + A default bar "buflist" is created on startup with this item. [[buflist_commands]] diff --git a/doc/fr/weechat_user.fr.adoc b/doc/fr/weechat_user.fr.adoc index b96a666a8..9434320fb 100644 --- a/doc/fr/weechat_user.fr.adoc +++ b/doc/fr/weechat_user.fr.adoc @@ -909,6 +909,8 @@ Autres objets (non utilisés dans des barres par défaut) : | buffer_short_name | `#test` | Nom court du tampon courant. | buflist2 | `1.weechat` | Liste des tampons, deuxième objet de barre (voir l'option <>). | buflist3 | `1.weechat` | Liste des tampons, troisième objet de barre (voir l'option <>). +| buflist4 | `1.weechat` | Liste des tampons, quatrième objet de barre (voir l'option <>). +| buflist5 | `1.weechat` | Liste des tampons, cinquième objet de barre (voir l'option <>). | fset | `+buflist.look.sort: …+` | Aide sur l'option sélectionnée dans le tampon fset. | irc_channel | `#test` | Nom de canal IRC courant. | irc_host | `+user@host.com+` | Hôte sur IRC. @@ -1444,8 +1446,8 @@ variables locales. === Liste des tampons L'extension Buflist affiche une liste des tampons dans un objet de barre appelé -"buflist" (deux autres objets de barre "buflist2" et "buflist3" sont également -disponibles). + +"buflist" (quatre autres objets de barre "buflist2", "buflist3", "buflist4" et +"buflist5" sont également disponibles). + Une barre par défaut "buflist" est créée au démarrage avec cet objet de barre. [[buflist_commands]] diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc index 506a260bb..b8da2bd0d 100644 --- a/doc/it/weechat_user.it.adoc +++ b/doc/it/weechat_user.it.adoc @@ -988,6 +988,10 @@ Other items available (not used in bars by default): | buffer_short_name | `#test` | Current buffer short name. | buflist2 | `1.weechat` | List of buffers, second bar item (see option <>). | buflist3 | `1.weechat` | List of buffers, third bar item (see option <>). +// TRANSLATION MISSING +| buflist4 | `1.weechat` | List of buffers, fourth bar item (see option <>). +// TRANSLATION MISSING +| buflist5 | `1.weechat` | List of buffers, fifth bar item (see option <>). | fset | `+buflist.look.sort: …+` | Help on currently selected option on fset buffer. | irc_channel | `#test` | Current IRC channel name. | irc_host | `+user@host.com+` | Current IRC host. @@ -1532,7 +1536,8 @@ External plugins and scripts can define and use other local variables. // TRANSLATION MISSING Buflist plugin displays a list of buffers in a bar item called "buflist" -(two other bar items "buflist2" and "buflist3" are available as well). + +(four other bar items "buflist2", "buflist3", "buflist4" and "buflist5" are +available as well). + A default bar "buflist" is created on startup with this item. [[buflist_commands]] diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc index 977c33d5f..51a73021b 100644 --- a/doc/ja/weechat_user.ja.adoc +++ b/doc/ja/weechat_user.ja.adoc @@ -954,6 +954,10 @@ By default, the screen is divided up into the following areas: // TRANSLATION MISSING | buflist3 | `1.weechat` | List of buffers, third bar item (see option <>). // TRANSLATION MISSING +| buflist4 | `1.weechat` | List of buffers, fourth bar item (see option <>). +// TRANSLATION MISSING +| buflist5 | `1.weechat` | List of buffers, fifth bar item (see option <>). +// TRANSLATION MISSING | fset | `+buflist.look.sort: …+` | Help on currently selected option on fset buffer. | irc_channel | `#test` | 現在の IRC チャンネル名 // TRANSLATION MISSING @@ -1493,8 +1497,10 @@ External plugins and scripts can define and use other local variables. [[buflist]] === List of buffers +// TRANSLATION MISSING Buflist プラグインを使うことで、"buflist" と呼ばれるバー要素の中にバッファリストを表示させることが可能になります -(それ以外に "buflist2" と "buflist3" と呼ばれるバー要素も利用可能です)。 + +(four other bar items "buflist2", "buflist3", "buflist4" and "buflist5" are +available as well)。 + プラグインは開始時にバー要素 "buflist" を持つデフォルトバー "buflist" を作成します。 [[buflist_commands]] diff --git a/doc/pl/weechat_user.pl.adoc b/doc/pl/weechat_user.pl.adoc index dfca659a3..5cd6f3c17 100644 --- a/doc/pl/weechat_user.pl.adoc +++ b/doc/pl/weechat_user.pl.adoc @@ -899,6 +899,10 @@ Inne dostępne elementy (nie używane domyślnie w paskach): | buffer_short_name | `#test` | Skrócona nazwa obecnego buforu. | buflist2 | `1.weechat` | Lista buforów, drugi element paska (zobacz opcję <>). | buflist3 | `1.weechat` | Lista buforów, trzeci element paska (zobac opcję <>). +// TRANSLATION MISSING +| buflist4 | `1.weechat` | List of buffers, fourth bar item (see option <>). +// TRANSLATION MISSING +| buflist5 | `1.weechat` | List of buffers, fifth bar item (see option <>). | fset | `+buflist.look.sort: …+` | Pomoc dla obecnie wybranej opcji w buforze fset. | irc_channel | `#test` | Nazwa bieżącego kanału IRC. | irc_host | `+user@host.com+` | Aktualny host IRC. @@ -1421,8 +1425,10 @@ External plugins and scripts can define and use other local variables. [[buflist]] === Lista buforów +// TRANSLATION MISSING Wtyczka buflist wyświetla listę buforów w elemencie paska nazwanym "buflist" -(dostępne są również dwa dodatkowe elementy "buflist2" oraz "buflist3"). + +(four other bar items "buflist2", "buflist3", "buflist4" and "buflist5" are +available as well). + Domyślny pasek "buflist" jest tworzony podczas uruchomieina z włączoną wtyczką. [[buflist_commands]] diff --git a/doc/sr/weechat_user.sr.adoc b/doc/sr/weechat_user.sr.adoc index 64bc8ce09..fb93b5a09 100644 --- a/doc/sr/weechat_user.sr.adoc +++ b/doc/sr/weechat_user.sr.adoc @@ -843,6 +843,10 @@ _nicklist_ трака садржи следеће подразумеване с | buffer_short_name | `#test` | Кратко име текућег бафера. | buflist2 | `1.weechat` | Листа бафера, друга ставка траке (погледајте опцију <>). | buflist3 | `1.weechat` | Листа бафера, трећа ставка траке (погледајте опцију <>). +// TRANSLATION MISSING +| buflist4 | `1.weechat` | List of buffers, fourth bar item (see option <>). +// TRANSLATION MISSING +| buflist5 | `1.weechat` | List of buffers, fifth bar item (see option <>). | fset | `+buflist.look.sort: …+` | Помоћ у вези тренутно изабране опције у fset баферу. | irc_channel | `#test` | Име тренутног IRC канала. | irc_host | `+user@host.com+` | Име тренутног IRC хоста. @@ -1328,7 +1332,10 @@ _прозор_ је површина екрана која приказује б [[buflist]] === Листа бафера -Buflist додатак приказује листу бафера у ставки траке која се зове „buflist” (такође су доступне још две ставке траке „buflist2” и „buflist3”). + +// TRANSLATION MISSING +Buflist додатак приказује листу бафера у ставки траке која се зове „buflist” +(four other bar items "buflist2", "buflist3", "buflist4" and "buflist5" are +available as well). + Подразумевана трака „buflist” са овом ставком се креира током покретања програма. [[buflist_commands]] diff --git a/po/cs.po b/po/cs.po index 340a41afc..b9ad2ad18 100644 --- a/po/cs.po +++ b/po/cs.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-09-08 13:02+0200\n" +"POT-Creation-Date: 2023-09-11 07:52+0200\n" "PO-Revision-Date: 2023-09-06 19:13+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -5551,8 +5551,8 @@ msgid "" "disable: disable buflist\n" " toggle: toggle buflist\n" " bar: add the \"buflist\" bar\n" -"refresh: force the refresh of the bar items (buflist, buflist2 and " -"buflist3)\n" +"refresh: force the refresh of the bar items (buflist, buflist2 buflist3, " +"buflist4 and buflist5)\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " "for the format), with these options:\n" @@ -5712,8 +5712,8 @@ msgstr "" msgid "" "format of each line with a buffer (note: content is evaluated, see /help " "buflist); example: standard format for bar item \"buflist\" and only the " -"buffer number between square brackets for other bar items (\"buflist2\" and " -"\"buflist3\"): \"${if:${bar_item.name}==buflist?" +"buffer number between square brackets for other bar items (\"buflist2\" to " +"\"buflist5\"): \"${if:${bar_item.name}==buflist?" "${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}:" "[${number}]}\"" msgstr "" diff --git a/po/de.po b/po/de.po index 603121112..c8f861835 100644 --- a/po/de.po +++ b/po/de.po @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-09-08 13:02+0200\n" +"POT-Creation-Date: 2023-09-11 07:52+0200\n" "PO-Revision-Date: 2023-09-09 20:58+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -6825,13 +6825,95 @@ msgstr "" msgid "bar item with list of buffers" msgstr "Bar-Item mit der Liste von Buffern" +#, fuzzy +#| msgid "" +#| " enable: enable buflist\n" +#| "disable: disable buflist\n" +#| " toggle: toggle buflist\n" +#| " bar: add the \"buflist\" bar\n" +#| "refresh: force the refresh of the bar items (buflist, buflist2 and " +#| "buflist3)\n" +#| "\n" +#| "The lines with buffers are displayed using string evaluation (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" +#| "\n" +#| "The following variables can be used in these options:\n" +#| " - bar item data (see hdata \"bar_item\" in API doc for a complete " +#| "list), for example:\n" +#| " - ${bar_item.name}\n" +#| " - window data, where the bar item is displayed (there's no window in " +#| "root bars, see hdata \"window\" in API doc for a complete list), for " +#| "example:\n" +#| " - ${window.number}\n" +#| " - ${window.buffer.full_name}\n" +#| " - buffer data (see hdata \"buffer\" in API doc for a complete list), " +#| "for example:\n" +#| " - ${buffer.number}\n" +#| " - ${buffer.name}\n" +#| " - ${buffer.full_name}\n" +#| " - ${buffer.short_name}\n" +#| " - ${buffer.nicklist_nicks_count}\n" +#| " - irc_server: IRC server data, defined only on an IRC buffer (see hdata " +#| "\"irc_server\" in API doc)\n" +#| " - irc_channel: IRC channel data, defined only on an IRC channel buffer " +#| "(see hdata \"irc_channel\" in API doc)\n" +#| " - extra variables added by buflist for convenience:\n" +#| " - ${format_buffer}: the evaluated value of option buflist.format." +#| "buffer; this can be used in option buflist.format.buffer_current to just " +#| "change the background color for example\n" +#| " - ${current_buffer}: a boolean (\"0\" or \"1\"), \"1\" if this is the " +#| "current buffer; it can be used in a condition: ${if:" +#| "${current_buffer}?...:...}\n" +#| " - ${merged}: a boolean (\"0\" or \"1\"), \"1\" if the buffer is " +#| "merged with at least another buffer; it can be used in a condition: ${if:" +#| "${merged}?...:...}\n" +#| " - ${format_number}: indented number with separator (evaluation of " +#| "option buflist.format.number)\n" +#| " - ${number}: indented number, for example \" 1\" if there are between " +#| "10 and 99 buffers; for merged buffers, this variable is set with number " +#| "for the first buffer and spaces for the next buffers with same number\n" +#| " - ${number2}: indented number, for example \" 1\" if there are " +#| "between 10 and 99 buffers\n" +#| " - ${number_displayed}: \"1\" if the number is displayed, otherwise " +#| "\"0\"\n" +#| " - ${indent}: indentation for name (channel, private and list buffers " +#| "are indented) (evaluation of option buflist.format.indent)\n" +#| " - ${format_nick_prefix}: colored nick prefix for a channel " +#| "(evaluation of option buflist.format.nick_prefix)\n" +#| " - ${color_nick_prefix}: color of nick prefix for a channel (set only " +#| "if the option buflist.look.nick_prefix is enabled)\n" +#| " - ${nick_prefix}: nick prefix for a channel (set only if the option " +#| "buflist.look.nick_prefix is enabled)\n" +#| " - ${format_name}: formatted name (evaluation of option buflist.format." +#| "name)\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 level)\n" +#| " - ${format_hotlist}: the formatted hotlist (evaluation of option " +#| "buflist.format.hotlist)\n" +#| " - ${hotlist}: the raw hotlist\n" +#| " - ${hotlist_priority}: \"none\", \"low\", \"message\", \"private\" or " +#| "\"highlight\"\n" +#| " - ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = " +#| "private, 3 = highlight\n" +#| " - ${format_lag}: the lag for an IRC server buffer, empty if there's " +#| "no lag (evaluation of option buflist.format.lag)\n" +#| " - ${format_tls_version}: indicator of TLS version for a server " +#| "buffer, empty for channels (evaluation of option buflist.format." +#| "tls_version)" msgid "" " enable: enable buflist\n" "disable: disable buflist\n" " toggle: toggle buflist\n" " bar: add the \"buflist\" bar\n" -"refresh: force the refresh of the bar items (buflist, buflist2 and " -"buflist3)\n" +"refresh: force the refresh of the bar items (buflist, buflist2 buflist3, " +"buflist4 and buflist5)\n" "\n" "The lines with buffers are displayed using string evaluation (see /help eval " "for the format), with these options:\n" @@ -7126,11 +7208,19 @@ msgstr "" "\"buflist5\"; Seien Sie vorsichtig, wenn Sie mehr als ein Bar-Item " "verwenden, wird die Anzeige der Bufferliste verlangsamt" +#, fuzzy +#| msgid "" +#| "format of each line with a buffer (note: content is evaluated, see /help " +#| "buflist); example: standard format for bar item \"buflist\" and only the " +#| "buffer number between square brackets for other bar items (\"buflist2\" " +#| "and \"buflist3\"): \"${if:${bar_item.name}==buflist?" +#| "${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}:" +#| "[${number}]}\"" msgid "" "format of each line with a buffer (note: content is evaluated, see /help " "buflist); example: standard format for bar item \"buflist\" and only the " -"buffer number between square brackets for other bar items (\"buflist2\" and " -"\"buflist3\"): \"${if:${bar_item.name}==buflist?" +"buffer number between square brackets for other bar items (\"buflist2\" to " +"\"buflist5\"): \"${if:${bar_item.name}==buflist?" "${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}:" "[${number}]}\"" msgstr "" @@ -16534,8 +16624,7 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat" msgid "" "list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace " " " -"[\"\" [\"\" [\"\" [\"\" [\"<" -"return_code>\" [\"\"]]]]]] " +"[\"\" [\"\" [\"\" [\"\" [\"\" [\"\"]]]]]] " "|| addinput [] || input|output|recreate || set