diff options
-rw-r--r-- | ChangeLog.adoc | 4 | ||||
-rw-r--r-- | doc/de/includes/autogen_api_infos.de.adoc | 2 | ||||
-rw-r--r-- | doc/en/includes/autogen_api_infos.en.adoc | 2 | ||||
-rw-r--r-- | doc/fr/includes/autogen_api_infos.fr.adoc | 2 | ||||
-rw-r--r-- | doc/it/includes/autogen_api_infos.it.adoc | 2 | ||||
-rw-r--r-- | doc/ja/includes/autogen_api_infos.ja.adoc | 2 | ||||
-rw-r--r-- | doc/pl/includes/autogen_api_infos.pl.adoc | 2 | ||||
-rw-r--r-- | po/cs.po | 6 | ||||
-rw-r--r-- | po/de.po | 6 | ||||
-rw-r--r-- | po/es.po | 6 | ||||
-rw-r--r-- | po/fr.po | 7 | ||||
-rw-r--r-- | po/hu.po | 5 | ||||
-rw-r--r-- | po/it.po | 6 | ||||
-rw-r--r-- | po/ja.po | 6 | ||||
-rw-r--r-- | po/pl.po | 6 | ||||
-rw-r--r-- | po/pt.po | 6 | ||||
-rw-r--r-- | po/pt_BR.po | 6 | ||||
-rw-r--r-- | po/ru.po | 5 | ||||
-rw-r--r-- | po/tr.po | 5 | ||||
-rw-r--r-- | po/weechat.pot | 5 | ||||
-rw-r--r-- | src/plugins/plugin-api-info.c | 25 |
21 files changed, 102 insertions, 14 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 2fa7eae34..349473a74 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -18,6 +18,10 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] [[v3.2]] == Version 3.2 (under dev) +New features:: + + * api: add info "weechat_daemon" + Bug fixes:: * core: recreate buflist and fset bars on /reload when WeeChat is started without configuration files (issue #1618) diff --git a/doc/de/includes/autogen_api_infos.de.adoc b/doc/de/includes/autogen_api_infos.de.adoc index 49da0fd80..e96a5f960 100644 --- a/doc/de/includes/autogen_api_infos.de.adoc +++ b/doc/de/includes/autogen_api_infos.de.adoc @@ -134,6 +134,8 @@ | weechat | version_number | WeeChat-Version (als Zahl) | - +| weechat | weechat_daemon | 1 if WeeChat is running in daemon mode (headless, in background) | - + | weechat | weechat_dir | WeeChat Verzeichnis | - | weechat | weechat_headless | 1, falls WeeChat im Hintergrundmodus ausgeführt wird | - diff --git a/doc/en/includes/autogen_api_infos.en.adoc b/doc/en/includes/autogen_api_infos.en.adoc index ca013c27c..79fb31349 100644 --- a/doc/en/includes/autogen_api_infos.en.adoc +++ b/doc/en/includes/autogen_api_infos.en.adoc @@ -134,6 +134,8 @@ | weechat | version_number | WeeChat version (as number) | - +| weechat | weechat_daemon | 1 if WeeChat is running in daemon mode (headless, in background) | - + | weechat | weechat_dir | WeeChat directory | - | weechat | weechat_headless | 1 if WeeChat is running headless | - diff --git a/doc/fr/includes/autogen_api_infos.fr.adoc b/doc/fr/includes/autogen_api_infos.fr.adoc index 0ca565f1f..1944664f3 100644 --- a/doc/fr/includes/autogen_api_infos.fr.adoc +++ b/doc/fr/includes/autogen_api_infos.fr.adoc @@ -134,6 +134,8 @@ | weechat | version_number | version de WeeChat (sous forme de nombre) | - +| weechat | weechat_daemon | 1 si WeeChat tourne en mode démon (sans interface, en tâche de fond) | - + | weechat | weechat_dir | répertoire de WeeChat | - | weechat | weechat_headless | 1 si WeeChat tourne sans interface | - diff --git a/doc/it/includes/autogen_api_infos.it.adoc b/doc/it/includes/autogen_api_infos.it.adoc index 763351bcd..9f04007a1 100644 --- a/doc/it/includes/autogen_api_infos.it.adoc +++ b/doc/it/includes/autogen_api_infos.it.adoc @@ -134,6 +134,8 @@ | weechat | version_number | versione di WeeChat (come numero) | - +| weechat | weechat_daemon | 1 if WeeChat is running in daemon mode (headless, in background) | - + | weechat | weechat_dir | directory WeeChat | - | weechat | weechat_headless | 1 if WeeChat is running headless | - diff --git a/doc/ja/includes/autogen_api_infos.ja.adoc b/doc/ja/includes/autogen_api_infos.ja.adoc index c428df33f..7524374c8 100644 --- a/doc/ja/includes/autogen_api_infos.ja.adoc +++ b/doc/ja/includes/autogen_api_infos.ja.adoc @@ -134,6 +134,8 @@ | weechat | version_number | WeeChat のバージョン (数字) | - +| weechat | weechat_daemon | 1 if WeeChat is running in daemon mode (headless, in background) | - + | weechat | weechat_dir | WeeChat ディレクトリ | - | weechat | weechat_headless | 1 if WeeChat is running headless | - diff --git a/doc/pl/includes/autogen_api_infos.pl.adoc b/doc/pl/includes/autogen_api_infos.pl.adoc index a9d75905a..87724cfd8 100644 --- a/doc/pl/includes/autogen_api_infos.pl.adoc +++ b/doc/pl/includes/autogen_api_infos.pl.adoc @@ -134,6 +134,8 @@ | weechat | version_number | Wersja WeeChat (jako liczba) | - +| weechat | weechat_daemon | 1 if WeeChat is running in daemon mode (headless, in background) | - + | weechat | weechat_dir | Katalog WeeChat | - | weechat | weechat_headless | 1 jeśli WeeChat działa w trybie bez interfejsu | - @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-02-06 15:55+0100\n" "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -10338,6 +10338,10 @@ msgstr "1 pokud se WeeChat aktualizuje (příkaz `/upgrade`)" msgid "1 if WeeChat is running headless" msgstr "1 pokud se WeeChat aktualizuje (příkaz `/upgrade`)" +#, fuzzy +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "1 pokud se WeeChat aktualizuje (příkaz `/upgrade`)" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -24,7 +24,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-03-14 13:36+0100\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German <kde-i18n-de@kde.org>\n" @@ -12260,6 +12260,10 @@ msgstr "1 falls WeeChat ein Upgrade durchführt (Befehl `/upgrade`)" msgid "1 if WeeChat is running headless" msgstr "1, falls WeeChat im Hintergrundmodus ausgeführt wird" +#, fuzzy +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "1, falls WeeChat im Hintergrundmodus ausgeführt wird" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-02-06 15:55+0100\n" "Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -10649,6 +10649,10 @@ msgstr "1 si WeeChat se está actualizando (comando `/upgrade`)" msgid "1 if WeeChat is running headless" msgstr "1 si WeeChat se está actualizando (comando `/upgrade`)" +#, fuzzy +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "1 si WeeChat se está actualizando (comando `/upgrade`)" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" -"PO-Revision-Date: 2021-03-14 13:35+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" +"PO-Revision-Date: 2021-03-14 14:00+0100\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -11986,6 +11986,9 @@ msgstr "1 si WeeChat est en cours de mise à jour (commande `/upgrade`)" msgid "1 if WeeChat is running headless" msgstr "1 si WeeChat tourne sans interface" +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "1 si WeeChat tourne en mode démon (sans interface, en tâche de fond)" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-02-06 15:55+0100\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -9686,6 +9686,9 @@ msgstr "" msgid "1 if WeeChat is running headless" msgstr "" +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-02-06 15:55+0100\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -10834,6 +10834,10 @@ msgstr "1 se si sta aggiornando WeeChat (comando `/upgrade`)" msgid "1 if WeeChat is running headless" msgstr "1 se si sta aggiornando WeeChat (comando `/upgrade`)" +#, fuzzy +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "1 se si sta aggiornando WeeChat (comando `/upgrade`)" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-02-06 15:55+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -11468,6 +11468,10 @@ msgstr "WeeChat がアップグレード中は 1 (コマンド `/upgrade`)" msgid "1 if WeeChat is running headless" msgstr "WeeChat をヘッドレスモードで実行中 (Ctrl-C で終了します)。" +#, fuzzy +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "WeeChat をヘッドレスモードで実行中 (Ctrl-C で終了します)。" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-03-14 13:37+0100\n" "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n" "Language-Team: Polish <kde-i18n-doc@kde.org>\n" @@ -11727,6 +11727,10 @@ msgstr "1 jeżeli WeeChat jest aktualizowany (komenda `/upgrade`)" msgid "1 if WeeChat is running headless" msgstr "1 jeśli WeeChat działa w trybie bez interfejsu" +#, fuzzy +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "1 jeśli WeeChat działa w trybie bez interfejsu" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-02-06 15:55+0100\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -11291,6 +11291,10 @@ msgstr "1 se o WeeChat está a atualizar (comando `/upgrade`)" msgid "1 if WeeChat is running headless" msgstr "1 se o WeeChat está a atualizar (comando `/upgrade`)" +#, fuzzy +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "1 se o WeeChat está a atualizar (comando `/upgrade`)" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" diff --git a/po/pt_BR.po b/po/pt_BR.po index ef0950764..f803dbf15 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: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-03-05 20:43+0100\n" "Last-Translator: Érico Nogueira <ericonr@disroot.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -10135,6 +10135,10 @@ msgstr "1 se o WeeChat está sendo atualizado (comando `/upgrade`)" msgid "1 if WeeChat is running headless" msgstr "1 se o WeeChat está sendo atualizado (comando `/upgrade`)" +#, fuzzy +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "1 se o WeeChat está sendo atualizado (comando `/upgrade`)" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-02-06 15:55+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -9721,6 +9721,9 @@ msgstr "" msgid "1 if WeeChat is running headless" msgstr "" +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+0100\n" "PO-Revision-Date: 2021-02-06 15:55+0100\n" "Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -8846,6 +8846,9 @@ msgstr "" msgid "1 if WeeChat is running headless" msgstr "" +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" diff --git a/po/weechat.pot b/po/weechat.pot index 536379461..c5fa5c9e3 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: 2021-03-14 13:34+0100\n" +"POT-Creation-Date: 2021-03-14 14:00+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" @@ -8705,6 +8705,9 @@ msgstr "" msgid "1 if WeeChat is running headless" msgstr "" +msgid "1 if WeeChat is running in daemon mode (headless, in background)" +msgstr "" + msgid "" "1 if automatic connection to servers is enabled, 0 if it has been disabled " "by the user (option \"-a\" or \"--no-connect\")" diff --git a/src/plugins/plugin-api-info.c b/src/plugins/plugin-api-info.c index 3d8c75aad..773742581 100644 --- a/src/plugins/plugin-api-info.c +++ b/src/plugins/plugin-api-info.c @@ -339,6 +339,27 @@ plugin_api_info_weechat_headless_cb (const void *pointer, void *data, } /* + * Returns WeeChat info "weechat_daemon". + */ + +char * +plugin_api_info_weechat_daemon_cb (const void *pointer, void *data, + const char *info_name, + const char *arguments) +{ + char value[32]; + + /* make C compiler happy */ + (void) pointer; + (void) data; + (void) info_name; + (void) arguments; + + snprintf (value, sizeof (value), "%d", weechat_daemon); + return strdup (value); +} + +/* * Returns WeeChat info "auto_connect". */ @@ -1804,6 +1825,10 @@ plugin_api_info_init () hook_info (NULL, "weechat_headless", N_("1 if WeeChat is running headless"), NULL, &plugin_api_info_weechat_headless_cb, NULL, NULL); + hook_info (NULL, "weechat_daemon", + N_("1 if WeeChat is running in daemon mode " + "(headless, in background)"), + NULL, &plugin_api_info_weechat_daemon_cb, NULL, NULL); hook_info (NULL, "auto_connect", N_("1 if automatic connection to servers is enabled, " "0 if it has been disabled by the user (option \"-a\" or " |