]> git.lyx.org Git - lyx.git/blobdiff - src/messages.C
last Friday's text*.C -> text_func shuffle
[lyx.git] / src / messages.C
index 663da2a8f2317413cfcb224b971d6c2aa04b7ac0..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());