3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
7 * \author Jean-Marc Lasgouttes
9 * Full author contact details are available in file CREDITS.
16 #include "support/environment.h"
17 #include "support/docstring.h"
24 using lyx::support::setEnv;
29 Messages & getLyXMessages()
31 static Messages lyx_messages;
39 string const _(string const & str)
41 return lyx::to_utf8(getLyXMessages().get(str));
49 // Disable, as otherwise it overrides everything else incl. the doc language
50 setEnv("LANGUAGE", "");
51 # ifdef HAVE_LC_MESSAGES
52 setlocale(LC_MESSAGES, "");
54 setlocale(LC_CTYPE, "");
55 setlocale(LC_NUMERIC, "C");
62 setlocale(LC_NUMERIC, "C");