]> git.lyx.org Git - lyx.git/blobdiff - src/messages.C
last Friday's text*.C -> text_func shuffle
[lyx.git] / src / messages.C
index 77ee44a4a7c5f863e411820255ee0ea30f1af313..4302f41e658e3a24c7095d0612ff4ed3238b2a35 100644 (file)
@@ -13,6 +13,8 @@
 #include "debug.h"
 #include "support/filetools.h"
 
+using namespace lyx::support;
+
 
 #ifdef ENABLE_NLS
 
@@ -102,6 +104,9 @@ public:
 
        string const get(string const & m) const
        {
+               if (m.empty())
+                       return m;
+
                char * old = strdup(setlocale(LC_ALL, 0));
                char * n = setlocale(LC_ALL, lang_.c_str());
                const char* msg = gettext(m.c_str());
@@ -114,8 +119,6 @@ public:
 private:
        ///
        string lang_;
-       ///
-       string localedir_;
 };
 #endif