api: add time in info "date" (WeeChat compilation date/time) (closes #1138)

v2.8-utf8proc
Sébastien Helleu 2018-01-20 08:40:12 +01:00
parent 3a5f97c7a8
commit e9b6d73b0f
23 changed files with 62 additions and 36 deletions

View File

@ -32,6 +32,10 @@ New features::
* scripts: add infos "xxx_interpreter" and "xxx_version" in script plugins (issue #1075)
* scripts: add option "version" in script commands (issue #1075)
Improvements::
* api: add time in info "date" (WeeChat compilation date/time) (issue #1138)
Build::
* ruby: add detection of Ruby 2.5 (issue #1122)

View File

@ -92,7 +92,7 @@
| weechat | cursor_mode | 1, falls Cursor-Modus aktiviert ist | -
| weechat | date | Datum der WeeChat Kompilierung | -
| weechat | date | WeeChat compilation date/time | -
| weechat | dir_separator | Trennzeichen für Verzeichnis | -

View File

@ -92,7 +92,7 @@
| weechat | cursor_mode | 1 if cursor mode is enabled | -
| weechat | date | WeeChat compilation date | -
| weechat | date | WeeChat compilation date/time | -
| weechat | dir_separator | directory separator | -

View File

@ -92,7 +92,7 @@
| weechat | cursor_mode | 1 si le mode curseur est activé | -
| weechat | date | date de compilation de WeeChat | -
| weechat | date | date/heure de compilation de WeeChat | -
| weechat | dir_separator | séparateur de répertoire | -

View File

@ -92,7 +92,7 @@
| weechat | cursor_mode | 1 se la modalità cursore è abilitata | -
| weechat | date | data di compilazione di WeeChat | -
| weechat | date | WeeChat compilation date/time | -
| weechat | dir_separator | separatore directory | -

View File

@ -92,7 +92,7 @@
| weechat | cursor_mode | カーソルモードが有効の場合 1 | -
| weechat | date | WeeChat のコンパイル日 | -
| weechat | date | WeeChat compilation date/time | -
| weechat | dir_separator | ディレクトリ区切り | -

View File

@ -92,7 +92,7 @@
| weechat | cursor_mode | 1 jeśli tryb kursora jest aktywny | -
| weechat | date | data kompilacji WeeChat | -
| weechat | date | WeeChat compilation date/time | -
| weechat | dir_separator | separator katalogów | -

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-06 13:50+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -9880,7 +9880,8 @@ msgstr ""
"Git verze Weechatu (výstup příkazu \"git describe\" pouze pro vývojové "
"verze, prázdné pro stabilní vydání)"
msgid "WeeChat compilation date"
#, fuzzy
msgid "WeeChat compilation date/time"
msgstr "datum kompilace WeeChat"
msgid "WeeChat PID (process ID)"

View File

@ -23,7 +23,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-16 20:57+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@ -11668,7 +11668,8 @@ msgstr ""
"für eine Entwicklerversion. Eine stabile Version gibt keine Information "
"zurück)"
msgid "WeeChat compilation date"
#, fuzzy
msgid "WeeChat compilation date/time"
msgstr "Datum der WeeChat Kompilierung"
msgid "WeeChat PID (process ID)"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-06 13:50+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -10205,7 +10205,8 @@ msgid ""
"version only, empty for a stable release)"
msgstr ""
msgid "WeeChat compilation date"
#, fuzzy
msgid "WeeChat compilation date/time"
msgstr "fecha de compilación de WeeChat"
msgid "WeeChat PID (process ID)"

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"PO-Revision-Date: 2018-01-15 22:37+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-20 08:37+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@ -11399,8 +11399,8 @@ msgstr ""
"version git de WeeChat (sortie de la commande \"git describe\" pour une "
"version de développement seulement, vide pour une version stable)"
msgid "WeeChat compilation date"
msgstr "date de compilation de WeeChat"
msgid "WeeChat compilation date/time"
msgstr "date/heure de compilation de WeeChat"
msgid "WeeChat PID (process ID)"
msgstr "PID (ID de processus) de WeeChat"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-06 13:50+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -9221,7 +9221,7 @@ msgid ""
msgstr ""
#, fuzzy
msgid "WeeChat compilation date"
msgid "WeeChat compilation date/time"
msgstr "Konfigurációs fájl elmentve\n"
msgid "WeeChat PID (process ID)"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-06 13:50+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -10398,7 +10398,8 @@ msgstr ""
"Versione git di weechat (output del comando \"git describe\" solo per la "
"versione di sviluppo, vuoto per una release stabile)"
msgid "WeeChat compilation date"
#, fuzzy
msgid "WeeChat compilation date/time"
msgstr "data di compilazione di WeeChat"
msgid "WeeChat PID (process ID)"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-13 09:00+0900\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@ -10953,7 +10953,8 @@ msgstr ""
"WeeChat の git バージョン (開発バージョンではコマンド \"git describe\" の出"
"力、安定版リリースでは空文字が出力されます)"
msgid "WeeChat compilation date"
#, fuzzy
msgid "WeeChat compilation date/time"
msgstr "WeeChat のコンパイル日"
msgid "WeeChat PID (process ID)"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-06 13:50+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -11131,7 +11131,8 @@ msgstr ""
"wersja git WeeChat (wyjście komendy \"git describe\" dla tylko dla wersji "
"rozwojowej, puste dla wersji stabilnej)"
msgid "WeeChat compilation date"
#, fuzzy
msgid "WeeChat compilation date/time"
msgstr "data kompilacji WeeChat"
msgid "WeeChat PID (process ID)"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-06 13:50+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@ -10842,7 +10842,8 @@ msgstr ""
"versão git do WeeChat (saída do comando \"git describe\" para uma versão em "
"desenvolvimento, vazio para uma versão estável)"
msgid "WeeChat compilation date"
#, fuzzy
msgid "WeeChat compilation date/time"
msgstr "data de compilação do WeeChat"
msgid "WeeChat PID (process ID)"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-06 13:50+0100\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -9716,7 +9716,8 @@ msgid ""
"version only, empty for a stable release)"
msgstr ""
msgid "WeeChat compilation date"
#, fuzzy
msgid "WeeChat compilation date/time"
msgstr "data de compilação do WeeChat"
msgid "WeeChat PID (process ID)"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2018-01-06 13:50+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -9258,7 +9258,7 @@ msgid ""
msgstr ""
#, fuzzy
msgid "WeeChat compilation date"
msgid "WeeChat compilation date/time"
msgstr "Конфигурационный файл сохранён\n"
msgid "WeeChat PID (process ID)"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+0100\n"
"PO-Revision-Date: 2017-06-26 23:33+0200\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -8427,7 +8427,7 @@ msgid ""
"version only, empty for a stable release)"
msgstr ""
msgid "WeeChat compilation date"
msgid "WeeChat compilation date/time"
msgstr ""
msgid "WeeChat PID (process ID)"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-01-15 22:36+0100\n"
"POT-Creation-Date: 2018-01-20 08:35+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"
@ -8308,7 +8308,7 @@ msgid ""
"version only, empty for a stable release)"
msgstr ""
msgid "WeeChat compilation date"
msgid "WeeChat compilation date/time"
msgstr ""
msgid "WeeChat PID (process ID)"

View File

@ -134,3 +134,16 @@ version_get_compilation_time ()
{
return __TIME__;
}
/*
* Returns date/time of WeeChat compilation.
*
* Example:
* Dec 16 2012 18:10:22
*/
const char *
version_get_compilation_date_time ()
{
return __DATE__ " " __TIME__;
}

View File

@ -27,5 +27,6 @@ extern const char *version_get_git ();
extern const char *version_get_version_with_git ();
extern const char *version_get_compilation_date ();
extern const char *version_get_compilation_time ();
extern const char *version_get_compilation_date_time ();
#endif /* WEECHAT_VERSION_H */

View File

@ -388,7 +388,7 @@ plugin_api_info_date_cb (const void *pointer, void *data,
(void) info_name;
(void) arguments;
return version_get_compilation_date ();
return version_get_compilation_date_time ();
}
/*
@ -1905,7 +1905,7 @@ plugin_api_init ()
"release)"),
NULL, &plugin_api_info_version_git_cb, NULL, NULL);
hook_info (NULL, "date",
N_("WeeChat compilation date"),
N_("WeeChat compilation date/time"),
NULL, &plugin_api_info_date_cb, NULL, NULL);
hook_info (NULL, "pid",
N_("WeeChat PID (process ID)"),