mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Decouple lyxrc.default_language from useBabel()
No status entry necessary
This commit is contained in:
parent
2d9c9ae77d
commit
33c8906f70
@ -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();
|
||||
}
|
||||
|
@ -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_; }
|
||||
|
Loading…
Reference in New Issue
Block a user