aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Shaw <joeshaw@src.gnome.org>2001-10-30 13:03:43 +0800
committerJoe Shaw <joeshaw@src.gnome.org>2001-10-30 13:03:43 +0800
commitaab1b48eaef5314da57ca3771b0cb7c9ae403773 (patch)
tree9a3039857b2a95edaaff2e044ac188941d647f36
parentd6d55273d47b60e00f63a79ba37ebc730a19c6f5 (diff)
downloadgsoc2013-evolution-aab1b48eaef5314da57ca3771b0cb7c9ae403773.tar.gz
gsoc2013-evolution-aab1b48eaef5314da57ca3771b0cb7c9ae403773.tar.zst
gsoc2013-evolution-aab1b48eaef5314da57ca3771b0cb7c9ae403773.zip
CVS surgery
svn path=/trunk/; revision=14428
-rw-r--r--e-util/e-unicode-i18n.c59
-rw-r--r--e-util/e-unicode-i18n.h17
2 files changed, 0 insertions, 76 deletions
diff --git a/e-util/e-unicode-i18n.c b/e-util/e-unicode-i18n.c
deleted file mode 100644
index 94cf05ecd9..0000000000
--- a/e-util/e-unicode-i18n.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * e-unicode-i18n.c
- *
- * Author: Zbigniew Chyla <cyba@gnome.pl>
- *
- * Copyright (C) 2001 Ximian, Inc.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <glib.h>
-#include <gal/widgets/e-unicode.h>
-#include "e-unicode-i18n.h"
-
-static GHashTable *locale_to_utf8_hash = NULL;
-
-static const char *
-locale_to_utf8 (const char *string)
-{
- char *utf;
-
- if (locale_to_utf8_hash == NULL) {
- locale_to_utf8_hash = g_hash_table_new (&g_str_hash, &g_str_equal);
- }
-
- utf = g_hash_table_lookup (locale_to_utf8_hash, string);
- if (utf == NULL) {
- utf = e_utf8_from_locale_string (string);
- g_hash_table_insert (locale_to_utf8_hash, g_strdup (string), utf);
- }
-
- return utf;
-}
-
-const char *
-e_utf8_gettext (const char *string)
-{
- if (string == NULL) {
- return NULL;
- } else if (string[0] == '\0') {
- return "";
- } else {
- return locale_to_utf8 (gettext (string));
- }
-}
-
-const char *
-e_utf8_dgettext (const char *domain, const char *string)
-{
- if (string == NULL) {
- return NULL;
- } else if (string[0] == '\0') {
- return "";
- } else {
- return locale_to_utf8 (dgettext (domain, string));
- }
-}
diff --git a/e-util/e-unicode-i18n.h b/e-util/e-unicode-i18n.h
deleted file mode 100644
index e8281891bc..0000000000
--- a/e-util/e-unicode-i18n.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#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 */