Mercurial > pidgin.yaz
comparison libpurple/internal.h @ 16063:fa8aeab4ca5a
Hopefully prevent libpurple causing problems for 3rd party UIs if they also
use gettext for i18n. Use dgettext & dngettext in libpurple to explicitly
specify the text domain to use.
Currently, with no split of strings for libpurple/pidgin/finch, we are using
'pidgin' as the gettext domain everywhere.
Hopefully this didn't break anything.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 11 Apr 2007 14:46:04 +0000 |
parents | 0946d187d55a |
children | 634b96915d2e |
comparison
equal
deleted
inserted
replaced
16062:07554cc5d090 | 16063:fa8aeab4ca5a |
---|---|
41 * Thank you Manuel, and thank you Alex's good friend Google. | 41 * Thank you Manuel, and thank you Alex's good friend Google. |
42 */ | 42 */ |
43 #ifdef ENABLE_NLS | 43 #ifdef ENABLE_NLS |
44 # include <locale.h> | 44 # include <locale.h> |
45 # include <libintl.h> | 45 # include <libintl.h> |
46 # define _(String) ((const char *)gettext(String)) | 46 # define _(String) ((const char *)dgettext(PACKAGE, String)) |
47 # ifdef gettext_noop | 47 # ifdef gettext_noop |
48 # define N_(String) gettext_noop (String) | 48 # define N_(String) gettext_noop (String) |
49 # else | 49 # else |
50 # define N_(String) (String) | 50 # define N_(String) (String) |
51 # endif | 51 # endif |
54 # define N_(String) (String) | 54 # define N_(String) (String) |
55 # ifndef _ | 55 # ifndef _ |
56 # define _(String) ((const char *)String) | 56 # define _(String) ((const char *)String) |
57 # endif | 57 # endif |
58 # define ngettext(Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural)) | 58 # define ngettext(Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural)) |
59 # define dngettext(Domain, Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural)) | |
59 #endif | 60 #endif |
60 | 61 |
61 #ifdef HAVE_ENDIAN_H | 62 #ifdef HAVE_ENDIAN_H |
62 # include <endian.h> | 63 # include <endian.h> |
63 #endif | 64 #endif |