]> 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 151c8dabec9c02e9dbfb14db43f191e3be54899a..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,7 +265,7 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const & t, docstring const & lan
 }
 
 #else
-
+#ifndef HAVE_LIBAIKSAURUS
 Thesaurus::Thesaurus()
 {
 }
@@ -276,11 +276,12 @@ Thesaurus::~Thesaurus()
 }
 
 
-Thesaurus::Meanings Thesaurus::lookup(docstring const &)
+Thesaurus::Meanings Thesaurus::lookup(docstring const &, docstring const &)
 {
        return Meanings();
 }
 
+#endif
 #endif // HAVE_LIBMYTHES
 
 // Global instance