]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.cpp
Fix wrongly copy-pasted entries in SpellcheckerUi.ui
[lyx.git] / src / insets / InsetTOC.cpp
index 7c7fa7c454279272d4b9b053d7de740fa6b8f8c1..b5159f937fda1edbcce1b7f62cae509110900b29 100644 (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");