From f565a767401d35d4161877b464b3ace9fe5ad423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 8 Jul 2005 09:52:12 +0000 Subject: [PATCH] remove the gettext markup from the TOC string again. It might cause trouble on string comparision. This does not affect the fix for bug 1870, only the string is now untranslatable again. Will find a better solution for 1.4. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10151 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 7 +++++++ src/toc.C | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 81319d9da2..7f29bcf561 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2005-07-08 Jürgen Spitzmüller + + * toc.C: remove the gettext markup from the TOC string again. + It might cause trouble on string comparision. This does not + affect the fix for bug 1870, only the string is now untranslatable again. + Will find a better solution for 1.4. + 2005-07-04 Jürgen Spitzmüller * toc.[Ch]: new method getGuiName, which is used by the frontends diff --git a/src/toc.C b/src/toc.C index e82ea5b52d..7e60349451 100644 --- a/src/toc.C +++ b/src/toc.C @@ -60,7 +60,7 @@ string const getType(string const & cmdName) { // special case if (cmdName == "tableofcontents") - return _("TOC"); + return "TOC"; else return cmdName; } @@ -101,7 +101,7 @@ TocList const getTocList(Buffer const * buf) const int depth = max(0, labeltype - textclass.maxcounter()); TocItem const item(par->id(), depth, par->asString(buf, true)); - toclist[_("TOC")].push_back(item); + toclist["TOC"].push_back(item); } // For each paragraph, traverse its insets and look for