./MenuBackend.C:
                docstring label = char_type(uppercase(cit->name[0])) +
_(cit->name.substr(1));

You apply _(...) to a substring that is not defined in the po files.

I guess the problem was:
                tomenu.add(MenuItem(MenuItem::Command, label,
                                    FuncRequest(LFUN_TOOLBAR_TOGGLE_STATE, 
_(cit->name))));

The last cit->name was _ed so a translated string is passed to
LFUN_TOOLBAR_TOGGLE_STATE. Could you remove _() and test for me?

The cit->name.substr(1) is indeed wrong. I guess
                docstring label = _(cit->name);
                label = char_type(label[0]) + label.substr(1);
should work. Please also test.

Beside that: Great work :-)
I wish you nice holidays. You are a LyX hero!

Thanks. I envied Abdel for his triple heros. :-)

Bo

Reply via email to