From: Enrico Forestieri Date: Sat, 17 Dec 2011 18:22:24 +0000 (+0000) Subject: Fix bug #7941 (Translation of theorem-like environment names fails if language and... X-Git-Tag: 2.1.0beta1~2187 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=38f11062552211fb313dc2738ef64d0ba4e26c27;p=lyx.git Fix bug #7941 (Translation of theorem-like environment names fails if language and buffer encoding differ) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40513 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index b72054d9ff..6f8ce5c9ca 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -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