]> git.lyx.org Git - lyx.git/blobdiff - src/toc.C
Two fixes involving RtL text drawing
[lyx.git] / src / toc.C
index d207636526dfc41171830281c734ef064358689a..0a17d5a2c175585dc6818505331066651e1812bb 100644 (file)
--- a/src/toc.C
+++ b/src/toc.C
@@ -17,7 +17,6 @@
 #include "bufferparams.h"
 #include "FloatList.h"
 #include "funcrequest.h"
-#include "gettext.h"
 #include "LyXAction.h"
 #include "paragraph.h"
 #include "pariterator.h"
@@ -61,20 +60,20 @@ string const getType(string const & cmdName)
 {
        // special case
        if (cmdName == "tableofcontents")
-               return _("TOC");
+               return "TOC";
        else
                return cmdName;
 }
 
 
-string const getGuiName(string const & cmdName, Buffer const & buffer)
+string const getGuiName(string const & type, Buffer const & buffer)
 {
        FloatList const & floats =
                buffer.params().getLyXTextClass().floats();
-       if (floats.typeExist(cmdName))
-               return _(floats.getType(cmdName).name());
+       if (floats.typeExist(type))
+               return floats.getType(type).name();
        else
-               return getType(cmdName);
+               return type;
 }
 
 
@@ -130,7 +129,7 @@ TocList const getTocList(Buffer const & buf)
                                tocstring = pit->asString(buf, true);
                        TocItem const item(pit->id(), toclevel - min_toclevel,
                                           tocstring);
-                       toclist[_("TOC")].push_back(item);
+                       toclist["TOC"].push_back(item);
                }
        }
        return toclist;