]> git.lyx.org Git - features.git/commitdiff
When changing the document language, also change the language of the
authorEnrico Forestieri <forenr@lyx.org>
Wed, 21 Sep 2011 15:48:51 +0000 (15:48 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 21 Sep 2011 15:48:51 +0000 (15:48 +0000)
text which is not explicitly marked in a different language, irrespective
of the multilingual status, except for LTR<=>RTL changes.
See discussion in this thread:
http://thread.gmane.org/gmane.editors.lyx.devel/138380

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39721 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp
status.20x

index dec953c103347d6b18bba09175d433174f6ce3ed..0b5eef50838b7fc437d048c417043038e6bde7c2 100644 (file)
@@ -1889,7 +1889,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                Language const * newL = languages.getLanguage(argument);
                if (!newL || oldL == newL)
                        break;
-               if (oldL->rightToLeft() == newL->rightToLeft() && !buffer_.isMultiLingual()) {
+               if (oldL->rightToLeft() == newL->rightToLeft()) {
                        cur.recordUndoFullDocument();
                        buffer_.changeLanguage(oldL, newL);
                        cur.setCurrentFont();
index d2f87be091ddb1579fca7e253d3a11b95b99e27e..ed40e2bff52d3eec75ed51d56843770e1ebd5542 100644 (file)
@@ -44,6 +44,10 @@ What's new
   in the document body (e.g., through \input or \insertgraphics) are
   included in the archive.
 
+- When changing the document language, also change the language of the
+  text which is not explicitly marked in a different language, irrespective
+  of the multilingual status, except for LTR<=>RTL changes.
+
 
 * DOCUMENTATION AND LOCALIZATION