]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #7941 (Translation of theorem-like environment names fails if language and...
authorEnrico Forestieri <forenr@lyx.org>
Sat, 17 Dec 2011 18:22:24 +0000 (18:22 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 17 Dec 2011 18:22:24 +0000 (18:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40513 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeXFeatures.cpp

index b72054d9ffd7c56ec291cea5ebf14ad82c9bb6be..6f8ce5c9caf35315dc1ff1ac62072248355a73a7 100644 (file)
@@ -1161,7 +1161,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