summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-21 15:12:14 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-21 15:12:14 +0200
commitda6e8919e75fa8f961d1b805e877c8a92e76dafb (patch)
tree1e001a2e07d4a1d51d83f4d5a5efe91b3caeef84 /src/fileio.c
parent830e3583da682eee41ed6b027c9912547d4022c0 (diff)
downloadvim-git-da6e8919e75fa8f961d1b805e877c8a92e76dafb.tar.gz
patch 8.1.0306: plural messages are not translated properlyv8.1.0306
Problem: Plural messages are not translated properly. Solution: Add more usage of NGETTEXT(). (Sergey Alyoshin)
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 7bceb75fd..d00dc5e47 100644
--- a/src/fileio.c
+++ b/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);
}
}