>>>>> "Uwe" == Uwe Stöhr <[EMAIL PROTECTED]> writes:
>> Uwe, I do not understand why lang_opts is passed to babel in the
>> second if() when lyxrc.language_global_options is true. What was
>> your intention?
Uwe> When lyxrc.language_global_options is true babel is not called
Uwe> when the document language has an empty babel language.
Note that the meaning of this variable is to decide whether the
languages should be passed as
\documentclass[options]{article}
\usepackage[lang1,lang2]{babel}
or (the default)
\documentclass[options,lang1,lang2]{article}
\usepackage{babel}
You patch does not respect this interpretation, and I actually suspect
that you misinterpreted this variable.
JMarc