#include "messages.h"
#include "support/environment.h"
+
+namespace lyx {
+
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
+using support::setEnv;
+
using std::string;
-using lyx::support::setEnv;
namespace {
-Messages & getLyXMessages()
+static Messages & getLyXMessages()
{
static Messages lyx_messages;
} // anon namespace
-string const _(string const & str)
+docstring const _(string const & str)
{
return getLyXMessages().get(str);
}
}
#endif
+
+
+} // namespace lyx