Am Montag, 6. August 2012 um 12:50:41, schrieb Jürgen Spitzmüller <sp...@lyx.org> > In LaTeXFeatures::useBabel() we have a check that only loads babel if > bufferParams().language->lang() != lyxrc.default_language (and no > secondary language is used). This is wrong at least in how > lyxrc.default_language is used nowadays. Babel should not be loaded if > the document language is English and no other language is used, > independent to how lyxrc.default_language is defined (I suppose this > rc used to define the language package's default some time back, but > then transformed into the default language of new documents). > > Even though the rc has been dropped from the gui some time ago, it is > still there (set to ngerman on my side, thus I discovered this bug). > > The bug has been there for a long time, but was covered by another bug > where babel was always loaded if the language package selection was > not "none". This bug was fixed here in branch and trunk: > http://www.lyx.org/trac/changeset/566a5f2b7513ffbd75cc92f713dccccc2636f37e/lyxgit > http://www.lyx.org/trac/changeset/7d08836de647d2042c7afc4c52838184c8e80cab/lyxgit > > Attached is a patch for trunk. Objections? > > The fix needs to go to branch as well. > > Jürgen
Works here. Previously to this patch I had some difficulties on some files too. Kornel
signature.asc
Description: This is a digitally signed message part.