diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-21 15:12:14 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-21 15:12:14 +0200 |
commit | da6e8919e75fa8f961d1b805e877c8a92e76dafb (patch) | |
tree | 1e001a2e07d4a1d51d83f4d5a5efe91b3caeef84 /src/ex_docmd.c | |
parent | 830e3583da682eee41ed6b027c9912547d4022c0 (diff) | |
download | vim-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/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 14ec21323..ccd96b1d3 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -5749,22 +5749,16 @@ check_more( { char_u buff[DIALOG_MSG_SIZE]; - if (n == 1) - vim_strncpy(buff, - (char_u *)_("1 more file to edit. Quit anyway?"), - DIALOG_MSG_SIZE - 1); - else - vim_snprintf((char *)buff, DIALOG_MSG_SIZE, - _("%d more files to edit. Quit anyway?"), n); + vim_snprintf((char *)buff, DIALOG_MSG_SIZE, + NGETTEXT("%d more file to edit. Quit anyway?", + "%d more files to edit. Quit anyway?", n), n); if (vim_dialog_yesno(VIM_QUESTION, NULL, buff, 1) == VIM_YES) return OK; return FAIL; } #endif - if (n == 1) - EMSG(_("E173: 1 more file to edit")); - else - EMSGN(_("E173: %ld more files to edit"), n); + EMSGN(NGETTEXT("E173: %ld more file to edit", + "E173: %ld more files to edit", n), n); quitmore = 2; /* next try to quit is allowed */ } return FAIL; |