On 04/11/2011 06:06 AM, Kornel wrote:

Hi List,

there is a minor glitch in creating LyXHTML dokuments table of contents.

On output (xhtml) it will be translated into the gui-language, but should be in document langage.

Can you try the attached? It looks like we were trying to translate the string twice.

Richard

Index: src/insets/InsetTOC.cpp
===================================================================
--- src/insets/InsetTOC.cpp     (revision 38331)
+++ src/insets/InsetTOC.cpp     (working copy)
@@ -111,7 +111,7 @@
 
        // Title of TOC
        Language const * lang = buffer().params().language;
-       static string toctitle = N_("Table of Contents");
+       static string toctitle = "Table of Contents";
        docstring title = lang 
                        ? translateIfPossible(from_ascii(toctitle), 
lang->code())
                        : translateIfPossible(from_ascii(toctitle));

Reply via email to