aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-unicode-i18n.h
diff options
context:
space:
mode:
authorChyla Zbigniew <chyla@src.gnome.org>2001-08-25 06:18:06 +0800
committerChyla Zbigniew <chyla@src.gnome.org>2001-08-25 06:18:06 +0800
commitb74947b0a0adc405938f3ec720e9ea6e1904de94 (patch)
tree136bec27ae574c965dbe531f0716b4318a332eae /e-util/e-unicode-i18n.h
parent17a85e8669435d6ad7d1fafe507288fee88e8122 (diff)
downloadgsoc2013-evolution-b74947b0a0adc405938f3ec720e9ea6e1904de94.tar
gsoc2013-evolution-b74947b0a0adc405938f3ec720e9ea6e1904de94.tar.gz
gsoc2013-evolution-b74947b0a0adc405938f3ec720e9ea6e1904de94.tar.bz2
gsoc2013-evolution-b74947b0a0adc405938f3ec720e9ea6e1904de94.tar.lz
gsoc2013-evolution-b74947b0a0adc405938f3ec720e9ea6e1904de94.tar.xz
gsoc2013-evolution-b74947b0a0adc405938f3ec720e9ea6e1904de94.tar.zst
gsoc2013-evolution-b74947b0a0adc405938f3ec720e9ea6e1904de94.zip
Added e-unicode-i18n.c and e-unicode-i18n.h.
* Makefile.am (libeutil_la_SOURCES): Added e-unicode-i18n.c and e-unicode-i18n.h. * e-unicode-i18n.[ch]: New files with two extra functions (e_utf8_gettext, e_utf8_dgettext) and U_() macro. Should be used instead of _() if we need UTF-8 string. svn path=/trunk/; revision=12459
Diffstat (limited to 'e-util/e-unicode-i18n.h')
-rw-r--r--e-util/e-unicode-i18n.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/e-util/e-unicode-i18n.h b/e-util/e-unicode-i18n.h
new file mode 100644
index 0000000000..e8281891bc
--- /dev/null
+++ b/e-util/e-unicode-i18n.h
@@ -0,0 +1,17 @@
+#ifndef _E_UNICODE_I18N_H
+#define _E_UNICODE_I18N_H
+
+#include <libgnome/gnome-defs.h>
+#include <libgnome/gnome-i18n.h>
+
+const char *e_utf8_gettext (const char *string);
+const char *e_utf8_dgettext (const char *domain, const char *string);
+
+#undef U_
+#ifdef GNOME_EXPLICIT_TRANSLATION_DOMAIN
+# define U_(domain,string) e_utf8_dgettext (domain, string)
+#else
+# define U_(string) e_utf8_gettext (string)
+#endif
+
+#endif /* _E_UNICODE_I18N_H */