]> git.lyx.org Git - lyx.git/blobdiff - src/Thesaurus.cpp
EmbeddedObjects.lyx, Math.lyx, UserGuide.lyx: Spanish translation updates by Ignacio
[lyx.git] / src / Thesaurus.cpp
index 7fd57d20c1e1a3df5114c2076c2f039a09091954..086ab6239df3ea5b76547baf1174550ffb8cbd0a 100644 (file)
@@ -110,7 +110,7 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const & t, docstring const &)
 bool Thesaurus::thesaurusAvailable(docstring const & lang) const
 {
        // we support English only
-       return prefixIs(lang, "en_");
+       return prefixIs(lang, from_ascii("en_"));
 }
 
 #endif // HAVE_LIBAIKSAURUS
@@ -265,6 +265,15 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const & t, docstring const & lan
 }
 
 #else
+#ifndef HAVE_LIBAIKSAURUS
+Thesaurus::Thesaurus()
+{
+}
+
+
+Thesaurus::~Thesaurus()
+{
+}
 
 
 Thesaurus::Meanings Thesaurus::lookup(docstring const &, docstring const &)
@@ -272,6 +281,7 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const &, docstring const &)
        return Meanings();
 }
 
+#endif
 #endif // HAVE_LIBMYTHES
 
 // Global instance