1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

buflist: apply option buflist.look.nick_prefix_empty also on private and list buffers

This commit is contained in:
Sébastien Helleu
2025-03-15 19:19:19 +01:00
parent f5038bccbc
commit b25a9b11a0
17 changed files with 410 additions and 380 deletions
+1
View File
@@ -7,6 +7,7 @@
- core: add option `-v` to display upgrades in command `/version`
- api: add property `keep_spaces_right` in function hook_set to keep trailing spaces in command arguments
- irc: add option `-connected` in command `/server list|listfull`
- buflist: apply option buflist.look.nick_prefix_empty also on private and list buffers
### Added
+2 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -7039,7 +7039,7 @@ msgstr ""
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
#, fuzzy
+340 -332
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -7221,7 +7221,7 @@ msgstr ""
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
#, fuzzy
+5 -4
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"PO-Revision-Date: 2025-03-09 08:25+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2025-03-15 19:17+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -7863,10 +7863,11 @@ msgstr ""
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
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"
"n'y a pas de préfixe de pseudo sur le tampon (seulement pour les canaux, "
"tampons privés et tampons liste)"
msgid ""
"comma-separated list of extra signals that are hooked and trigger the "
+2 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6682,7 +6682,7 @@ msgstr ""
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
msgid ""
+2 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -7166,7 +7166,7 @@ msgstr ""
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
#, fuzzy
+6 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -7417,9 +7417,13 @@ msgstr ""
"かしながら、ニックネームリスト内に多くのニックネームがある場合に動作が遅くな"
"る可能性がありますので、このオプションはデフォルトで無効化されています"
#, fuzzy
#| msgid ""
#| "when the nick prefix is enabled, display a space instead if there is no "
#| "nick prefix on the buffer"
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
"ニックネームプレフィックスが有効化された状態で、そのバッファで対象のニック"
"ネームにプレフィックスが付かない場合に、プレフィックスの代わりに空白を表示し"
+6 -2
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2024-12-16 12:01+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -7847,9 +7847,13 @@ msgstr ""
"może byc użyte w formacie; może to być wolne w buforach z duża ilością "
"nicków widocznych na licie nicków, opcja domyślnie wyłączona"
#, fuzzy
#| msgid ""
#| "when the nick prefix is enabled, display a space instead if there is no "
#| "nick prefix on the buffer"
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
"kiedy prefiks nicka jet włączony, wywietla spacje, kiedy nick nie ma "
"prefiksu w buforze"
+2 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -7433,7 +7433,7 @@ msgstr ""
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
#, fuzzy
+2 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -7066,7 +7066,7 @@ msgstr ""
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
#, fuzzy
+2 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6723,7 +6723,7 @@ msgstr ""
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
msgid ""
+6 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2025-02-12 11:16+0400\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -7601,9 +7601,13 @@ msgstr ""
"да се користи ${nick_prefix}; ово може да буде споро у баферима са доста "
"надимака у листи надимака, тако да је ова опција подразумевано искључена"
#, fuzzy
#| msgid ""
#| "when the nick prefix is enabled, display a space instead if there is no "
#| "nick prefix on the buffer"
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
"када је укључен префикс надимка, у случају да за бафер није дефинисан "
"префикс надимка, приказује се размак"
+6 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+0100\n"
"PO-Revision-Date: 2025-01-04 18:21+0100\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -7462,9 +7462,13 @@ msgstr ""
"bu biçimle kullanılabilir; bu, takma ad listesinde pek çok takma ad bulunan "
"arabelleklerde yavaş olabilir, bu yüzden öntanımlı olarak devre dışıdır"
#, fuzzy
#| msgid ""
#| "when the nick prefix is enabled, display a space instead if there is no "
#| "nick prefix on the buffer"
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
"takma ad öneki etkinleştirildiğinde, eğer arabellekte bir önek yoksa bunun "
"yerine bir boşluk görüntüle"
+2 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-03-09 08:23+0100\n"
"POT-Creation-Date: 2025-03-15 19:16+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"
@@ -6238,7 +6238,7 @@ msgstr ""
msgid ""
"when the nick prefix is enabled, display a space instead if there is no nick "
"prefix on the buffer"
"prefix on the buffer (only for channels, private buffers and list buffers"
msgstr ""
msgid ""
+22 -19
View File
@@ -464,34 +464,37 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
/* nick prefix */
str_nick_prefix[0] = '\0';
str_color_nick_prefix[0] = '\0';
if (is_channel
if ((is_channel || is_private || is_list)
&& 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)
if (is_channel)
{
ptr_gui_nick = weechat_nicklist_search_nick (ptr_buffer, NULL,
ptr_nick);
if (ptr_gui_nick)
ptr_nick = weechat_buffer_get_string (ptr_buffer, "localvar_nick");
if (ptr_nick)
{
ptr_nick_prefix = weechat_nicklist_nick_get_string (
ptr_buffer, ptr_gui_nick, "prefix");
if (ptr_nick_prefix && (ptr_nick_prefix[0] != ' '))
ptr_gui_nick = weechat_nicklist_search_nick (ptr_buffer, NULL,
ptr_nick);
if (ptr_gui_nick)
{
snprintf (str_color_nick_prefix,
sizeof (str_color_nick_prefix),
"%s",
weechat_color (
weechat_nicklist_nick_get_string (
ptr_buffer, ptr_gui_nick,
"prefix_color")));
snprintf (str_nick_prefix, sizeof (str_nick_prefix),
"%s",
ptr_nick_prefix);
ptr_nick_prefix = weechat_nicklist_nick_get_string (
ptr_buffer, ptr_gui_nick, "prefix");
if (ptr_nick_prefix && (ptr_nick_prefix[0] != ' '))
{
snprintf (str_color_nick_prefix,
sizeof (str_color_nick_prefix),
"%s",
weechat_color (
weechat_nicklist_nick_get_string (
ptr_buffer, ptr_gui_nick,
"prefix_color")));
snprintf (str_nick_prefix, sizeof (str_nick_prefix),
"%s",
ptr_nick_prefix);
}
}
}
}
+2 -1
View File
@@ -578,7 +578,8 @@ buflist_config_init (void)
buflist_config_file, buflist_config_section_look,
"nick_prefix_empty", "boolean",
N_("when the nick prefix is enabled, display a space instead if "
"there is no nick prefix on the buffer"),
"there is no nick prefix on the buffer (only for channels, "
"private buffers and list buffers"),
NULL, 0, 0, "on", NULL, 0,
NULL, NULL, NULL,
&buflist_config_change_buflist, NULL, NULL,