Backport fix for 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/branches/BRANCH_2_0_X@40514 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-12-17 21:07:02 +00:00
parent 52ff3ef4a7
commit fd07a7753c
2 changed files with 4 additions and 1 deletions

View 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

View 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