Export moo_gettext for python
parent
6f793a162a
commit
0b1d1f2f13
|
@ -36,6 +36,7 @@ mooutils_include_headers = \
|
|||
mooglade.h \
|
||||
moohistoryentry.h \
|
||||
moohistorylist.h \
|
||||
mooi18n.h \
|
||||
moolinklabel.h \
|
||||
moomarkup.h \
|
||||
moomenuaction.h \
|
||||
|
@ -87,7 +88,6 @@ mooutils_sources = \
|
|||
mooglade.c \
|
||||
moohistoryentry.c \
|
||||
moohistorylist.c \
|
||||
mooi18n.h \
|
||||
mooi18n.c \
|
||||
moolinklabel.c \
|
||||
moologwindow-glade.h \
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
#include "mooutils/mooi18n.h"
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
|
||||
const char *
|
||||
_moo_gettext (const char *string)
|
||||
moo_gettext (const char *string)
|
||||
{
|
||||
#ifdef ENABLE_NLS
|
||||
static gboolean been_here = FALSE;
|
||||
|
||||
g_return_val_if_fail (string != NULL, NULL);
|
||||
|
@ -31,6 +31,7 @@ _moo_gettext (const char *string)
|
|||
}
|
||||
|
||||
return dgettext (GETTEXT_PACKAGE, string);
|
||||
#else /* !ENABLE_NLS */
|
||||
return string;
|
||||
#endif /* !ENABLE_NLS */
|
||||
}
|
||||
|
||||
#endif /* ENABLE_NLS */
|
||||
|
|
|
@ -23,13 +23,13 @@ G_BEGIN_DECLS
|
|||
|
||||
#ifdef ENABLE_NLS
|
||||
|
||||
#define _(String) _moo_gettext (String)
|
||||
#define Q_(String) g_strip_context ((String), _moo_gettext (String))
|
||||
#define _(String) moo_gettext (String)
|
||||
#define Q_(String) g_strip_context ((String), moo_gettext (String))
|
||||
#define N_(String) (String)
|
||||
#define D_(String,Domain) dgettext (Domain, String)
|
||||
#define QD_(String,Domain) g_strip_context ((String), D_ (String, Domain))
|
||||
|
||||
const char *_moo_gettext (const char *string);
|
||||
const char *moo_gettext (const char *string);
|
||||
|
||||
#else /* !ENABLE_NLS */
|
||||
|
||||
|
|
Loading…
Reference in New Issue