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"
23 using lyx::support::setEnv;
31 Messages & getLyXMessages()
33 static Messages lyx_messages;
41 docstring const _(string const & str)
43 return getLyXMessages().get(str);
47 docstring const _(docstring const & str)
49 return getLyXMessages().get(lyx::to_utf8(str));
57 // Disable, as otherwise it overrides everything else incl. the doc language
58 setEnv("LANGUAGE", "");
59 # ifdef HAVE_LC_MESSAGES
60 setlocale(LC_MESSAGES, "");
62 setlocale(LC_CTYPE, "");
63 setlocale(LC_NUMERIC, "C");
70 setlocale(LC_NUMERIC, "C");