Mercurial > vim
comparison src/vim.h @ 14585:c8f07e8b273e v8.1.0306
patch 8.1.0306: plural messages are not translated properly
commit https://github.com/vim/vim/commit/da6e8919e75fa8f961d1b805e877c8a92e76dafb
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 21 15:12:14 2018 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 21 Aug 2018 15:15:06 +0200 |
parents | 80f715651c4c |
children | 82e7ce311065 |
comparison
equal
deleted
inserted
replaced
14584:443ccbfc2be0 | 14585:c8f07e8b273e |
---|---|
551 | 551 |
552 | 552 |
553 /* | 553 /* |
554 * The _() stuff is for using gettext(). It is a no-op when libintl.h is not | 554 * The _() stuff is for using gettext(). It is a no-op when libintl.h is not |
555 * found or the +multilang feature is disabled. | 555 * found or the +multilang feature is disabled. |
556 * Use NGETTEXT(single, multi, number) to get plural behavior: | |
557 * - single - message for singular form | |
558 * - multi - message for plural form | |
559 * - number - the count | |
556 */ | 560 */ |
557 #ifdef FEAT_GETTEXT | 561 #ifdef FEAT_GETTEXT |
558 # ifdef DYNAMIC_GETTEXT | 562 # ifdef DYNAMIC_GETTEXT |
559 # define _(x) (*dyn_libintl_gettext)((char *)(x)) | 563 # define _(x) (*dyn_libintl_gettext)((char *)(x)) |
560 # define NGETTEXT(x, xs, n) (*dyn_libintl_ngettext)((char *)(x), (char *)(xs), (n)) | 564 # define NGETTEXT(x, xs, n) (*dyn_libintl_ngettext)((char *)(x), (char *)(xs), (n)) |