]> jfr.im git - irc/weechat/weechat.git/commitdiff
buflist: rename completions with items
authorSébastien Helleu <redacted>
Sun, 1 Oct 2023 10:14:03 +0000 (12:14 +0200)
committerSébastien Helleu <redacted>
Sun, 1 Oct 2023 10:14:03 +0000 (12:14 +0200)
Completions renamed:

- "buflist_all_items" -> "buflist_items"
- "buflist_used_items" -> "buflist_items_used"

17 files changed:
ChangeLog.adoc
po/cs.po
po/de.po
po/es.po
po/fr.po
po/hu.po
po/it.po
po/ja.po
po/pl.po
po/pt.po
po/pt_BR.po
po/ru.po
po/sr.po
po/tr.po
po/weechat.pot
src/plugins/buflist/buflist-command.c
src/plugins/buflist/buflist-completion.c

index b0a276f15734f7c49fabb99c710613fd37310186..2c50fc2345fba8463626b259918939d21bf24dd2 100644 (file)
@@ -29,7 +29,7 @@ New features::
   * api: add support of path to variable and hashtable comparison in function hdata_compare (issue #1066)
   * api: add infos "nick_color_ignore_case" and "nick_color_name_ignore_case" (issue #194)
   * api: add info "buffer" (issue #1962)
-  * buflist: add support of item names in command `/buflist refresh`
+  * buflist: add support of item names in command `/buflist refresh`, add completions "buflist_items" and "buflist_items_used"
   * buflist: increase max number of buflist items from 3 to 5 (issue #1703)
   * fset: add variable `allowed_values` in options, add options fset.color.allowed_values and fset.color.allowed_values_selected
   * fset: allow long type name in type filter
index 4576493b91559c566aeb3796714b048a2c784b1b..d54dee13fcde7a2d793011a245a3ae50a17dfad1 100644 (file)
--- 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-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5744,10 +5744,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "seznam položek polí"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, fuzzy, c-format
index 5e5d2e2c2a4153e312dbd8dbeafa24c3cc005753..bed08a187215eb24bc5818df7dba90e9f5001ea1 100644 (file)
--- 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-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-15 12:46+0200\n"
 "Last-Translator: Nils Görs <weechatter@arcor.de>\n"
 "Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -7253,10 +7253,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "Auflistung der Bar-Items"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, c-format
index 6b6ef0b3d8ed8ba4e4bcb18273126a12250da2c3..38ad3a331806f4b9311e568887bcc7d8f4de8585 100644 (file)
--- a/po/es.po
+++ b/po/es.po
@@ -22,7 +22,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6376,10 +6376,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "lista de elementos de barra"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, fuzzy, c-format
index 2ed81227f852a1cb38c7f8eac86a28e9671d2328..620e0f714fec7ca23d9b67d0d86e60e1845ea171 100644 (file)
--- a/po/fr.po
+++ b/po/fr.po
@@ -21,8 +21,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
-"PO-Revision-Date: 2023-10-01 09:57+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
+"PO-Revision-Date: 2023-10-01 12:11+0200\n"
 "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
 "Language: fr\n"
@@ -6975,12 +6975,12 @@ msgstr ""
 "courant, vide pour les canaux (évaluation de l'option buflist.format."
 "tls_version)"
 
-msgid "all buflist bar items"
-msgstr "tous les objets de barre de buflist"
+msgid "buflist bar items"
+msgstr "objets de barre de buflist"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
-"les objets de barre buflist utilisés (selon l'option buflist.look.use_items)"
+"objets de barre buflist utilisés (selon l'option buflist.look.use_items)"
 
 #, c-format
 msgid "%s: %d signals hooked"
index 5aea4ead0b4b7dab3e6d7fb874139d9a090bf39c..1add1ac4e8eefafb01a10116879feabb786e5f60 100644 (file)
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5239,10 +5239,10 @@ msgid ""
 msgstr ""
 
 #, fuzzy
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "Aliaszok listája:\n"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, fuzzy, c-format
index dcfe4c4d799de77bd8ee7f94cbf364d59e6b4cac..76c90fe1d09de57414bc346ba7c5b5dc5d0c1d93 100644 (file)
--- a/po/it.po
+++ b/po/it.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6038,10 +6038,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "elenco degli elementi barra"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, fuzzy, c-format
index b0afd2f525d0f1af082557984218c293ff7a373a..18443e8213032b2ce1bb01cc39a84eed2df0b816 100644 (file)
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
 "Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -6756,10 +6756,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "バー要素のリスト"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, c-format
index 6e9817bb265c3005c5339587ddf60b4d2945c0c3..e59ce42abe6ec5b427758d3b3ba4007b95b23458 100644 (file)
--- a/po/pl.po
+++ b/po/pl.po
@@ -22,7 +22,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
 "Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -7474,10 +7474,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "lista elementów pasków"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, c-format
index c1d40e8ee8a450440ef1070366b708fdc767b7ce..5e3e44390f591831768a3a596f78d1ff11dc2b2b 100644 (file)
--- a/po/pt.po
+++ b/po/pt.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
 "Language-Team: Portuguese <>\n"
@@ -6695,10 +6695,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "lista de itens da barra"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, fuzzy, c-format
index e5813adb4590d806bc0703248777c2b308880b67..a2b2660d7a60700affdda60b8e20885b41023a31 100644 (file)
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5966,10 +5966,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "lista de itens da barra"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, fuzzy, c-format
index 80d7973e55fed2d784e8a8cdcaa6fbc1d17aa18b..66ae262cb7be72bf06e7e4edccd24b77a4d4ca5a 100644 (file)
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5278,10 +5278,10 @@ msgid ""
 msgstr ""
 
 #, fuzzy
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "Список сокращений:\n"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, fuzzy, c-format
index d6d28a016a9688cb299146473a3b9428008073a4..b624a28ad6139a54caccdf899612f059453deea2 100644 (file)
--- a/po/sr.po
+++ b/po/sr.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6932,10 +6932,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "листа ставки траке"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, c-format
index a92721acd7b0ba067bc1b7706382b8b370c9e8a4..985993a3542027b1f49913c9f6551deb3ed85b87 100644 (file)
--- a/po/tr.po
+++ b/po/tr.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -7015,10 +7015,10 @@ msgstr ""
 
 #, fuzzy
 #| msgid "list of bar items"
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr "çubuk ögeleri listesi"
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, c-format
index 28d7ec208f61004f313830ec51ad079fa626e572..a4f61d85184aa759c1c74095a9b3c5404bcde9c1 100644 (file)
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-10-01 09:56+0200\n"
+"POT-Creation-Date: 2023-10-01 12:11+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"
@@ -4822,10 +4822,10 @@ msgid ""
 "empty for channels (evaluation of option buflist.format.tls_version)"
 msgstr ""
 
-msgid "all buflist bar items"
+msgid "buflist bar items"
 msgstr ""
 
-msgid "used buflist bar items (according to option buflist.look.use_items)"
+msgid "buflist bar items used (according to option buflist.look.use_items)"
 msgstr ""
 
 #, c-format
index f86d0e5fd3d7ea4c644b6df76def08039de418b9..dd893804cc23aa72dc0eb7e893901074fa9419f7 100644 (file)
@@ -194,6 +194,6 @@ buflist_command_init ()
            "buflist.format.tls_version)"),
         "enable|disable|toggle"
         " || bar"
-        " || refresh %(buflist_used_items)|%*",
+        " || refresh %(buflist_items_used)|%*",
         &buflist_command_buflist, NULL, NULL);
 }
index bf18a3b30183e77f841ed9ffe3c3e9e50c45f795..73480c4e746f790858316746a29c003c39522de2 100644 (file)
  */
 
 int
-buflist_completion_all_items_cb (const void *pointer, void *data,
-                                 const char *completion_item,
-                                 struct t_gui_buffer *buffer,
-                                 struct t_gui_completion *completion)
+buflist_completion_items_cb (const void *pointer, void *data,
+                             const char *completion_item,
+                             struct t_gui_buffer *buffer,
+                             struct t_gui_completion *completion)
 {
     int i;
 
@@ -60,7 +60,7 @@ buflist_completion_all_items_cb (const void *pointer, void *data,
  */
 
 int
-buflist_completion_used_items_cb (const void *pointer, void *data,
+buflist_completion_items_used_cb (const void *pointer, void *data,
                                   const char *completion_item,
                                   struct t_gui_buffer *buffer,
                                   struct t_gui_completion *completion)
@@ -90,11 +90,11 @@ buflist_completion_used_items_cb (const void *pointer, void *data,
 void
 buflist_completion_init ()
 {
-    weechat_hook_completion ("buflist_all_items",
-                             N_("all buflist bar items"),
-                             &buflist_completion_all_items_cb, NULL, NULL);
-    weechat_hook_completion ("buflist_used_items",
-                             N_("used buflist bar items (according to option "
+    weechat_hook_completion ("buflist_items",
+                             N_("buflist bar items"),
+                             &buflist_completion_items_cb, NULL, NULL);
+    weechat_hook_completion ("buflist_items_used",
+                             N_("buflist bar items used (according to option "
                                 "buflist.look.use_items)"),
-                             &buflist_completion_used_items_cb, NULL, NULL);
+                             &buflist_completion_items_used_cb, NULL, NULL);
 }