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"
23 using lyx::support::setEnv;
28 Messages & getLyXMessages()
30 static Messages lyx_messages;
38 string const _(string const & str)
40 return getLyXMessages().get(str);
48 // Disable, as otherwise it overrides everything else incl. the doc language
49 setEnv("LANGUAGE", "");
50 # ifdef HAVE_LC_MESSAGES
51 setlocale(LC_MESSAGES, "");
53 setlocale(LC_CTYPE, "");
54 setlocale(LC_NUMERIC, "C");
61 setlocale(LC_NUMERIC, "C");