1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +02:00

core: add last start date in output of command /version after at least one /upgrade (closes #903)

This commit is contained in:
Sébastien Helleu
2017-02-03 22:19:20 +01:00
parent 0ef979a54a
commit 2437107e35
15 changed files with 107 additions and 68 deletions
+1
View File
@@ -24,6 +24,7 @@ New features::
Improvements::
* core: add last start date in output of command /version after at least one /upgrade (issue #903)
* irc: don't smart filter modes given to you (issue #530, issue #897)
Build::
+5 -5
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-06 21:59+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -988,8 +988,8 @@ msgstr "Čas běhu WeeChat: %s%d %s%s %s%02d%s:%s%02d%s:%s%02d%s, spuštěn %s%s
msgid "compiled on"
msgstr "kompilováno"
#, c-format
msgid "Upgraded %d %s, first start: %s"
#, fuzzy, c-format
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr "Aktualizováno %d %s, první spuštění: %s"
#. TRANSLATORS: text is: "upgraded xx times"
@@ -2523,7 +2523,7 @@ msgstr ""
msgid "manage windows"
msgstr "spravuje okna"
#, fuzzy
#, fuzzy, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -4593,7 +4593,7 @@ msgid ""
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
#, fuzzy, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+5 -4
View File
@@ -19,7 +19,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-22 13:46+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -1011,8 +1011,8 @@ msgstr ""
msgid "compiled on"
msgstr "kompiliert am"
#, c-format
msgid "Upgraded %d %s, first start: %s"
#, fuzzy, c-format
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr "Es wurde %d %s ein Upgrade durchgeführt, erster Start: %s"
# nicht als Zeitangabe, sondern wie oft etwas passiert
@@ -2977,6 +2977,7 @@ msgstr ""
msgid "manage windows"
msgstr "Fenster verwalten"
#, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -5413,7 +5414,7 @@ msgstr ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
#, c-format
#, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+5 -5
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-06 22:01+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -982,8 +982,8 @@ msgstr ""
msgid "compiled on"
msgstr "compilado en"
#, c-format
msgid "Upgraded %d %s, first start: %s"
#, fuzzy, c-format
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr "Actualizado %d %s, primer inicio: %s"
#. TRANSLATORS: text is: "upgraded xx times"
@@ -2624,7 +2624,7 @@ msgstr ""
msgid "manage windows"
msgstr "gestión de ventanas"
#, fuzzy
#, fuzzy, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -4788,7 +4788,7 @@ msgid ""
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
#, fuzzy, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+6 -5
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"PO-Revision-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-02-03 21:58+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -997,8 +997,8 @@ msgid "compiled on"
msgstr "compilé le"
#, c-format
msgid "Upgraded %d %s, first start: %s"
msgstr "Mis à jour %d %s, premier démarrage : %s"
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr "Mis à jour %d %s, premier démarrage : %s, dernier démarrage : %s"
#. TRANSLATORS: text is: "upgraded xx times"
msgid "time"
@@ -2910,6 +2910,7 @@ msgstr ""
msgid "manage windows"
msgstr "gestion des fenêtres"
#, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -5301,7 +5302,7 @@ msgstr ""
"list [<alias>] || add <alias> [<commande>[;<commande>...]] || addcompletion "
"<complétion> <alias> [<commande>[;<commande>...]] || del <alias> [<alias>...]"
#, c-format
#, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+4 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-06 22:03+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1012,7 +1012,7 @@ msgid "compiled on"
msgstr "lefordítva:"
#, c-format
msgid "Upgraded %d %s, first start: %s"
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr ""
#. TRANSLATORS: text is: "upgraded xx times"
@@ -2178,7 +2178,7 @@ msgstr ""
msgid "manage windows"
msgstr "ablakok kezelése"
#, fuzzy
#, fuzzy, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -4163,7 +4163,7 @@ msgid ""
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
#, fuzzy, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+5 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-06 22:04+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -968,8 +968,8 @@ msgstr ""
msgid "compiled on"
msgstr "compilato il"
#, c-format
msgid "Upgraded %d %s, first start: %s"
#, fuzzy, c-format
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr "Aggiornato %d %s, primo avvio: %s"
#. TRANSLATORS: text is: "upgraded xx times"
@@ -2711,7 +2711,7 @@ msgstr ""
msgid "manage windows"
msgstr "gestione delle finestre"
#, fuzzy
#, fuzzy, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -4917,7 +4917,7 @@ msgid ""
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
#, fuzzy, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+5 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-29 09:00+0900\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -981,8 +981,8 @@ msgstr ""
msgid "compiled on"
msgstr "コンパイル日時"
#, c-format
msgid "Upgraded %d %s, first start: %s"
#, fuzzy, c-format
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr "アップグレード回数 %d %s、初回起動日時: %s"
#. TRANSLATORS: text is: "upgraded xx times"
@@ -2827,6 +2827,7 @@ msgstr ""
msgid "manage windows"
msgstr "ウィンドウの操作"
#, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -5061,7 +5062,7 @@ msgstr ""
"list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion "
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
#, c-format
#, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+5 -5
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-06 22:05+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1003,8 +1003,8 @@ msgstr ""
msgid "compiled on"
msgstr "skompilowano"
#, c-format
msgid "Upgraded %d %s, first start: %s"
#, fuzzy, c-format
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr "Uaktualniono %d %s, pierwsze uruchomienie: %s"
#. TRANSLATORS: text is: "upgraded xx times"
@@ -2884,7 +2884,7 @@ msgstr ""
msgid "manage windows"
msgstr "zarządza oknami"
#, fuzzy
#, fuzzy, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -5177,7 +5177,7 @@ msgstr ""
"list [<alias>] || add <alias> [<komenda>[;<komenda>...]] || addcompletion "
"<dopełnienie> <alias> [<komenda>[;<komenda>...]] || del <alias> [<alias>...]"
#, c-format
#, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+5 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-14 21:39+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -991,8 +991,8 @@ msgstr ""
msgid "compiled on"
msgstr "compilado a"
#, c-format
msgid "Upgraded %d %s, first start: %s"
#, fuzzy, c-format
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr "Atualizado %d %s, primeiro início: %s"
#. TRANSLATORS: text is: "upgraded xx times"
@@ -2879,7 +2879,7 @@ msgstr ""
msgid "manage windows"
msgstr "gerir janelas"
#, fuzzy
#, fuzzy, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -5176,7 +5176,7 @@ msgstr ""
"list [<alias>] || add <alias> [<comando>[;<comando>...]] || addcompletion "
"<completação> <alias> [<comando>[;<comando>...]] || del <alias> [<alias>...]"
#, c-format
#, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+5 -5
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+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"
@@ -1004,8 +1004,8 @@ msgstr ""
msgid "compiled on"
msgstr "compilado em"
#, c-format
msgid "Upgraded %d %s, first start: %s"
#, fuzzy, c-format
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr "Atualizado %d %s, primeira inicialização: %s"
#. TRANSLATORS: text is: "upgraded xx times"
@@ -2674,7 +2674,7 @@ msgstr ""
msgid "manage windows"
msgstr "gerencia janelas"
#, fuzzy
#, fuzzy, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -4772,7 +4772,7 @@ msgid ""
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, c-format
#, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+4 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-06 22:06+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1033,7 +1033,7 @@ msgid "compiled on"
msgstr "собран:"
#, c-format
msgid "Upgraded %d %s, first start: %s"
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr ""
#. TRANSLATORS: text is: "upgraded xx times"
@@ -2201,7 +2201,7 @@ msgstr ""
msgid "manage windows"
msgstr "управление окнами"
#, fuzzy
#, fuzzy, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -4202,7 +4202,7 @@ msgid ""
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, fuzzy, c-format
#, fuzzy, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+4 -3
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+0100\n"
"PO-Revision-Date: 2017-01-06 22:07+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -916,7 +916,7 @@ msgid "compiled on"
msgstr "derlenme"
#, c-format
msgid "Upgraded %d %s, first start: %s"
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr ""
#. TRANSLATORS: text is: "upgraded xx times"
@@ -1987,6 +1987,7 @@ msgstr ""
msgid "manage windows"
msgstr ""
#, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -3786,7 +3787,7 @@ msgid ""
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, c-format
#, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+4 -3
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-01-22 13:29+0100\n"
"POT-Creation-Date: 2017-02-03 21:58+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"
@@ -920,7 +920,7 @@ msgid "compiled on"
msgstr ""
#, c-format
msgid "Upgraded %d %s, first start: %s"
msgid "Upgraded %d %s, first start: %s, last start: %s"
msgstr ""
#. TRANSLATORS: text is: "upgraded xx times"
@@ -1986,6 +1986,7 @@ msgstr ""
msgid "manage windows"
msgstr ""
#, no-c-format
msgid ""
"list || -1|+1|b#|up|down|left|right [-window <number>] || <number> || splith|"
"splitv [-window <number>] [<pct>] || resize [-window <number>] [h|v]"
@@ -3774,7 +3775,7 @@ msgid ""
"<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]"
msgstr ""
#, c-format
#, no-c-format
msgid ""
" list: list aliases (without argument, this list is displayed)\n"
" add: add an alias\n"
+44 -11
View File
@@ -6186,7 +6186,7 @@ COMMAND_CALLBACK(upgrade)
COMMAND_CALLBACK(uptime)
{
int days, hours, minutes, seconds;
char string[512];
char string[512], str_first_start[128];
/* make C compiler happy */
(void) pointer;
@@ -6197,6 +6197,10 @@ COMMAND_CALLBACK(uptime)
if ((argc >= 2) && (string_strcasecmp (argv[1], "-o") == 0))
{
snprintf (str_first_start, sizeof(str_first_start),
"%s", ctime (&weechat_first_start_time));
if (str_first_start[0])
str_first_start[strlen (str_first_start) - 1] = '\0';
snprintf (string, sizeof (string),
"WeeChat uptime: %d %s %02d:%02d:%02d, started on %s",
days,
@@ -6204,8 +6208,7 @@ COMMAND_CALLBACK(uptime)
hours,
minutes,
seconds,
ctime (&weechat_first_start_time));
string[strlen (string) - 1] = '\0';
str_first_start);
(void) input_data (buffer, string);
}
else if ((argc >= 2) && (string_strcasecmp (argv[1], "-ol") == 0))
@@ -6258,7 +6261,35 @@ command_version_display (struct t_gui_buffer *buffer,
int translated_string,
int display_git_version)
{
char string[512];
char string[1024], str_first_start[128], str_last_start[128];
time_t weechat_last_start_time;
str_first_start[0] = '\0';
str_last_start[0] = '\0';
if (weechat_upgrade_count > 0)
{
weechat_last_start_time = (time_t)weechat_current_start_timeval.tv_sec;
if (send_to_buffer_as_input && !translated_string)
{
snprintf (str_first_start, sizeof(str_first_start),
"%s", ctime (&weechat_first_start_time));
if (str_first_start[0])
str_first_start[strlen (str_first_start) - 1] = '\0';
snprintf (str_last_start, sizeof(str_last_start),
"%s", ctime (&weechat_last_start_time));
if (str_last_start[0])
str_last_start[strlen (str_last_start) - 1] = '\0';
}
else
{
snprintf (str_first_start, sizeof(str_first_start),
"%s", util_get_time_string (&weechat_first_start_time));
snprintf (str_last_start, sizeof(str_last_start),
"%s", util_get_time_string (&weechat_last_start_time));
}
}
if (send_to_buffer_as_input)
{
@@ -6274,11 +6305,12 @@ command_version_display (struct t_gui_buffer *buffer,
if (weechat_upgrade_count > 0)
{
snprintf (string, sizeof (string),
_("Upgraded %d %s, first start: %s"),
_("Upgraded %d %s, first start: %s, last start: %s"),
weechat_upgrade_count,
/* TRANSLATORS: text is: "upgraded xx times" */
NG_("time", "times", weechat_upgrade_count),
util_get_time_string (&weechat_first_start_time));
str_first_start,
str_last_start);
(void) input_data (buffer, string);
}
}
@@ -6294,11 +6326,11 @@ command_version_display (struct t_gui_buffer *buffer,
if (weechat_upgrade_count > 0)
{
snprintf (string, sizeof (string),
"Upgraded %d %s, first start: %s",
"Upgraded %d %s, first start: %s, last start: %s",
weechat_upgrade_count,
(weechat_upgrade_count > 1) ? "times" : "time",
ctime (&weechat_first_start_time));
string[strlen (string) - 1] = '\0';
str_first_start,
str_last_start);
(void) input_data (buffer, string);
}
}
@@ -6317,11 +6349,12 @@ command_version_display (struct t_gui_buffer *buffer,
if (weechat_upgrade_count > 0)
{
gui_chat_printf (NULL,
_("Upgraded %d %s, first start: %s"),
_("Upgraded %d %s, first start: %s, last start: %s"),
weechat_upgrade_count,
/* TRANSLATORS: text is: "upgraded xx times" */
NG_("time", "times", weechat_upgrade_count),
util_get_time_string (&weechat_first_start_time));
str_first_start,
str_last_start);
}
}
}