mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
Pass languages also if babel is provided by class.
This is needed to load all used languages.
This commit is contained in:
parent
abaccece15
commit
1cf1eaf1fe
@ -1697,7 +1697,7 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
|
|||||||
bool const use_babel = features.useBabel() && !features.isProvided("babel");
|
bool const use_babel = features.useBabel() && !features.isProvided("babel");
|
||||||
bool const use_polyglossia = features.usePolyglossia();
|
bool const use_polyglossia = features.usePolyglossia();
|
||||||
bool const global = lyxrc.language_global_options;
|
bool const global = lyxrc.language_global_options;
|
||||||
if (use_babel || (use_polyglossia && global)) {
|
if (features.useBabel() || (use_polyglossia && global)) {
|
||||||
language_options << features.getBabelLanguages();
|
language_options << features.getBabelLanguages();
|
||||||
if (!language->babel().empty()) {
|
if (!language->babel().empty()) {
|
||||||
if (!language_options.str().empty())
|
if (!language_options.str().empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user