[PLUTO-ildp] Traduzione collaborativa 3 del Debian Maintenance HOWTO ... :-)

Hugh Hartmann hhartmann a fastwebnet.it
Mer 13 Nov 2013 01:18:55 CET


Un saluto "collaborativo" si dirama a tutti i partecipanti alla lista 
.... :-)

Dato l'entusiasmo dimostrato da Alessandro e Marco, il notevole 
interesse dimostrato dall'iniziativa denominata "traduzione 
collaborativa", ho pensato di riportare un altro file (menu.sgml) del 
Debian Maintenance HOWTO.

Di seguito riporto il contenuto del file file menu.sgml (capitolo menu 
dell'HOWTO), per chi volesse tradurlo ... come si vede anche questo č un 
file un po' pių grande ... :-)

[...]

menus.sgml

<chapt id=menus>Menus

<p>
Debian (or Joost Witteveen to be precise) has developed a mechanism
that enables packages to update the system menu for every
windowmanager.  This even works for KDE and GNOME.  You'll find a
detailed description by Joost in <file>/usr/doc/menu/</file>.

<p>
As an administrator you are free to add new items to the menu that
will automatically appear in all menus.  Menu files that are shipped
together with the installed packages are put into
<file>/usr/lib/menu</file>.  To add new items to the menu system, just
copy one file from there to <file>/etc/menu</file>, edit it and run
the program <prgn>update-menus</prgn>.  This will update all menu
files in question.

<p>
This even works on a per user basis.  As user you need to copy such a
menu file to <file>˜/.menu</file>, edit it and then run
<prgn>update-menus</prgn>.

<sect>Menu files

<p>
A menu file is a plain text file (did you expect anything else?).  It
is edited with any editor you want to use.  A menu file is only
processed in the way that a new menu item appears in the Debian menu
if the referring package is installed as well.  This is done by the
statement <file>?package(pkg)</file> where pkg is the name of the
package that has to be installed for this menu item to be generated.

<p>
For example, if you want to provide a new system <prgn>aumix</prgn>
call, this item should only be generated if <prgn>aumix</prgn> is
available which means that the package <file>aumix</file> has to be
installed.  In this case you would write <file>?package(aumix)</file>
at the top of the menu entry.  You can divert your menu entries to be
available under X11 only, under any real virtual text console or using
a text console (i.e. <prgn>xterm</prgn>).  You have to add
<file>:needs=vc</file> if the program requires a text console,
<file>:needs=x11</file> if the program requires X11 and
<file>:needs=text</file> if the program only requires a text terminal,
which can be an xterm as well.

<p>
Below please find a comprehensive example that makes use of this technique.

<example>
   ?package(aumix):needs=vc section=Apps/Sound title="aumix"\
	  longtitle="aumix audio mixer" command="/usr/bin/aumix"
   ?package(aumix):needs=x11 section=Apps/Sound title="aumix"\
       icon=/usr/X11R6/include/X11/pixmaps/aumix.xpm\
	  longtitle="aumix audio mixer" command="/usr/X11R6/bin/xaumix"
</example>

</sect>

</chapt>

[...]

Questo č ancora pių interessante dato che si occupa del pacchetto debian 
menu, molto importante per tutti i window manager e desktop manager come 
Gnome, Kde, Xfce, Lxde.

Good Night!
Hugh Hartmann



-- 
CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons 
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content here of is 
prohibited. Please return it immediately to the sender and delete
the message.

         Thank you

_______________________________________________
pluto-ildp mailing list
pluto-ildp a lists.pluto.it
Per gestire la propria iscrizione alla lista:
http://lists.pluto.it/listinfo/pluto-ildp




Maggiori informazioni sulla lista pluto-ildp