bool Thesaurus::thesaurusAvailable(docstring const & lang) const
{
// we support English only
- return (prefixIs(lang, "en_"));
+ return prefixIs(lang, from_ascii("en_"));
}
#endif // HAVE_LIBAIKSAURUS
}
#else
-
+#ifndef HAVE_LIBAIKSAURUS
Thesaurus::Thesaurus()
{
}
}
-Thesaurus::Meanings Thesaurus::lookup(docstring const &)
+Thesaurus::Meanings Thesaurus::lookup(docstring const &, docstring const &)
{
return Meanings();
}
+
+bool Thesaurus::thesaurusAvailable(docstring const & lang) const
+{
+ return false;
+}
+
+#endif
#endif // HAVE_LIBMYTHES
// Global instance