]> git.lyx.org Git - lyx.git/blobdiff - src/support/gettext.cpp
prepare Qt 5.6 builds
[lyx.git] / src / support / gettext.cpp
index 1414fa58121b9832626cc56d40a5f78b029c45c0..44dd5da57a71502c29544d45bcd5cd5725776cc2 100644 (file)
 #include "support/Messages.h"
 #include "support/Package.h"
 
-#ifdef HAVE_LOCALE_H
-#  include <locale.h>
-#endif
-
 using namespace std;
 
 namespace lyx {
@@ -31,21 +27,6 @@ docstring const _(string const & str)
 }
 
 
-void locale_init()
-{
-#ifdef ENABLE_NLS
-#  ifdef HAVE_LC_MESSAGES
-       setlocale(LC_MESSAGES, "");
-#  endif
-       setlocale(LC_CTYPE, "");
-       if (support::packageInitialized()) {
-               Messages::init();
-       }
-#endif
-       setlocale(LC_NUMERIC, "C");
-}
-
-
 docstring const translateIfPossible(docstring const & name)
 {
        if (support::isAscii(name) && !name.empty())