diff --git a/po/cs.po b/po/cs.po index c70432d34..7c40f4a62 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-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2024-03-06 20:32+0100\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -7395,6 +7395,22 @@ msgstr "" msgid "%s%s: there are no options displayed, unable to export." msgstr "" +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s: nedostatek paměti" + +#, fuzzy, c-format +msgid "%s%s: file \"%s\" not found" +msgstr "%s%s: chyba, nenalezen buffer pro data roury" + +#, fuzzy, c-format +#| msgid "%s%s: unable to execute file \"%s\"" +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%s%s: nemůžu spustit soubor \"%s\"" +msgstr[1] "%s%s: nemůžu spustit soubor \"%s\"" +msgstr[2] "%s%s: nemůžu spustit soubor \"%s\"" + msgid "fast set WeeChat and plugins options" msgstr "" @@ -12490,10 +12506,6 @@ msgstr "%s%s: chyba: %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "%s===\t%s========== konec backlogu (%d řádků) ==========" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s: nedostatek paměti" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/de.po b/po/de.po index 56319bffd..ad956f03a 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-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2024-03-25 11:43+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -8493,6 +8493,22 @@ msgstr "" "%s%s: es werden keine Optionen angezeigt, deshalb ist ein Export nicht " "möglich." +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s: nicht genügend Speicher" + +#, fuzzy, c-format +#| msgid "%s%s: buffer \"%s\" not found" +msgid "%s%s: file \"%s\" not found" +msgstr "%s%s: Buffer \"%s\" nicht gefunden" + +#, fuzzy, c-format +#| msgid "%s%s: unable to execute file \"%s\"" +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%s%s: Die Datei \"%s\" kann nicht ausgeführt werden" +msgstr[1] "%s%s: Die Datei \"%s\" kann nicht ausgeführt werden" + msgid "fast set WeeChat and plugins options" msgstr "Optionen von WeeChat und Erweiterungen schnell anpassen" @@ -13837,10 +13853,6 @@ msgstr "%s%s: Ausnahme: %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "%s===\t%s========== Ende des Verlaufspeichers (%d Zeilen) ==========" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s: nicht genügend Speicher" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/es.po b/po/es.po index b1585f40e..38f05439d 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-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2024-03-06 20:32+0100\n" "Last-Translator: Santiago Forero \n" "Language-Team: weechat-dev \n" @@ -7576,6 +7576,21 @@ msgstr "" msgid "%s%s: there are no options displayed, unable to export." msgstr "" +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s: no hay suficiente memoria" + +#, fuzzy, c-format +msgid "%s%s: file \"%s\" not found" +msgstr "%s%s: servidor \"%s\" no encontrado" + +#, fuzzy, c-format +#| msgid "%s%s: unable to execute file \"%s\"" +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%s%s: no es posible ejecutar el archivo \"%s\"" +msgstr[1] "%s%s: no es posible ejecutar el archivo \"%s\"" + msgid "fast set WeeChat and plugins options" msgstr "" @@ -12789,10 +12804,6 @@ msgstr "%s%s: error: %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "%s===\t%s========== Fin del último registro (%d líneas) ==========" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s: no hay suficiente memoria" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/fr.po b/po/fr.po index 858551cb5..f66bd3351 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-03-25 20:59+0100\n" -"PO-Revision-Date: 2024-03-25 21:00+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" +"PO-Revision-Date: 2024-03-26 07:41+0100\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -8328,6 +8328,20 @@ msgstr "Définir rapidement des options de WeeChat et des extensions" msgid "%s%s: there are no options displayed, unable to export." msgstr "%s%s : il n'y a pas d'options affichées, impossible d'exporter." +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s : pas assez de mémoire" + +#, c-format +msgid "%s%s: file \"%s\" not found" +msgstr "%s%s : fichier \"%s\" non trouvé" + +#, c-format +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%d commande exécutée dans le fichier \"%s\"" +msgstr[1] "%d commandes exécutées dans le fichier \"%s\"" + msgid "fast set WeeChat and plugins options" msgstr "définir rapidement des options WeeChat et des extensions" @@ -13547,10 +13561,6 @@ msgstr "%s%s : exception : %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "%s===\t%s========== Fin de l'historique (%d lignes) ==========" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s : pas assez de mémoire" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/hu.po b/po/hu.po index ed10a786f..0e56f9a5d 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-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -7060,6 +7060,20 @@ msgstr "" msgid "%s%s: there are no options displayed, unable to export." msgstr "" +#, fuzzy, c-format +msgid "%s%s: not enough memory" +msgstr "Nincs elég memória az új sorhoz\n" + +#, fuzzy, c-format +msgid "%s%s: file \"%s\" not found" +msgstr "%s a \"%s\" szerver nem található\n" + +#, fuzzy, c-format +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "Nem sikerült a(z) \"%s\" naplófájlt írni\n" +msgstr[1] "Nem sikerült a(z) \"%s\" naplófájlt írni\n" + msgid "fast set WeeChat and plugins options" msgstr "" @@ -11981,10 +11995,6 @@ msgstr "%sSzerver: %s%s\n" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "" -#, fuzzy, c-format -msgid "%s%s: not enough memory" -msgstr "Nincs elég memória az új sorhoz\n" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/it.po b/po/it.po index 04805bc5a..c4557057d 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-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2024-03-06 20:32+0100\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -7568,6 +7568,21 @@ msgstr "" msgid "%s%s: there are no options displayed, unable to export." msgstr "" +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s: memoria non sufficiente" + +#, fuzzy, c-format +msgid "%s%s: file \"%s\" not found" +msgstr "%s%s: server \"%s\" non trovato" + +#, fuzzy, c-format +#| msgid "%s%s: unable to execute file \"%s\"" +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%s%s: impossibile eseguire il file \"%s\"" +msgstr[1] "%s%s: impossibile eseguire il file \"%s\"" + msgid "fast set WeeChat and plugins options" msgstr "" @@ -12801,10 +12816,6 @@ msgstr "%s%s: errore: %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "%s===\t%s========== Fine della cronologia (%d righe) ==========" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s: memoria non sufficiente" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/ja.po b/po/ja.po index c9ab48a0d..dda1e0fa1 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-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2024-03-06 20:32+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" "Language-Team: weechat-dev \n" @@ -8077,6 +8077,23 @@ msgstr "Szybkie utawianie opcji WeeChat i wtyczek" msgid "%s%s: there are no options displayed, unable to export." msgstr "%s%s: brak opcji do wyświetlenia, eksport niemożliwy." +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s: za mało pamięci" + +#, fuzzy, c-format +#| msgid "%s%s: buffer \"%s\" not found" +msgid "%s%s: file \"%s\" not found" +msgstr "%s%s: bufor \"%s\" nie został znaleziony" + +#, fuzzy, c-format +#| msgid "%s%s: unable to execute file \"%s\"" +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%s%s: nie można wykonać pliku \"%s\"" +msgstr[1] "%s%s: nie można wykonać pliku \"%s\"" +msgstr[2] "%s%s: nie można wykonać pliku \"%s\"" + msgid "fast set WeeChat and plugins options" msgstr "szybkie ustawianie opcji WeeChat i wtyczek" @@ -13191,10 +13208,6 @@ msgstr "%s%s: wyjątek: %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "%s===\t%s========== Koniec backloga (%d linii) ==========" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s: za mało pamięci" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/pt.po b/po/pt.po index 24f6b4068..e0d37e71a 100644 --- 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: 2024-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2024-03-06 20:32+0100\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese <>\n" @@ -7808,6 +7808,22 @@ msgstr "" msgid "%s%s: there are no options displayed, unable to export." msgstr "" +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s: memória insuficiente" + +#, fuzzy, c-format +#| msgid "%s%s: buffer \"%s\" not found" +msgid "%s%s: file \"%s\" not found" +msgstr "%s%s: buffer \"%s\" não encontrado" + +#, fuzzy, c-format +#| msgid "%s%s: unable to execute file \"%s\"" +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%s%s: não foi possível executar o ficheiro \"%s\"" +msgstr[1] "%s%s: não foi possível executar o ficheiro \"%s\"" + msgid "fast set WeeChat and plugins options" msgstr "" @@ -13161,10 +13177,6 @@ msgstr "%s%s: erro: %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "%s===\t%s====== Fim do registo recente (%d linhas) =====" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s: memória insuficiente" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/pt_BR.po b/po/pt_BR.po index f7c5b15f7..5da4222ad 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: 2024-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2024-02-17 10:07+0100\n" "Last-Translator: Érico Nogueira \n" "Language-Team: weechat-dev \n" @@ -7470,6 +7470,21 @@ msgstr "" msgid "%s%s: there are no options displayed, unable to export." msgstr "" +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s: memória insuficiente" + +#, fuzzy, c-format +msgid "%s%s: file \"%s\" not found" +msgstr "%sTecla \"%s\" não encontrada" + +#, fuzzy, c-format +#| msgid "%s%s: unable to execute file \"%s\"" +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%s%s: não foi possível executar arquivo \"%s\"" +msgstr[1] "%s%s: não foi possível executar arquivo \"%s\"" + msgid "fast set WeeChat and plugins options" msgstr "" @@ -12346,10 +12361,6 @@ msgstr "%s%s: erro: %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "===\t========== Fim do backlog (%d linhas) ==========" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s: memória insuficiente" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/ru.po b/po/ru.po index fbab6d8ab..02e9630f8 100644 --- 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: 2024-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2023-11-29 09:59+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -7101,6 +7101,21 @@ msgstr "" msgid "%s%s: there are no options displayed, unable to export." msgstr "" +#, fuzzy, c-format +msgid "%s%s: not enough memory" +msgstr "Недостаточно памяти для новой строчки\n" + +#, fuzzy, c-format +msgid "%s%s: file \"%s\" not found" +msgstr "%s сервер \"%s\" не найден\n" + +#, fuzzy, c-format +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "Не могу записать лог-файл \"%s\"\n" +msgstr[1] "Не могу записать лог-файл \"%s\"\n" +msgstr[2] "Не могу записать лог-файл \"%s\"\n" + msgid "fast set WeeChat and plugins options" msgstr "" @@ -12034,10 +12049,6 @@ msgstr "%sСервер: %s%s\n" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "" -#, fuzzy, c-format -msgid "%s%s: not enough memory" -msgstr "Недостаточно памяти для новой строчки\n" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/sr.po b/po/sr.po index 848795bde..e420755f6 100644 --- 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: 2024-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2024-03-06 20:32+0100\n" "Last-Translator: Ivan Pešić \n" "Language-Team: weechat-dev \n" @@ -8103,6 +8103,23 @@ msgstr "Брзо постављање WeeChat и опција додатака" msgid "%s%s: there are no options displayed, unable to export." msgstr "%s%s: није приказана ниједна опција, извоз није могућ." +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s: нема довољно слободне меморије" + +#, fuzzy, c-format +#| msgid "%s%s: buffer \"%s\" not found" +msgid "%s%s: file \"%s\" not found" +msgstr "%s%s: није пронађен бафер „%s”" + +#, fuzzy, c-format +#| msgid "%s%s: unable to execute file \"%s\"" +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%s%s: фајл „%s” не може да се изврши" +msgstr[1] "%s%s: фајл „%s” не може да се изврши" +msgstr[2] "%s%s: фајл „%s” не може да се изврши" + msgid "fast set WeeChat and plugins options" msgstr "брзо постављање опција за програм WeeChat и додатке" @@ -13181,10 +13198,6 @@ msgstr "%s%s: изузетак: %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "%s===\t%s========== Крај старијих уноса (%d линија) ==========" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s: нема довољно слободне меморије" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/tr.po b/po/tr.po index cce8d2589..e9cdb5ff4 100644 --- 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: 2024-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2024-03-06 20:33+0100\n" "Last-Translator: Emir SARI \n" "Language-Team: weechat-dev \n" @@ -7907,6 +7907,22 @@ msgstr "WeeChat ve eklenti seçeneklerini hızlıca ayarla" msgid "%s%s: there are no options displayed, unable to export." msgstr "%s%s: Görüntülenen seçenek yok, dışa aktarılamıyor." +#, c-format +msgid "%s%s: not enough memory" +msgstr "%s%s: Yetersiz bellek" + +#, fuzzy, c-format +#| msgid "%s%s: buffer \"%s\" not found" +msgid "%s%s: file \"%s\" not found" +msgstr "%s%s: \"%s\" arabelleği bulunamadı" + +#, fuzzy, c-format +#| msgid "%s%s: unable to execute file \"%s\"" +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "%s%s: \"%s\" dosyası yürütülemiyor" +msgstr[1] "%s%s: \"%s\" dosyası yürütülemiyor" + msgid "fast set WeeChat and plugins options" msgstr "WeeChat ve eklenti seçeneklerini hızlıca ayarla" @@ -13350,10 +13366,6 @@ msgstr "%s%s: Hata: %s" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "%s===\t%s========== Biriken günlük sonu (%d satır) ==========" -#, c-format -msgid "%s%s: not enough memory" -msgstr "%s%s: Yetersiz bellek" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/po/weechat.pot b/po/weechat.pot index 62c201b9b..399eb90dd 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: 2024-03-25 20:59+0100\n" +"POT-Creation-Date: 2024-03-26 07:44+0100\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -6604,6 +6604,20 @@ msgstr "" msgid "%s%s: there are no options displayed, unable to export." msgstr "" +#, c-format +msgid "%s%s: not enough memory" +msgstr "" + +#, c-format +msgid "%s%s: file \"%s\" not found" +msgstr "" + +#, c-format +msgid "%d command executed in file \"%s\"" +msgid_plural "%d commands executed in file \"%s\"" +msgstr[0] "" +msgstr[1] "" + msgid "fast set WeeChat and plugins options" msgstr "" @@ -10957,10 +10971,6 @@ msgstr "" msgid "%s===\t%s========== End of backlog (%d lines) ==========" msgstr "" -#, c-format -msgid "%s%s: not enough memory" -msgstr "" - #, c-format msgid "" "%s%s: unable to start logging for buffer \"%s\": filename \"%s\" is already " diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c index 946c4c17f..1bdd36bac 100644 --- a/src/plugins/fset/fset-command.c +++ b/src/plugins/fset/fset-command.c @@ -81,7 +81,7 @@ fset_command_fset (const void *pointer, void *data, struct t_gui_buffer *buffer, int argc, char **argv, char **argv_eol) { - int num_options, line, value, i, with_help, min, max, format_number; + int num_options, line, value, i, with_help, min, max, format_number, count; char str_command[512], str_number[64]; const char *ptr_filename; struct t_fset_option *ptr_fset_option; @@ -427,8 +427,28 @@ fset_command_fset (const void *pointer, void *data, { if (argc < 3) WEECHAT_COMMAND_ERROR; - if (!fset_option_import (argv_eol[2])) - WEECHAT_COMMAND_ERROR; + count = fset_option_import (argv_eol[2]); + switch (count) + { + case -2: + weechat_printf (NULL, + _("%s%s: not enough memory"), + weechat_prefix ("error"), FSET_PLUGIN_NAME); + break; + case -1: + weechat_printf (NULL, + _("%s%s: file \"%s\" not found"), + weechat_prefix ("error"), FSET_PLUGIN_NAME, + argv_eol[2]); + break; + default: + weechat_printf (NULL, + NG_("%d command executed in file \"%s\"", + "%d commands executed in file \"%s\"", + count), + count, argv_eol[2]); + break; + } return WEECHAT_RC_OK; } diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c index a783d2f0e..22661e16f 100644 --- a/src/plugins/fset/fset-option.c +++ b/src/plugins/fset/fset-option.c @@ -1474,8 +1474,9 @@ fset_option_export (const char *filename, int with_help) * Imports options from a file: all lines starting with "/" are executed. * * Returns: - * 1: export OK - * 0: error + * -2: not enough memory + * -1: file not found + * >= 0: number of commands executed in file */ int @@ -1483,17 +1484,19 @@ fset_option_import (const char *filename) { char *filename2, line[4096], *ptr_line; FILE *file; - int length; + int length, count; + + count = 0; filename2 = weechat_string_expand_home (filename); if (!filename2) - return 0; + return -2; file = fopen (filename2, "r"); if (!file) { free (filename2); - return 0; + return -1; } while (!feof (file)) @@ -1516,7 +1519,11 @@ fset_option_import (const char *filename) line[length] = '\0'; length--; } - weechat_command (NULL, ptr_line); + if (ptr_line[0]) + { + weechat_command (NULL, ptr_line); + count++; + } } } @@ -1524,7 +1531,7 @@ fset_option_import (const char *filename) free (filename2); - return 1; + return count; } /*