Decouple lyxrc.default_language from useBabel()

No status entry necessary
This commit is contained in:
Juergen Spitzmueller 2012-08-07 07:59:18 +02:00
parent 2d9c9ae77d
commit 33c8906f70
2 changed files with 3 additions and 3 deletions

View File

@ -297,7 +297,7 @@ bool LaTeXFeatures::useBabel() const
&& lyxrc.language_package_selection == LyXRC::LP_NONE))
return false;
return (bufferParams().language->lang() != lyxrc.default_language
return (bufferParams().language->lang() != "english"
&& !bufferParams().language->babel().empty())
|| this->hasLanguages();
}

View File

@ -119,9 +119,9 @@ public:
void setBuffer(Buffer const &);
///
BufferParams const & bufferParams() const;
/// the return value is dependent upon both LyXRC and LaTeXFeatures.
/// Do we use Babel?
bool useBabel() const;
///
/// Do we use Polyglossia?
bool usePolyglossia() const;
/// are we in a float?
bool inFloat() const { return in_float_; }