]> git.lyx.org Git - lyx.git/blobdiff - src/gettext.C
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / gettext.C
index 6c79a241d184d72990d9e3aba9e76f102a8fc2da..6401bb616e777e9c813fdc338cd4ee0644672462 100644 (file)
 #include "support/environment.h"
 #include "support/docstring.h"
 
+
+namespace lyx {
+
 #ifdef HAVE_LOCALE_H
 #  include <locale.h>
 #endif
 
-using lyx::support::setEnv;
-using lyx::docstring;
+using support::setEnv;
 
 using std::string;
 
 
 namespace {
 
-Messages & getLyXMessages()
+static Messages & getLyXMessages()
 {
        static Messages lyx_messages;
 
@@ -44,12 +46,6 @@ docstring const _(string const & str)
 }
 
 
-docstring const _(docstring const & str)
-{
-       return getLyXMessages().get(lyx::to_utf8(str));
-}
-
-
 #ifdef ENABLE_NLS
 
 void locale_init()
@@ -71,3 +67,6 @@ void locale_init()
 }
 
 #endif
+
+
+} // namespace lyx