+
+
+#ifdef ENABLE_NLS
+
+void locale_init()
+{
+ // Disable, as otherwise it overrides everything else incl. the doc language
+ setEnv("LANGUAGE", "");
+# ifdef HAVE_LC_MESSAGES
+ setlocale(LC_MESSAGES, "");
+# endif
+ setlocale(LC_CTYPE, "");
+ setlocale(LC_NUMERIC, "C");
+}
+
+#else // ENABLE_NLS
+
+void locale_init()
+{
+ setlocale(LC_NUMERIC, "C");
+}
+
+#endif
+
+
+} // namespace lyx