case MenuItem::ViewFormats:
case MenuItem::UpdateFormats:
case MenuItem::ExportFormats: {
+
+ if (!buf && cit->kind() != MenuItem::ImportFormats) {
+ tomenu.add(MenuItem(MenuItem::Command,
+ _("No Documents Open!"),
+ LFUN_NOACTION));
+ continue;
+ }
+
typedef vector<Format const *> Formats;
Formats formats;
int const action = lyxaction
.getPseudoAction(LFUN_FLOAT_LIST,
cit->second.type());
- string const label = cit->second.name() + _(" List");
+ string const label = _(cit->second.name()) + _(" List");
tomenu.add(MenuItem(MenuItem::Command,
label, action));
}
int const action = lyxaction
.getPseudoAction(LFUN_INSET_FLOAT,
cit->second.type());
- string const label = cit->second.name();
+ string const label = _(cit->second.name());
tomenu.add(MenuItem(MenuItem::Command,
label, action));
Menu file("file");
file
.add(MenuItem(MenuItem::Command, _("New...|N"), "buffer-new"))
- .add(MenuItem(MenuItem::Command, _("Open...|O"), "buffer-open"))
+ .add(MenuItem(MenuItem::Command, _("Open...|O"), "file-open"))
.add(MenuItem(MenuItem::Submenu, _("Import|I"), "import"))
.add(MenuItem(MenuItem::Command, _("Quit|Q"), "lyx-quit"))
.add(MenuItem(MenuItem::Separator))