]> git.lyx.org Git - features.git/commitdiff
Backport fix for bug #7941 (Translation of theorem-like environment names fails if...
authorRichard Heck <rgheck@comcast.net>
Sat, 17 Dec 2011 21:07:02 +0000 (21:07 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 17 Dec 2011 21:07:02 +0000 (21:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40514 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeXFeatures.cpp
status.20x

index d3a3fc2c0b726c1c1fa271efd82ffb2330dfe082..aaae0075641fe089dae19983b22a61978db9dd00 100644 (file)
@@ -1135,7 +1135,7 @@ docstring const getFloatI18nPreamble(docstring const & type,
        docstring const s2 = docstring(1, 0xF0001);
        docstring const translated = (langenc == bufenc) ? name
                : from_ascii("\\inputencoding{") + texenc + from_ascii("}")
-                       + s1 + langenc + s2 + translated + s1 + bufenc + s2;
+                       + s1 + langenc + s2 + name + s1 + bufenc + s2;
 
        odocstringstream os;
        os << "\\addto\\captions" << language
index ea49385a3a510442778e72c2458b2544c8ac9bcd..4472a12e0ffc5df7a131371cef672f87093ef859 100644 (file)
@@ -88,6 +88,9 @@ What's new
 - Do not allow user to over-write a file already open. Attempting to do so
   crashes LyX (bug 7921).
 
+- Fix problem with translation of theorem environments when language and
+  buffer encoding differ (bug 7941).
+
 
 * TEX2LYX