[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian Menu policy leads to confusion



On Mon, Jan 23, 2006 at 11:40:33PM +0200, Linas Zvirblis wrote:
> Bill Allombert wrote:
> 
> >You are correct in that menu handle third level sections fine.
> >What is missing is the support for automatically flattening the 
> >third level sections if they are nearly empty.
> 
> Would that not cause "I installed one more package and menu changed all 
> of the sudden" confusion among users?

The menu will change in a very minor way and this will be configurable.
For example, mozilla will move from /Apps/Net to Apps/Net/Browser, so
the way to find it will be the same.

> >We could just use the translate_menus mechanism to automatically
> >replace Apps by Applications. Just add the following lines to the file 
> >/etc/menu-methods/translate_menus
> >
> >subtranslate section->section
> >  Apps/       Applications/
> >endtranslate
> >
> >and menu will apply the changes to all menu entries at once.
> 
> This did not preserve the deeper levels. Only writing a rule for each 
> sub level (Apps/Editors to Applications/Editors, for example) worked for 
> me. Is this the intended? Oh, and how do I deal with spaces? 
> "i->skip_space()" seem to interfere with them, but I did not read the 
> entire code.

Try

translate section->section
  Apps/Database   "Apps/Data management"
endtranslate

substitute section->section
  Apps/        Applications/
endtranslate

Cheers,
Bill.



Reply to: