From 05a3f9b3f920807b7b7f645db6d76f01ad3959dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 4 Nov 2008 15:44:02 +0000 Subject: [PATCH] * GuiDocument.cpp: * add some unicode FIXMEs git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27249 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 0bb0dfdcd5..72ce89f656 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -202,6 +202,7 @@ docstring getModuleDescription(string const & modName) LyXModule const * const mod = moduleList[modName]; if (!mod) return _("Module not found!"); + // FIXME Unicode return translateIfPossible(from_utf8(mod->getDescription())); } @@ -2309,6 +2310,7 @@ list const 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 @@ void GuiDocument::loadModuleInfo() 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);