}
+docstring getModuleCategory(string const & modName)
+{
+ LyXModule const * const mod = theModuleList[modName];
+ if (!mod)
+ return docstring();
+ return from_utf8(mod->category());
+}
+
+
docstring getModuleDescription(string const & modName)
{
LyXModule const * const mod = theModuleList[modName];
desc += _("Module provided by document class.");
}
+ docstring cat = getModuleCategory(modName);
+ if (!cat.empty()) {
+ if (!desc.empty())
+ desc += "\n";
+ desc += bformat(_("Category: %1$s."), cat);
+ }
+
vector<string> pkglist = getPackageList(modName);
docstring pkgdesc = formatStrVec(pkglist, _("and"));
if (!pkgdesc.empty()) {