From: Dekel Tsur Date: Fri, 1 Aug 2003 16:10:27 +0000 (+0000) Subject: Change the language of the document only if is 'default'. X-Git-Tag: 1.6.10~16354 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=195c4e14c3bf3d6515c301fe4437e09670821e24;p=features.git Change the language of the document only if is 'default'. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7479 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 5d2349d13c..b2f7719ea6 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-08-01 Dekel Tsur + + * lyx2lyx/lyxconvert_216.py (convert): Change the language of the + document only if is 'default'. + 2003-07-23 Rod Pinna * layouts/elsart.layout: change MaxCounter to Section, rather than diff --git a/lib/lyx2lyx/lyxconvert_216.py b/lib/lyx2lyx/lyxconvert_216.py index bb500c9f89..99f715fded 100644 --- a/lib/lyx2lyx/lyxconvert_216.py +++ b/lib/lyx2lyx/lyxconvert_216.py @@ -263,7 +263,8 @@ def update_language(header): header.append('\\language english') return # This is the lyx behaviour: defaults to english - header[i] = '\\language english' + if string.split(header[i])[1] == 'default': + header[i] = '\\language english' return def convert(header,body):