+ docstring label;
+ if (!floatName.empty())
+ label = _(floatName);
+ // BUG3633: listings is not a proper float so its name
+ // is not shown in floatlist.
+ else if (cit->first == "equation")
+ label = _("List of Equations");
+ else if (cit->first == "index")
+ label = _("List of Indexes");
+ else if (cit->first == "listing")
+ label = _("List of Listings");
+ else if (cit->first == "marginalnote")
+ label = _("List of Marginal notes");
+ else if (cit->first == "note")
+ label = _("List of Notes");
+ else if (cit->first == "footnote")
+ label = _("List of Foot notes");
+ // this should not happen now, but if something else like
+ // listings is added later, this can avoid an empty menu name.
+ else
+ label = _("Other floats");
+ MenuItem item(MenuItem::Submenu, label);