1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2001 The LyX Team.
9 * ====================================================== */
15 #include "support/LAssert.h"
17 #include <boost/scoped_ptr.hpp>
25 Messages & getLyXMessages()
27 static Messages lyx_messages;
35 char const * _(char const * str)
37 return getLyXMessages().get(str).c_str();
41 string const _(string const & str)
43 return getLyXMessages().get(str);
51 # ifdef HAVE_LC_MESSAGES
52 setlocale(LC_MESSAGES, "");
54 setlocale(LC_CTYPE, "");
55 setlocale(LC_NUMERIC, "C");
62 setlocale(LC_NUMERIC, "C");