diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-20 08:40:12 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-20 08:40:12 +0100 |
commit | e9b6d73b0faee6b7b756067074dcfdd30e1d6477 (patch) | |
tree | 04afb4ce650646d9752e57edfbc96aedc7e523b7 | |
parent | 3a5f97c7a8a95395245f6b94d0555e010e4d4fb6 (diff) | |
download | weechat-e9b6d73b0faee6b7b756067074dcfdd30e1d6477.zip |
api: add time in info "date" (WeeChat compilation date/time) (closes #1138)
-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 | 5 | ||||
-rw-r--r-- | po/de.po | 5 | ||||
-rw-r--r-- | po/es.po | 5 | ||||
-rw-r--r-- | po/fr.po | 8 | ||||
-rw-r--r-- | po/hu.po | 4 | ||||
-rw-r--r-- | po/it.po | 5 | ||||
-rw-r--r-- | po/ja.po | 5 | ||||
-rw-r--r-- | po/pl.po | 5 | ||||
-rw-r--r-- | po/pt.po | 5 | ||||
-rw-r--r-- | po/pt_BR.po | 5 | ||||
-rw-r--r-- | po/ru.po | 4 | ||||
-rw-r--r-- | po/tr.po | 4 | ||||
-rw-r--r-- | po/weechat.pot | 4 | ||||
-rw-r--r-- | src/core/wee-version.c | 13 | ||||
-rw-r--r-- | src/core/wee-version.h | 1 | ||||
-rw-r--r-- | src/plugins/plugin-api.c | 4 |
23 files changed, 62 insertions, 36 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 687e54e4a..0de386f51 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -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) diff --git a/doc/de/autogen/plugin_api/infos.adoc b/doc/de/autogen/plugin_api/infos.adoc index addc7f38b..308587115 100644 --- a/doc/de/autogen/plugin_api/infos.adoc +++ b/doc/de/autogen/plugin_api/infos.adoc @@ -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 | - diff --git a/doc/en/autogen/plugin_api/infos.adoc b/doc/en/autogen/plugin_api/infos.adoc index 004c8ad65..aad9efc4e 100644 --- a/doc/en/autogen/plugin_api/infos.adoc +++ b/doc/en/autogen/plugin_api/infos.adoc @@ -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 | - diff --git a/doc/fr/autogen/plugin_api/infos.adoc b/doc/fr/autogen/plugin_api/infos.adoc index e448b04a0..d9c793653 100644 --- a/doc/fr/autogen/plugin_api/infos.adoc +++ b/doc/fr/autogen/plugin_api/infos.adoc @@ -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 | - diff --git a/doc/it/autogen/plugin_api/infos.adoc b/doc/it/autogen/plugin_api/infos.adoc index 215147191..be5d2496f 100644 --- a/doc/it/autogen/plugin_api/infos.adoc +++ b/doc/it/autogen/plugin_api/infos.adoc @@ -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 | - diff --git a/doc/ja/autogen/plugin_api/infos.adoc b/doc/ja/autogen/plugin_api/infos.adoc index 7012f4dff..d570bdb42 100644 --- a/doc/ja/autogen/plugin_api/infos.adoc +++ b/doc/ja/autogen/plugin_api/infos.adoc @@ -92,7 +92,7 @@ | weechat | cursor_mode | カーソルモードが有効の場合 1 | - -| weechat | date | WeeChat のコンパイル日 | - +| weechat | date | WeeChat compilation date/time | - | weechat | dir_separator | ディレクトリ区切り | - diff --git a/doc/pl/autogen/plugin_api/infos.adoc b/doc/pl/autogen/plugin_api/infos.adoc index ddf1f8459..8d2ebdbec 100644 --- a/doc/pl/autogen/plugin_api/infos.adoc +++ b/doc/pl/autogen/plugin_api/infos.adoc @@ -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 | - @@ -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)" @@ -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)" @@ -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)" @@ -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" @@ -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)" @@ -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)" @@ -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)" @@ -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)" @@ -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)" diff --git a/po/pt_BR.po b/po/pt_BR.po index 20669e4d1..d32cf09de 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: 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)" @@ -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)" @@ -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)" diff --git a/po/weechat.pot b/po/weechat.pot index b57de280d..e50fa0267 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: 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)" diff --git a/src/core/wee-version.c b/src/core/wee-version.c index bf6a3303e..806296b46 100644 --- a/src/core/wee-version.c +++ b/src/core/wee-version.c @@ -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__; +} diff --git a/src/core/wee-version.h b/src/core/wee-version.h index 4d22d265c..d7d32d52a 100644 --- a/src/core/wee-version.h +++ b/src/core/wee-version.h @@ -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 */ diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c index 1888c732d..e2702eeef 100644 --- a/src/plugins/plugin-api.c +++ b/src/plugins/plugin-api.c @@ -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)"), |