mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.0306: plural messages are not translated properly
Problem: Plural messages are not translated properly. Solution: Add more usage of NGETTEXT(). (Sergey Alyoshin)
This commit is contained in:
13
src/fileio.c
13
src/fileio.c
@@ -5349,16 +5349,11 @@ msg_add_lines(
|
||||
"%ldL, %lldC", lnum, (long long)nchars);
|
||||
else
|
||||
{
|
||||
if (lnum == 1)
|
||||
STRCPY(p, _("1 line, "));
|
||||
else
|
||||
sprintf((char *)p, _("%ld lines, "), lnum);
|
||||
sprintf((char *)p, NGETTEXT("%ld line, ", "%ld lines, ", lnum), lnum);
|
||||
p += STRLEN(p);
|
||||
if (nchars == 1)
|
||||
STRCPY(p, _("1 character"));
|
||||
else
|
||||
vim_snprintf((char *)p, IOSIZE - (p - IObuff),
|
||||
_("%lld characters"), (long long)nchars);
|
||||
vim_snprintf((char *)p, IOSIZE - (p - IObuff),
|
||||
NGETTEXT("%lld character", "%lld characters", nchars),
|
||||
(long long)nchars);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user