]> git.lyx.org Git - lyx.git/blobdiff - src/support/gettext.cpp
Get rid of regex_constants::match_partial
[lyx.git] / src / support / gettext.cpp
index 119c67b8ba129b6dfdf4a1b3cf6b653ea7f9711d..44dd5da57a71502c29544d45bcd5cd5725776cc2 100644 (file)
 
 #include "support/lstrings.h"
 #include "support/Messages.h"
-
-#ifdef HAVE_LOCALE_H
-#  include <locale.h>
-#endif
+#include "support/Package.h"
 
 using namespace std;
 
@@ -30,19 +27,6 @@ docstring const _(string const & str)
 }
 
 
-void locale_init()
-{
-#ifdef ENABLE_NLS
-#  ifdef HAVE_LC_MESSAGES
-       setlocale(LC_MESSAGES, "");
-#  endif
-       setlocale(LC_CTYPE, "");
-       Messages::init();
-#endif
-       setlocale(LC_NUMERIC, "C");
-}
-
-
 docstring const translateIfPossible(docstring const & name)
 {
        if (support::isAscii(name) && !name.empty())