mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix XHTML TOC translation per a suggestion of Georg's.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38333 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f061d66c2f
commit
08e69e57bf
@ -110,11 +110,8 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams const & op) const
|
||||
xs << html::StartTag("div", "class='toc'");
|
||||
|
||||
// Title of TOC
|
||||
Language const * lang = buffer().params().language;
|
||||
static string toctitle = N_("Table of Contents");
|
||||
docstring title = lang
|
||||
? translateIfPossible(from_ascii(toctitle), lang->code())
|
||||
: translateIfPossible(from_ascii(toctitle));
|
||||
docstring title = buffer().B_(toctitle);
|
||||
xs << html::StartTag("div", tocattr)
|
||||
<< title
|
||||
<< html::EndTag("div");
|
||||
|
Loading…
Reference in New Issue
Block a user