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()
{
}
return Meanings();
}
+
+bool Thesaurus::thesaurusAvailable(docstring const &) const
+{
+ return false;
+}
+
+#endif
#endif // HAVE_LIBMYTHES
// Global instance