mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
52ff3ef4a7
commit
fd07a7753c
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user