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"
25 using support::setEnv;
32 static Messages & getLyXMessages()
34 static Messages lyx_messages;
42 docstring const _(string const & str)
44 return getLyXMessages().get(str);
52 // Disable, as otherwise it overrides everything else incl. the doc language
53 setEnv("LANGUAGE", "");
54 # ifdef HAVE_LC_MESSAGES
55 setlocale(LC_MESSAGES, "");
57 setlocale(LC_CTYPE, "");
58 setlocale(LC_NUMERIC, "C");
65 setlocale(LC_NUMERIC, "C");