From 08e69e57bf0e512e2d6346b84a6507ac56ecd02c Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 11 Apr 2011 18:43:53 +0000 Subject: [PATCH] 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 --- src/insets/InsetTOC.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/insets/InsetTOC.cpp b/src/insets/InsetTOC.cpp index 7c7fa7c454..b5159f937f 100644 --- a/src/insets/InsetTOC.cpp +++ b/src/insets/InsetTOC.cpp @@ -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");