X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLanguage.cpp;h=e6f7f9ed6a940a261b6a604b9c54b210936527d7;hb=cde541d785aaac9d45d636a7f9071353dd932eb6;hp=13e43c29686c36004dac55c2b370bad531e21f6e;hpb=a86de5d3c06b44feb56d697877d96be114e11f09;p=lyx.git diff --git a/src/Language.cpp b/src/Language.cpp index 13e43c2968..e6f7f9ed6a 100644 --- a/src/Language.cpp +++ b/src/Language.cpp @@ -38,6 +38,12 @@ Language const * latex_language = 0; Language const * reset_language = 0; +bool Language::isPolyglossiaExclusive() const +{ + return babel().empty() && !polyglossia().empty() && requires().empty(); +} + + docstring const Language::translateLayout(string const & m) const { if (m.empty()) @@ -196,10 +202,6 @@ bool Language::read(Lexer & lex) encoding_ = encodings.fromLyXName("iso8859-1"); LYXERR0("Unknown encoding " << encodingStr_); } - // cache translation status. Calling getMessages() directly in - // PrefLanguage::PrefLanguage() did only work if the gui language - // was set to auto (otherwise all languages would be marked as available). - translated_ = getMessages(code()).available(); return true; }