* src/MenuBackend.C: fix localization bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15722 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2006-11-03 23:17:51 +00:00
parent 717b9e80d5
commit 05c0c1c24e

View File

@ -768,7 +768,8 @@ void expandToolbars(Menu & tomenu, Buffer const * buf)
int i = 1;
for (; cit != end; ++cit, ++i) {
docstring label = char_type(uppercase(cit->name[0])) + _(cit->name.substr(1));
docstring label = _(cit->name);
label = char_type(uppercase(label[0])) + label.substr(1);
// frontends are not supposed to turn on/off toolbars, if they can not
// update ToolbarBackend::flags. That is to say, ToolbarsBackend::flags
// should reflect the true state of toolbars.
@ -781,7 +782,7 @@ void expandToolbars(Menu & tomenu, Buffer const * buf)
if (cit->flags & ToolbarBackend::AUTO)
label += _(" (auto)");
tomenu.add(MenuItem(MenuItem::Command, label,
FuncRequest(LFUN_TOOLBAR_TOGGLE_STATE, _(cit->name))));
FuncRequest(LFUN_TOOLBAR_TOGGLE_STATE, cit->name)));
}
}