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"
26 using support::setEnv;
33 static Messages & getLyXMessages()
35 static Messages lyx_messages;
43 docstring const _(string const & str)
45 return getLyXMessages().get(str);
53 // Disable, as otherwise it overrides everything else incl. the doc language
54 setEnv("LANGUAGE", "");
55 # ifdef HAVE_LC_MESSAGES
56 setlocale(LC_MESSAGES, "");
58 setlocale(LC_CTYPE, "");
59 setlocale(LC_NUMERIC, "C");
66 setlocale(LC_NUMERIC, "C");