]> git.lyx.org Git - lyx.git/blobdiff - src/support/Messages.cpp
correct use of NSNumber constructor for NSTimeInterval;remove superfluous semicolons...
[lyx.git] / src / support / Messages.cpp
index d57f5a4fdac18f3922be55b73dbd2d12bb0bbf60..58dcb729b39f8cfc0dd7f46d5a547c590da91afb 100644 (file)
@@ -14,6 +14,7 @@
 #include "support/debug.h"
 #include "support/docstring.h"
 #include "support/environment.h"
+#include "support/lstrings.h"
 #include "support/Package.h"
 #include "support/unicode.h"
 
@@ -121,6 +122,14 @@ void Messages::init()
 }
 
 
+bool Messages::available() const
+{
+       string const test = languageTestString();
+       string const trans = to_utf8(get(test));
+       return !trans.empty() && trans != test;
+}
+
+
 docstring const Messages::get(string const & m) const
 {
        if (m.empty())
@@ -219,6 +228,12 @@ docstring const Messages::get(string const & m) const
        return trans;
 }
 
+
+bool Messages::available() const
+{
+       return false;
+}
+
 } // namespace lyx
 
 #endif