diff lib/misc.c @ 290:6e255984c0b0

2003-10-18 Brian Masney <masneyb@gftp.org> * lib/misc.c lib/gftp.h src/text/gftp-text.c src/gtk/gftp-gtk.c - added gftp_locale_init(). * src/gtk/Makefile.am src/text/Makefile.am - removed declaration of LOCALE_DIR * lib/Makefile.am - added declaration of LOCALE_DIR
author masneyb
date Sat, 18 Oct 2003 15:21:39 +0000
parents 5f66f09e5194
children 51725086634d
line wrap: on
line diff
--- a/lib/misc.c	Sat Oct 18 14:54:53 2003 +0000
+++ b/lib/misc.c	Sat Oct 18 15:21:39 2003 +0000
@@ -1283,3 +1283,21 @@
 #endif
 }
 
+
+void
+gftp_locale_init (void)
+{
+#ifdef HAVE_GETTEXT
+
+  setlocale (LC_ALL, "");
+  textdomain ("gftp");
+
+#if GLIB_MAJOR_VERSION > 1
+  bind_textdomain_codeset ("gftp", "UTF-8");
+#endif
+
+  textdomain ("gftp");
+
+#endif
+}
+