0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.1.0308: a quick undo shows "1 seconds ago"

Problem:    A quick undo shows "1 seconds ago". (Tony Mechelynck)
Solution:   Add singular/plural message.
This commit is contained in:
Bram Moolenaar 2018-08-21 17:07:45 +02:00
parent 0f6b4f06de
commit fd6100b2aa
2 changed files with 9 additions and 2 deletions

View File

@ -3124,8 +3124,13 @@ u_add_time(char_u *buf, size_t buflen, time_t tt)
}
else
#endif
vim_snprintf((char *)buf, buflen, _("%ld seconds ago"),
(long)(vim_time() - tt));
{
long seconds = (long)(vim_time() - tt);
vim_snprintf((char *)buf, buflen,
NGETTEXT("%ld second ago", "%ld seconds ago", seconds),
seconds);
}
}
/*

View File

@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
308,
/**/
307,
/**/