]> git.lyx.org Git - lyx.git/blobdiff - src/messages.C
cosmetic fix
[lyx.git] / src / messages.C
index f2c0fcaecf38efa98700dbac278d167905c08c45..4302f41e658e3a24c7095d0612ff4ed3238b2a35 100644 (file)
@@ -13,6 +13,8 @@
 #include "debug.h"
 #include "support/filetools.h"
 
+using namespace lyx::support;
+
 
 #ifdef ENABLE_NLS
 
@@ -37,7 +39,7 @@ string const & getLocaleDir()
 #include <locale>
 
 // This version of the Pimpl utilizes the message capability of
-// libstdc++ that is distributed with GNU G++
+// libstdc++ that is distributed with GNU G++.
 class Messages::Pimpl {
 public:
        typedef std::messages<char>::catalog catalog;
@@ -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