diff options
-rw-r--r-- | ChangeLog.adoc | 4 | ||||
-rw-r--r-- | doc/de/autogen/plugin_api/infos.adoc | 2 | ||||
-rw-r--r-- | doc/en/autogen/plugin_api/infos.adoc | 2 | ||||
-rw-r--r-- | doc/fr/autogen/plugin_api/infos.adoc | 2 | ||||
-rw-r--r-- | doc/it/autogen/plugin_api/infos.adoc | 2 | ||||
-rw-r--r-- | doc/ja/autogen/plugin_api/infos.adoc | 2 | ||||
-rw-r--r-- | doc/pl/autogen/plugin_api/infos.adoc | 2 | ||||
-rw-r--r-- | po/cs.po | 13 | ||||
-rw-r--r-- | po/de.po | 13 | ||||
-rw-r--r-- | po/es.po | 13 | ||||
-rw-r--r-- | po/fr.po | 15 | ||||
-rw-r--r-- | po/hu.po | 13 | ||||
-rw-r--r-- | po/it.po | 13 | ||||
-rw-r--r-- | po/ja.po | 13 | ||||
-rw-r--r-- | po/pl.po | 13 | ||||
-rw-r--r-- | po/pt.po | 13 | ||||
-rw-r--r-- | po/pt_BR.po | 13 | ||||
-rw-r--r-- | po/ru.po | 13 | ||||
-rw-r--r-- | po/tr.po | 13 | ||||
-rw-r--r-- | po/weechat.pot | 13 | ||||
-rw-r--r-- | src/plugins/plugin-api.c | 24 |
21 files changed, 145 insertions, 66 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index e31d1fee7..8db9cc176 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -18,6 +18,10 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] [[v1.7]] == Version 1.7 (under dev) +New features:: + + * api: add info "pid" (WeeChat PID) (issue #850) + Improvements:: * irc: change default value of option irc.network.lag_reconnect to 300 (issue #818) diff --git a/doc/de/autogen/plugin_api/infos.adoc b/doc/de/autogen/plugin_api/infos.adoc index ee0f71f49..341a148ce 100644 --- a/doc/de/autogen/plugin_api/infos.adoc +++ b/doc/de/autogen/plugin_api/infos.adoc @@ -58,6 +58,8 @@ | weechat | nick_color_name | zeigt Farbnamen des Nick | Nickname +| weechat | pid | WeeChat PID (process ID) | - + | weechat | term_height | Höhe des Terminals | - | weechat | term_width | Breite des Terminals | - diff --git a/doc/en/autogen/plugin_api/infos.adoc b/doc/en/autogen/plugin_api/infos.adoc index d41a9f046..6ce9b2753 100644 --- a/doc/en/autogen/plugin_api/infos.adoc +++ b/doc/en/autogen/plugin_api/infos.adoc @@ -58,6 +58,8 @@ | weechat | nick_color_name | get nick color name | nickname +| weechat | pid | WeeChat PID (process ID) | - + | weechat | term_height | height of terminal | - | weechat | term_width | width of terminal | - diff --git a/doc/fr/autogen/plugin_api/infos.adoc b/doc/fr/autogen/plugin_api/infos.adoc index d01d79a0e..ea8133ebc 100644 --- a/doc/fr/autogen/plugin_api/infos.adoc +++ b/doc/fr/autogen/plugin_api/infos.adoc @@ -58,6 +58,8 @@ | weechat | nick_color_name | retourne le nom de la couleur du pseudo | pseudo +| weechat | pid | PID (ID de processus) de WeeChat | - + | weechat | term_height | hauteur du terminal | - | weechat | term_width | largeur du terminal | - diff --git a/doc/it/autogen/plugin_api/infos.adoc b/doc/it/autogen/plugin_api/infos.adoc index dcb2c139b..8d74d79c6 100644 --- a/doc/it/autogen/plugin_api/infos.adoc +++ b/doc/it/autogen/plugin_api/infos.adoc @@ -58,6 +58,8 @@ | weechat | nick_color_name | ottiene il nome del colore del nick | nick +| weechat | pid | WeeChat PID (process ID) | - + | weechat | term_height | height of terminal | - | weechat | term_width | width of terminal | - diff --git a/doc/ja/autogen/plugin_api/infos.adoc b/doc/ja/autogen/plugin_api/infos.adoc index 1f5067955..90159d20f 100644 --- a/doc/ja/autogen/plugin_api/infos.adoc +++ b/doc/ja/autogen/plugin_api/infos.adoc @@ -58,6 +58,8 @@ | weechat | nick_color_name | ニックネームの色名を取得 | ニックネーム +| weechat | pid | WeeChat PID (process ID) | - + | weechat | term_height | 端末の高さ | - | weechat | term_width | 端末の幅 | - diff --git a/doc/pl/autogen/plugin_api/infos.adoc b/doc/pl/autogen/plugin_api/infos.adoc index b9658429a..f40eabefa 100644 --- a/doc/pl/autogen/plugin_api/infos.adoc +++ b/doc/pl/autogen/plugin_api/infos.adoc @@ -58,6 +58,8 @@ | weechat | nick_color_name | pobiera nazwę koloru nicka | nazwa użytkownika +| weechat | pid | WeeChat PID (process ID) | - + | weechat | term_height | wysokość terminala | - | weechat | term_width | szerokość terminala | - @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-09-03 08:23+0200\n" "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -242,10 +242,6 @@ msgstr "" "%sVarování: nemohu nastavit lokalizaci; zkontrolujte že $LANG a $LC_* " "promněné jsou nastaveny správně" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "Obdržen signál %s, ukončuji WeeChat..." - msgid "List of bars:" msgstr "Seznam polí:" @@ -4328,6 +4324,10 @@ msgstr "Barvy Weechat (použité: %d, zbývá: %d):" msgid "Terminal lost, exiting WeeChat..." msgstr "Terminál ztracen, ukončuji WeeChat..." +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "Obdržen signál %s, ukončuji WeeChat..." + msgid "Mouse is enabled" msgstr "Myš je zapnuta" @@ -8893,6 +8893,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "datum kompilace WeeChat" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "dělič adresáře" @@ -19,7 +19,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-11-20 14:22+0100\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German <kde-i18n-de@kde.org>\n" @@ -247,10 +247,6 @@ msgstr "" "%sWarnung: locale kann nicht festgelegt werden; Variablen $LANG und $LC_* " "sollten auf Plausibilität überprüft werden" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "Signal %s empfangen, beende WeeChat..." - msgid "List of bars:" msgstr "Liste der vorhandenen Infobars:" @@ -5114,6 +5110,10 @@ msgstr "WeeChat Farben (in Benutzung: %d; noch frei verfügbar: %d):" msgid "Terminal lost, exiting WeeChat..." msgstr "Terminal verloren, beende WeeChat..." +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "Signal %s empfangen, beende WeeChat..." + msgid "Mouse is enabled" msgstr "Maus ist aktiv" @@ -10223,6 +10223,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "Datum der WeeChat Kompilierung" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "Trennzeichen für Verzeichnis" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-09-03 08:23+0200\n" "Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -229,10 +229,6 @@ msgid "" "correct" msgstr "" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "Señal %s recibida, cerrando WeeChat..." - msgid "List of bars:" msgstr "Lista de barras:" @@ -4521,6 +4517,10 @@ msgstr "Colores de WeeChat (en uso: %d, disponibles: %d):" msgid "Terminal lost, exiting WeeChat..." msgstr "Se perdió la terminal, cerrando WeeChat..." +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "Señal %s recibida, cerrando WeeChat..." + msgid "Mouse is enabled" msgstr "Ratón activado" @@ -9198,6 +9198,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "fecha de compilación de WeeChat" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "separador de directorios" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" -"PO-Revision-Date: 2016-11-09 20:46+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" +"PO-Revision-Date: 2016-11-20 15:56+0100\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -240,10 +240,6 @@ msgstr "" "%sAttention : impossible de définir la locale ; vérifiez que les variables " "$LANG et $LC_* sont correctes" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "Signal %s reçu, sortie de WeeChat..." - msgid "List of bars:" msgstr "Liste des barres :" @@ -5005,6 +5001,10 @@ msgstr "Couleurs WeeChat (en utilisation : %d, libres : %d) :" msgid "Terminal lost, exiting WeeChat..." msgstr "Terminal perdu, sortie de WeeChat..." +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "Signal %s reçu, sortie de WeeChat..." + msgid "Mouse is enabled" msgstr "La souris est activée" @@ -9979,6 +9979,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "date de compilation de WeeChat" +msgid "WeeChat PID (process ID)" +msgstr "PID (ID de processus) de WeeChat" + msgid "directory separator" msgstr "séparateur de répertoire" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-09-03 08:23+0200\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -223,10 +223,6 @@ msgid "" "correct" msgstr "" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "" - #, fuzzy msgid "List of bars:" msgstr "Aliaszok listája:\n" @@ -3903,6 +3899,10 @@ msgstr "" msgid "Terminal lost, exiting WeeChat..." msgstr "" +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "" + #, fuzzy msgid "Mouse is enabled" msgstr "a felhasználók le lettek tiltva" @@ -8247,6 +8247,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "Konfigurációs fájl elmentve\n" +msgid "WeeChat PID (process ID)" +msgstr "" + #, fuzzy msgid "directory separator" msgstr "időelválasztó színe" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-09-03 08:24+0200\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -221,10 +221,6 @@ msgid "" "correct" msgstr "" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "Ricevuto segnale %s, chiusura di WeeChat..." - msgid "List of bars:" msgstr "Elenco delle barre:" @@ -4651,6 +4647,10 @@ msgstr "Colori di WeeChat (in uso: %d, rimaste: %d):" msgid "Terminal lost, exiting WeeChat..." msgstr "Terminale perduto, chiusura di WeeChat..." +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "Ricevuto segnale %s, chiusura di WeeChat..." + msgid "Mouse is enabled" msgstr "Mouse abilitato" @@ -9361,6 +9361,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "data di compilazione di WeeChat" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "separatore directory" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-11-12 09:00+0900\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -238,10 +238,6 @@ msgstr "" "%s警告: このロケールは設定できません; $LANG および $LC_* 変数が正しいことを確" "認してください" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "シグナル %s を受け取りました、WeeChat の終了中..." - msgid "List of bars:" msgstr "バーのリスト:" @@ -4780,6 +4776,10 @@ msgstr "WeeChat 色 (使用中: %d、残り: %d):" msgid "Terminal lost, exiting WeeChat..." msgstr "端末が見つかりません、WeeChat の終了中..." +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "シグナル %s を受け取りました、WeeChat の終了中..." + msgid "Mouse is enabled" msgstr "マウスを有効化しました" @@ -9593,6 +9593,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "WeeChat のコンパイル日" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "ディレクトリ区切り" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-09-03 08:24+0200\n" "Last-Translator: Krzysztof Korościk <soltys1@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -240,10 +240,6 @@ msgstr "" "%sUwaga: nie można ustawić języka; upewnij się, że zmienne $LANG i $LC_* są " "ustawione poprawnie" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "Otrzymano sygnał %s, wychodzę z WeeChat..." - msgid "List of bars:" msgstr "Lista pasków:" @@ -4893,6 +4889,10 @@ msgstr "Kolory WeeChat (w użyciu: %d, zostało: %d):" msgid "Terminal lost, exiting WeeChat..." msgstr "Utracono terminal, wychodzę z WeeChat..." +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "Otrzymano sygnał %s, wychodzę z WeeChat..." + msgid "Mouse is enabled" msgstr "Obsługa myszy włączona" @@ -9780,6 +9780,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "data kompilacji WeeChat" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "separator katalogów" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-09-27 12:29+0000\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -237,10 +237,6 @@ msgstr "" "%sAviso: não é possível definir a região; certifique-se de que as variáveis " "$LANG e $LC_* estão corretas" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "Sinal %s recebido, a sair do WeeChat..." - msgid "List of bars:" msgstr "Lista de barras:" @@ -4894,6 +4890,10 @@ msgstr "Cores WeeChat (em uso: %d, livres: %d):" msgid "Terminal lost, exiting WeeChat..." msgstr "Terminal perdido, a sair do WeeChat..." +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "Sinal %s recebido, a sair do WeeChat..." + msgid "Mouse is enabled" msgstr "O rato está ativado" @@ -9788,6 +9788,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "data de compilação do WeeChat" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "separador de diretórios" diff --git a/po/pt_BR.po b/po/pt_BR.po index 7a03e0113..6f11d65c4 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: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-09-03 08:24+0200\n" "Last-Translator: Eduardo Elias <camponez@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -253,10 +253,6 @@ msgid "" "correct" msgstr "" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "Sinal %s recebido, saindo do WeeChat..." - msgid "List of bars:" msgstr "Lista de barras:" @@ -4503,6 +4499,10 @@ msgstr "Cores do WeeChat (em uso: %d, sobram: %d):" msgid "Terminal lost, exiting WeeChat..." msgstr "Terminal perdido, saindo do WeeChat..." +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "Sinal %s recebido, saindo do WeeChat..." + msgid "Mouse is enabled" msgstr "Mouse está habilitado" @@ -8694,6 +8694,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "data de compilação do WeeChat" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "separador de diretório" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-09-03 08:24+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -232,10 +232,6 @@ msgid "" "correct" msgstr "" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "" - #, fuzzy msgid "List of bars:" msgstr "Список сокращений:\n" @@ -3936,6 +3932,10 @@ msgstr "" msgid "Terminal lost, exiting WeeChat..." msgstr "" +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "" + #, fuzzy msgid "Mouse is enabled" msgstr "команда users отключена" @@ -8284,6 +8284,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "Конфигурационный файл сохранён\n" +msgid "WeeChat PID (process ID)" +msgstr "" + #, fuzzy msgid "directory separator" msgstr "цвет разделителя времени" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+0100\n" "PO-Revision-Date: 2016-05-18 07:43+0200\n" "Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -193,10 +193,6 @@ msgid "" "correct" msgstr "" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "" - msgid "List of bars:" msgstr "" @@ -3536,6 +3532,10 @@ msgstr "" msgid "Terminal lost, exiting WeeChat..." msgstr "" +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "" + msgid "Mouse is enabled" msgstr "" @@ -7486,6 +7486,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index 086a093b6..26a18ff91 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: 2016-11-09 17:48+0100\n" +"POT-Creation-Date: 2016-11-20 15:55+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" @@ -192,10 +192,6 @@ msgid "" "correct" msgstr "" -#, c-format -msgid "Signal %s received, exiting WeeChat..." -msgstr "" - msgid "List of bars:" msgstr "" @@ -3527,6 +3523,10 @@ msgstr "" msgid "Terminal lost, exiting WeeChat..." msgstr "" +#, c-format +msgid "Signal %s received, exiting WeeChat..." +msgstr "" + msgid "Mouse is enabled" msgstr "" @@ -7410,6 +7410,9 @@ msgstr "" msgid "WeeChat compilation date" msgstr "" +msgid "WeeChat PID (process ID)" +msgstr "" + msgid "directory separator" msgstr "" diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c index cc4e4b0a9..280d830af 100644 --- a/src/plugins/plugin-api.c +++ b/src/plugins/plugin-api.c @@ -382,6 +382,27 @@ plugin_api_info_date_cb (const void *pointer, void *data, } /* + * Returns WeeChat info "pid". + */ + +const char * +plugin_api_info_pid_cb (const void *pointer, void *data, + const char *info_name, + const char *arguments) +{ + static char value[32]; + + /* make C compiler happy */ + (void) pointer; + (void) data; + (void) info_name; + (void) arguments; + + snprintf (value, sizeof (value), "%d", (int)getpid ()); + return value; +} + +/* * Returns WeeChat info "dir_separator". */ @@ -1830,6 +1851,9 @@ plugin_api_init () hook_info (NULL, "date", N_("WeeChat compilation date"), NULL, &plugin_api_info_date_cb, NULL, NULL); + hook_info (NULL, "pid", + N_("WeeChat PID (process ID)"), + NULL, &plugin_api_info_pid_cb, NULL, NULL); hook_info (NULL, "dir_separator", N_("directory separator"), NULL, &plugin_api_info_dir_separator_cb, NULL, NULL); |