Fixed ngettext macros and MOO_LOCALE_DIR

master
Yevgen Muntyan 2007-03-06 18:57:19 -06:00
parent e4dd7d96f6
commit 5f7f9d83c3
2 changed files with 3 additions and 3 deletions

View File

@ -245,7 +245,7 @@ AM_CFLAGS = \
$(pcre_include) \
$(MOO_CFLAGS) \
$(MOO_DEBUG_CFLAGS) \
-DMOO_LOCALE_DIR=\"${localedir}\"
-DMOO_LOCALE_DIR=\"$(datadir)/locale\"
if MOO_INSTALL_HEADERS
mooutils_includedir = $(moo_includedir)/mooutils

View File

@ -47,8 +47,8 @@ G_BEGIN_DECLS
#define gettext(String) (String)
#define dgettext(Domain,String) (String)
#define dcgettext(Domain,String,Type) (String)
#define ngettext(str,str_pl,n) ((n) > 1 ? (str_pl) ? (str))
#define dngettext(dom,str,str_pl,n) ((n) > 1 ? (str_pl) ? (str))
#define ngettext(str,str_pl,n) ((n) > 1 ? (str_pl) : (str))
#define dngettext(dom,str,str_pl,n) ((n) > 1 ? (str_pl) : (str))
#define bindtextdomain(Domain,Directory) (Domain)
#define bind_textdomain_codeset(Domain,Codeset) (Codeset)