use E_I18N_DOMAIN
2003-05-08 Radek Doulik <rodo@ximian.com> * gal/util/e-util.c (e_gettext): use E_I18N_DOMAIN * gal/util/e-i18n.h: use e_gettext as we need our text domain to be binded svn path=/trunk/; revision=21131
This commit is contained in:
committed by
Radek Doulik
parent
d6092b270f
commit
bbe28c9d76
@ -44,14 +44,13 @@ G_BEGIN_DECLS
|
||||
extern char *e_gettext (const char *msgid);
|
||||
# undef _
|
||||
# ifdef GNOME_EXPLICIT_TRANSLATION_DOMAIN
|
||||
# define _(String) dgettext (GNOME_EXPLICIT_TRANSLATION_DOMAIN, String)
|
||||
/* No parentheses allowed here since that breaks string concatenation. */
|
||||
# define E_I18N_DOMAIN GNOME_EXPLICIT_TRANSLATION_DOMAIN
|
||||
# else
|
||||
# define _(String) dgettext (PACKAGE, String)
|
||||
/* No parentheses allowed here since that breaks string concatenation. */
|
||||
# define E_I18N_DOMAIN PACKAGE
|
||||
# endif
|
||||
# define _(String) e_gettext (String)
|
||||
# ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
# else
|
||||
|
||||
@ -1140,11 +1140,11 @@ e_gettext (const char *msgid)
|
||||
static gboolean initialized = FALSE;
|
||||
|
||||
if (!initialized) {
|
||||
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
bindtextdomain (E_I18N_DOMAIN, GNOMELOCALEDIR);
|
||||
bind_textdomain_codeset (E_I18N_DOMAIN, "UTF-8");
|
||||
initialized = TRUE;
|
||||
}
|
||||
|
||||
return dgettext (GETTEXT_PACKAGE, msgid);
|
||||
return dgettext (E_I18N_DOMAIN, msgid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user