+void locale_init()
+{
+# ifdef HAVE_LC_MESSAGES
+ setlocale(LC_MESSAGES, "");
+ setlocale(LC_CTYPE, "");
+ setlocale(LC_NUMERIC, "C");
+# endif
+}
+
+void gettext_init(string const & localedir)
+{
+ bindtextdomain(PACKAGE, localedir.c_str());
+ textdomain(PACKAGE);
+}
+
+