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:
Richard Heck 2011-04-11 18:43:53 +00:00
parent f061d66c2f
commit 08e69e57bf

View File

@ -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");