aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2003-05-08 22:58:57 +0800
committerRadek Doulik <rodo@src.gnome.org>2003-05-08 22:58:57 +0800
commitbbe28c9d76daf7639d7b1ff7ae2754c098cf3ef6 (patch)
tree357476e54c8b595b1acd8d5c9254cc2dad110161
parentd6092b270f5f734932d1325c99727f435e45ba49 (diff)
downloadgsoc2013-evolution-bbe28c9d76daf7639d7b1ff7ae2754c098cf3ef6.tar
gsoc2013-evolution-bbe28c9d76daf7639d7b1ff7ae2754c098cf3ef6.tar.gz
gsoc2013-evolution-bbe28c9d76daf7639d7b1ff7ae2754c098cf3ef6.tar.bz2
gsoc2013-evolution-bbe28c9d76daf7639d7b1ff7ae2754c098cf3ef6.tar.lz
gsoc2013-evolution-bbe28c9d76daf7639d7b1ff7ae2754c098cf3ef6.tar.xz
gsoc2013-evolution-bbe28c9d76daf7639d7b1ff7ae2754c098cf3ef6.tar.zst
gsoc2013-evolution-bbe28c9d76daf7639d7b1ff7ae2754c098cf3ef6.zip
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
-rw-r--r--e-util/e-i18n.h3
-rw-r--r--e-util/e-util.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/e-util/e-i18n.h b/e-util/e-i18n.h
index 2bc8b93a04..829b2480aa 100644
--- a/e-util/e-i18n.h
+++ b/e-util/e-i18n.h
@@ -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
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 4e3584a059..46be2143f7 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -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);
}