I can't really see the patch on my smartphone, but why not drop the variable ? The default language can be set through the default.lyx template.
JMarc "Jürgen Spitzmüller" <sp...@lyx.org> a écrit : >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 -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.