aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-unicode-i18n.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2001-09-17 12:32:38 +0800
committernobody <nobody@localhost>2001-09-17 12:32:38 +0800
commitb741f2e9e395de5408edea20ff3c4d4731439079 (patch)
tree6f31e70927858f2bafcfc481e337a665090bdb8e /e-util/e-unicode-i18n.c
parent169d9ae19a0eb165edc757eca753a757a02f60f7 (diff)
downloadgsoc2013-evolution-GNOME_SPELL_0_3.tar
gsoc2013-evolution-GNOME_SPELL_0_3.tar.gz
gsoc2013-evolution-GNOME_SPELL_0_3.tar.bz2
gsoc2013-evolution-GNOME_SPELL_0_3.tar.lz
gsoc2013-evolution-GNOME_SPELL_0_3.tar.xz
gsoc2013-evolution-GNOME_SPELL_0_3.tar.zst
gsoc2013-evolution-GNOME_SPELL_0_3.zip
This commit was manufactured by cvs2svn to create tagGNOME_SPELL_0_3
'GNOME_SPELL_0_3'. svn path=/tags/GNOME_SPELL_0_3/; revision=12879
Diffstat (limited to 'e-util/e-unicode-i18n.c')
-rw-r--r--e-util/e-unicode-i18n.c59
1 files changed, 0 insertions, 59 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));
- }
-}