]> git.lyx.org Git - features.git/commitdiff
Change the language of the document only if is 'default'.
authorDekel Tsur <dekelts@tau.ac.il>
Fri, 1 Aug 2003 16:10:27 +0000 (16:10 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Fri, 1 Aug 2003 16:10:27 +0000 (16:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7479 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/lyx2lyx/lyxconvert_216.py

index 5d2349d13c96b0f261ab5f67d6b4ed7209ec4d16..b2f7719ea61613d3a4c6e16893bfb867af597763 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-01  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * lyx2lyx/lyxconvert_216.py (convert): Change the language of the
+       document only if is 'default'.
+
 2003-07-23  Rod Pinna  <rpinna@civil.uwa.edu.au>
 
        * layouts/elsart.layout: change MaxCounter to Section, rather than
index bb500c9f89bf8e634bb3dab88029984dd02526ea..99f715fdedc5758cd6682a3c44ad8a419bc7f6b4 100644 (file)
@@ -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):