From d63553a73df0f63d13c388be020ad9361499db61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 9 Jun 2024 18:34:00 +0200 Subject: [PATCH] irc: display an explicit message on /list buffer when the list of channels is empty (issue #2133) --- CHANGELOG.md | 1 + po/cs.po | 5 +- po/de.po | 5 +- po/es.po | 5 +- po/fr.po | 7 +- po/hu.po | 5 +- po/it.po | 5 +- po/ja.po | 5 +- po/pl.po | 133 +++++++++++++++++++------------------ po/pt.po | 5 +- po/pt_BR.po | 5 +- po/ru.po | 5 +- po/sr.po | 5 +- po/tr.po | 5 +- po/weechat.pot | 5 +- src/plugins/irc/irc-list.c | 21 ++++-- 16 files changed, 137 insertions(+), 85 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e50d3c7f..c2fdaa820 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - irc, xfer: fix display of input prompt in IRC private buffers and DCC chat buffers ([#2128](https://github.com/weechat/weechat/issues/2128)) - irc: close /list buffer when the server buffer is closed ([#2121](https://github.com/weechat/weechat/issues/2121)) +- irc: display an explicit message on /list buffer when the list of channels is empty ([#2133](https://github.com/weechat/weechat/issues/2133)) - xfer: fix send of data on the DCC chat buffer after `/upgrade` if the buffer was opened before the upgrade ([#2092](https://github.com/weechat/weechat/issues/2092)) - php: fix return value of function hdata_longlong - tcl: fix return value of function hdata_longlong ([#2119](https://github.com/weechat/weechat/issues/2119)) diff --git a/po/cs.po b/po/cs.po index afef4d413..579c66800 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: 2024-06-09 16:35+0200\n" +"POT-Creation-Date: 2024-06-09 18:30+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -11700,6 +11700,9 @@ msgid "" "channel, ($)=refresh, (q)=close buffer" msgstr "" +msgid "Empty list of channels, try \"$\" to refresh list" +msgstr "" + #, fuzzy, c-format #| msgid "%s%s: error in function \"%s\"" msgid "%s%s: error in redirection of /list: %s" diff --git a/po/de.po b/po/de.po index 1ee6920b4..209c2ab0f 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: 2024-06-09 16:35+0200\n" +"POT-Creation-Date: 2024-06-09 18:30+0200\n" "PO-Revision-Date: 2024-05-31 20:32+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -13097,6 +13097,9 @@ msgstr "" "%d Kanäle (Total: %d) | Filter: %s | Sortierung: %s | Taste(Eingabe): " "ctrl+j=Kanal betreten, ($)=Aktualisierung, (q)=Buffer schließen" +msgid "Empty list of channels, try \"$\" to refresh list" +msgstr "" + #, c-format msgid "%s%s: error in redirection of /list: %s" msgstr "%s%s: Fehler in der Weiterleitung von /list: %s" diff --git a/po/es.po b/po/es.po index 2d1cb45d5..afff2f014 100644 --- 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: 2024-06-09 16:35+0200\n" +"POT-Creation-Date: 2024-06-09 18:30+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Santiago Forero \n" "Language-Team: weechat-dev \n" @@ -12001,6 +12001,9 @@ msgid "" "channel, ($)=refresh, (q)=close buffer" msgstr "" +msgid "Empty list of channels, try \"$\" to refresh list" +msgstr "" + #, fuzzy, c-format #| msgid "%s%s: error in function \"%s\"" msgid "%s%s: error in redirection of /list: %s" diff --git a/po/fr.po b/po/fr.po index c8ee90173..a3df4b96c 100644 --- 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: 2024-06-09 16:35+0200\n" -"PO-Revision-Date: 2024-06-09 16:36+0200\n" +"POT-Creation-Date: 2024-06-09 18:30+0200\n" +"PO-Revision-Date: 2024-06-09 18:32+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -12774,6 +12774,9 @@ msgstr "" "%d canaux (total : %d) | Filtre : %s | Tri : %s | Touche(entrée) : " "ctrl+j=rejoindre canal, ($)=rafraîchir, (q)=fermer le tampon" +msgid "Empty list of channels, try \"$\" to refresh list" +msgstr "La liste de canaux est vide, essayez \"$\" pour rafraîchir la liste" + #, c-format msgid "%s%s: error in redirection of /list: %s" msgstr "%s%s : erreur dans la redirection de /list : %s" diff --git a/po/hu.po b/po/hu.po index 84ce766e4..e7150f63f 100644 --- 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: 2024-06-09 16:35+0200\n" +"POT-Creation-Date: 2024-06-09 18:30+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -11217,6 +11217,9 @@ msgid "" "channel, ($)=refresh, (q)=close buffer" msgstr "" +msgid "Empty list of channels, try \"$\" to refresh list" +msgstr "" + #, fuzzy, c-format msgid "%s%s: error in redirection of /list: %s" msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n" diff --git a/po/it.po b/po/it.po index 7380f27a8..615af131d 100644 --- 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: 2024-06-09 16:35+0200\n" +"POT-Creation-Date: 2024-06-09 18:30+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -12020,6 +12020,9 @@ msgid "" "channel, ($)=refresh, (q)=close buffer" msgstr "" +msgid "Empty list of channels, try \"$\" to refresh list" +msgstr "" + #, fuzzy, c-format #| msgid "%s%s: error in function \"%s\"" msgid "%s%s: error in redirection of /list: %s" diff --git a/po/ja.po b/po/ja.po index 4745d4a3e..a709fc6e3 100644 --- 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: 2024-06-09 16:35+0200\n" +"POT-Creation-Date: 2024-06-09 18:30+0200\n" "PO-Revision-Date: 2024-04-07 14:50+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" "Language-Team: weechat-dev \n" @@ -827,8 +827,8 @@ msgstr "%sNie można ustawić opcji \"%s\" dla proxy \"%s\"" msgid "" "%sYou must confirm /%s command with extra argument \"-yes\" (see /help %s)" msgstr "" -"%sMusisz potwierdzić użycie komendy /%s dodatkowym argumentem \"-" -"yes\" (zobacz /help %s)" +"%sMusisz potwierdzić użycie komendy /%s dodatkowym argumentem \"-yes\" " +"(zobacz /help %s)" #, c-format msgid "Options reloaded from %s" @@ -2061,8 +2061,8 @@ msgstr "" "*, /, //, %, **)" msgid "" -" - ${random:min,max}: a random integer number between \"min\" and " -"\"max\" (inclusive)" +" - ${random:min,max}: a random integer number between \"min\" and \"max\" " +"(inclusive)" msgstr "" " - ${random:min,max}: losowa liczba całkowita z przedziału od „min” do " "„max” (włącznie)" @@ -4771,8 +4771,8 @@ msgstr "" "\"-yes\" (zobacz /help quit)" msgid "" -"if set, /upgrade command must be confirmed with extra argument \"-" -"yes\" (see /help upgrade)" +"if set, /upgrade command must be confirmed with extra argument \"-yes\" " +"(see /help upgrade)" msgstr "" "jeśli ustawione, komenda /upgrade musi być potwierdzona dodatkowym " "argumentem \"-yes\" (zobacz /help upgrade)" @@ -6702,15 +6702,15 @@ msgid "bar position (bottom, top, left, right)" msgstr "pozycja paska (bottom (dół), top (góra), left (lewo), right (prawo))" msgid "" -"bar filling direction (\"horizontal\" (from left to right) or " -"\"vertical\" (from top to bottom)) when bar position is top or bottom" +"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" " +"(from top to bottom)) when bar position is top or bottom" msgstr "" "kierunek wypełniania paska (\"horizontal\" (od lewej do prawej) lub " "\"vertical\" (od góry do dołu)), kiedy pozycja paska to góra albo dół" msgid "" -"bar filling direction (\"horizontal\" (from left to right) or " -"\"vertical\" (from top to bottom)) when bar position is left or right" +"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" " +"(from top to bottom)) when bar position is left or right" msgstr "" "kierunek wypełniania paska (\"horizontal\" (od lewej do prawej) lub " "\"vertical\" (od góry do dołu)), kiedy pozycja paska to lewo albo prawo" @@ -6749,9 +6749,9 @@ msgid "separator line between bar and other bars/windows" msgstr "separator pomiędzy paskiem a innymi paskami/oknami" msgid "" -"items of bar, they can be separated by comma (space between items) or \"+" -"\" (glued items); special syntax \"@buffer:item\" can be used to force " -"buffer used when displaying the bar item" +"items of bar, they can be separated by comma (space between items) or \"+\" " +"(glued items); special syntax \"@buffer:item\" can be used to force buffer " +"used when displaying the bar item" msgstr "" "elementy paska, mogą być oddzielone przecinkiem (spacja pomiędzy elementami) " "lub \"+\" (skleja elementy); specjalna składnia \"@buffer:item\" może być " @@ -7998,8 +7998,8 @@ msgid "" msgstr "" "powłoka używana przez komendę \"/exec -sh\"; może to być nazwa powłoki jeśli " "znajduje się ona w PATH (na przykład \"bash\") lub ścieżka absolutna (na " -"przykład \"/bin/bash\"); jeśli wartość jest pusta, zostanie użyte " -"\"sh\" (uwaga: zawartość jest przetwarzana, zobacz /help eval)" +"przykład \"/bin/bash\"); jeśli wartość jest pusta, zostanie użyte \"sh\" " +"(uwaga: zawartość jest przetwarzana, zobacz /help eval)" msgid "text color for a finished command flag in list of commands" msgstr "kolor tekstu dla flagi zakończonej komendy na liście komend" @@ -8422,8 +8422,8 @@ msgid " - ${description}: option description (translated)" msgstr " - ${description}: opis opcji (przetłumaczony)" msgid "" -" - ${description2}: option description (translated), \"(no " -"description)\" (translated) if there's no description" +" - ${description2}: option description (translated), \"(no description)\" " +"(translated) if there's no description" msgstr "" " - ${description2}: opis opcji (przetłumaczony), „(brak opisu)” jeśli nie " "ma opisu" @@ -9088,13 +9088,13 @@ msgstr "" #, c-format msgid "" -"%s%s: if you want to add a standard server, use the command \"/server " -"add\" (see /help server); if you really want to add a temporary server (NOT " +"%s%s: if you want to add a standard server, use the command \"/server add\" " +"(see /help server); if you really want to add a temporary server (NOT " "SAVED), turn on the option irc.look.temporary_servers" msgstr "" -"%s%s: jeśli chcesz dodać standardowy serwer, użyj komendy \"/server " -"add\" (zobacz /help server); jeśli naprawdę chcesz utworzyć serwer " -"tymczasowy (NIE ZAPISANY), włącz opcję irc.look.temporary_servers" +"%s%s: jeśli chcesz dodać standardowy serwer, użyj komendy \"/server add\" " +"(zobacz /help server); jeśli naprawdę chcesz utworzyć serwer tymczasowy (NIE " +"ZAPISANY), włącz opcję irc.look.temporary_servers" #, c-format msgid "%s%s: \"%s\" command can not be executed on a server buffer" @@ -11145,9 +11145,9 @@ msgid "" "file with ECC private key for mechanism \"ecdsa-nist256p-challenge\" (path " "is evaluated, see function string_eval_path_home in plugin API reference)" msgstr "" -"plik z kluczem prywatnym ECC dla mechanizmu \"ecdsa-nist256p-" -"challenge\" (ścieżka jest przetwarzana, zobacz funkcję string_eval_path_home " -"w opisie API wtyczek)" +"plik z kluczem prywatnym ECC dla mechanizmu \"ecdsa-nist256p-challenge\" " +"(ścieżka jest przetwarzana, zobacz funkcję string_eval_path_home w opisie " +"API wtyczek)" msgid "timeout (in seconds) before giving up SASL authentication" msgstr "" @@ -12423,6 +12423,9 @@ msgstr "" "%d kanałów (łącznie: %d) | Filtr: %s | Sortowanie: %s | Key(input): " "ctrl+j=wejdź na kanał, ($)=odśwież, (q)=zamknij bufor" +msgid "Empty list of channels, try \"$\" to refresh list" +msgstr "" + #, c-format msgid "%s%s: error in redirection of /list: %s" msgstr "%s%s: błąd w przekierowaniu /list: %s" @@ -14393,19 +14396,19 @@ msgstr "%s%s: nie można zwolnić interpretera" #, c-format msgid "" -"%s%s: too few arguments received from client %s%s%s for resource " -"\"%s\" (received: %d arguments, expected: at least %d)" +"%s%s: too few arguments received from client %s%s%s for resource \"%s\" " +"(received: %d arguments, expected: at least %d)" msgstr "" -"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla zasobu " -"„%s” (otrzymano: %d argumentów, spodziewano się: przynajmniej %d)" +"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla zasobu „%s” " +"(otrzymano: %d argumentów, spodziewano się: przynajmniej %d)" #, c-format msgid "" -"%s%s: too many arguments received from client %s%s%s for resource " -"\"%s\" (received: %d arguments, expected: at most %d)" +"%s%s: too many arguments received from client %s%s%s for resource \"%s\" " +"(received: %d arguments, expected: at most %d)" msgstr "" -"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla zasobu " -"„%s” (otrzymano: %d argumentów, spodziewano się: najwyżej %d)" +"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla zasobu „%s” " +"(otrzymano: %d argumentów, spodziewano się: najwyżej %d)" #, c-format msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s" @@ -15342,8 +15345,8 @@ msgid "" "(examples: \"*\", \"pbkdf2*\", \"*,!plain\")" msgstr "" "oddzielona przecinkami lista algorytmów hashujących używanych dla " -"uwierzytelnienia hasłem w protokole weechat, dostępne wartości: " -"\"plain\" (hasło w postaci jawnej, nie zahashowane), \"sha256\", \"sha512\", " +"uwierzytelnienia hasłem w protokole weechat, dostępne wartości: \"plain\" " +"(hasło w postaci jawnej, nie zahashowane), \"sha256\", \"sha512\", " "\"pbkdf2+sha256\", \"pbkdf2+sha512\", \"*\" oznacza wszystkie algorytmy, " "nazwa zaczynająca się od \"!\" oznacza wartość negatywną w celu uniknięcia " "użycia algorytmu, znak \"*\" może zostać użyty w nazwie (przykłady: \"*\", " @@ -15534,8 +15537,8 @@ msgid "" "%s%s: error: file with TLS certificate/key is not readable: \"%s\" (option " "relay.network.tls_cert_key)" msgstr "" -"%s%s: błąd: nie można odczytać pliku z certyfikatem/kluczem TLS: " -"\"%s\" (opcja relay.network.tls_cert_key)" +"%s%s: błąd: nie można odczytać pliku z certyfikatem/kluczem TLS: \"%s\" " +"(opcja relay.network.tls_cert_key)" #, c-format msgid "%s%s: unable to initialize priority for TLS" @@ -15685,11 +15688,11 @@ msgstr "%s%s: nie udało się wykonać komendy \"%s\" dla klienta %s%s%s" #, c-format msgid "" -"%s%s: too few arguments received from client %s%s%s for command " -"\"%s\" (received: %d arguments, expected: at least %d)" +"%s%s: too few arguments received from client %s%s%s for command \"%s\" " +"(received: %d arguments, expected: at least %d)" msgstr "" -"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla komendy " -"\"%s\" (otrzymano: %d argumentów, spodziewano się: przynajmniej %d)" +"%s%s: otrzymano za mało argumentów od klienta %s%s%s dla komendy \"%s\" " +"(otrzymano: %d argumentów, spodziewano się: przynajmniej %d)" msgid "Support of ruby scripts" msgstr "Wsparcie dla skryptów ruby" @@ -16790,23 +16793,22 @@ msgstr "zarządzaj triggerami, scyzorykiem WeeChat" #. TRANSLATORS: only text between angle brackets (eg: "") must be translated msgid "" "list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace " -" " -"[\"\" [\"\" [\"\" [\"\" [\"\" [\"\"]]]]]] " -"|| addinput [] || input|output|recreate || set