From 9f1a845234794c772756f536f823bf17efca7d3c Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 21 Sep 2011 15:48:51 +0000 Subject: [PATCH] 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. 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 | 2 +- status.20x | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index dec953c103..0b5eef5083 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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(); diff --git a/status.20x b/status.20x index d2f87be091..ed40e2bff5 100644 --- a/status.20x +++ b/status.20x @@ -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 -- 2.39.5