Martin Vermeer <martin.verm...@tkk.fi> writes: >> IMO the name should be coded in the layout file. >> >> Here is how it could work: >> >> 1/ when using getStatus(), the lfun validator uses FuncStatus::message to >> set a special string that could be >> - the name of the optional argument for the current layout >> - the name of the current inset >> - anything else that could be useful >> >> 2/ when the menu item string contains %s, the menu code replaces this %s >> with the message returned by above. >> >> With this, we have a way to have menu entry names that depend on >> context. > > Definitely. Any implementation ideas?
Not beyond what I wrote... For layouts accepting several optional arguments, I guess we'll need to come up with some trick. There may be an issue with menu shortcuts too. JMarc