[EMAIL PROTECTED] wrote:
Author: spitz
Date: Tue Nov  4 16:44:02 2008
New Revision: 27249

URL: http://www.lyx.org/trac/changeset/27249
Log:
* GuiDocument.cpp:
        * add some unicode FIXMEs

If the description should originally have been a docstring, I suppose it can be made (or read) that way. I actually asked about this a long time ago, when first doing the modules: whether these strings should be docstrings, which (I guess) depends upon the encoding of the layout files themselves. But I did it this way mostly because layouts seem to be done the same way. Still, it's easy enough to change it (maybe after 1.6.0 is out).

rh

Modified:
    lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp

Modified: lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp
URL: 
http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp?rev=27249
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiDocument.cpp Tue Nov  4 16:44:02 2008
@@ -202,6 +202,7 @@
        LyXModule const * const mod = moduleList[modName];
        if (!mod)
                return _("Module not found!");
+       // FIXME Unicode
        return translateIfPossible(from_utf8(mod->getDescription()));
 }
@@ -2309,6 +2310,7 @@
                m.id = *it;
                LyXModule * mod = moduleList[*it];
                if (mod)
+                       // FIXME Unicode
                        m.name = 
toqstr(translateIfPossible(from_utf8(mod->getName())));
else m.name = toqstr(*it) + toqstr(" (") + qt_("Not Found") + toqstr(")");
@@ -2464,9 +2466,12 @@
        for (; it != end; ++it) {
                modInfoStruct m;
                m.id = it->getID();
+               // FIXME Unicode
                m.name = toqstr(translateIfPossible(from_utf8(it->getName())));
                // this is supposed to give us the first sentence of the 
description
-               QString desc = 
toqstr(translateIfPossible(from_utf8(it->getDescription())));
+               // FIXME Unicode
+               QString desc =
+                       
toqstr(translateIfPossible(from_utf8(it->getDescription())));
                int const pos = desc.indexOf(".");
                if (pos > 0)
                        desc.truncate(pos + 1);


_______________________________________________
Cvslog mailing list
[EMAIL PROTECTED]
http://www.lyx.org/mailman/listinfo/cvslog

Reply via email to