]> git.lyx.org Git - lyx.git/blobdiff - src/gettext.C
Resolve link problems of tex2lyx and client by removing the extra gettext.h
[lyx.git] / src / gettext.C
index ea38cc88e9e2ade06473572ddb741e7a6259eb25..925e433363d50ab80972a4c4c70d3f5df129db64 100644 (file)
 #include "gettext.h"
 #include "messages.h"
 #include "support/environment.h"
-#include "support/docstring.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;
 
@@ -36,9 +39,9 @@ Messages & getLyXMessages()
 } // anon namespace
 
 
-string const _(string const & str)
+docstring const _(string const & str)
 {
-       return lyx::to_utf8(getLyXMessages().get(str));
+       return getLyXMessages().get(str);
 }
 
 
@@ -63,3 +66,6 @@ void locale_init()
 }
 
 #endif
+
+
+} // namespace lyx