X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fgettext.cpp;h=44dd5da57a71502c29544d45bcd5cd5725776cc2;hb=dae8555234f0e5c8358b91c307d91b219c664617;hp=119c67b8ba129b6dfdf4a1b3cf6b653ea7f9711d;hpb=fa1ee437e5eb5bb218440ef33b81cb563cf21f3f;p=lyx.git diff --git a/src/support/gettext.cpp b/src/support/gettext.cpp index 119c67b8ba..44dd5da57a 100644 --- a/src/support/gettext.cpp +++ b/src/support/gettext.cpp @@ -15,10 +15,7 @@ #include "support/lstrings.h" #include "support/Messages.h" - -#ifdef HAVE_LOCALE_H -# include -#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())