diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-09-07 10:42:13 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-09-07 10:42:13 +0300 |
commit | 77a7746616e555fc08028e883a56d06bf0088b81 (patch) | |
tree | 4b60141cd339e90071d0a5f8054a0f1995bc32e2 /src/common | |
parent | Add missing files to POTFILES.in. (diff) | |
download | xz-77a7746616e555fc08028e883a56d06bf0088b81.tar.xz |
Fix use of N_() and ngettext().
I had somehow thought that N_() is usually used
as shorthand for ngettext().
This also fixes a missing \n from a call to ngettext().
Diffstat (limited to '')
-rw-r--r-- | src/common/tuklib_gettext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tuklib_gettext.h b/src/common/tuklib_gettext.h index 24852134..ff189040 100644 --- a/src/common/tuklib_gettext.h +++ b/src/common/tuklib_gettext.h @@ -33,12 +33,12 @@ textdomain(package); \ } while (0) # define _(msgid) gettext(msgid) -# define N_(msgid1, msgid2, n) ngettext(msgid1, msgid2, n) #else # define tuklib_gettext_init(package, localedir) \ setlocale(LC_ALL, "") # define _(msgid) (msgid) -# define N_(msgid1, msgid2, n) ((n) == 1 ? (msgid1) : (msgid2)) +# define ngettext(msgid1, msgid2, n) ((n) == 1 ? (msgid1) : (msgid2)) #endif +#define N_(msgid) msgid #endif |