How to create the XML input
To create the XML input for Easy Menu just follow those rules and see the testmenu.xml example file.
- Escape all the XML reserved charachters (&, <, >) or enclose the string and text data in a CDATA section
- Put in the ./icons/ folder all the PNG icons called in the XML input
- Set the encoding to UTF-8
XML input example
Here follows the example XML input with a detailed description for all the tags. Descriptions are not repeated for the same tag.
The XML input must be structured on orderly tags as indicated, except for those tags that have a blu symbol at their left. There are four types of tags:
- Tag without any blue symbols at their left must be inserted once
- Tag with an asterisk (*) can either be left out or be inserted multiple times
- Tag with a question mark (?) can either be left out or be inserted only once
- Tag with a plus sign (+) can be inserted multiple times but at least once
The principles of orderly placement of different tags applies also to the specific child list of individual tags.
Example XML:
Example XML:
|
<?xml version="1.0" encoding="UTF-8"?>
|
|||||||||
|
<easy-menu>
|
|||||||||
|
<extension short-name="test-menu" version="0.0.9">
|
|||||||||
|
<id>{84f12230-d3b4-4fd2-8e57-077f94ea76eb}</id>
|
|||||||||
|
<name>A test menu</name>
|
|||||||||
|
<author-name>Test Author </author-name>
|
|||||||||
|
<author-email>author@test.com</author-email>
|
|||||||||
| ? |
<author-url>http://www.author.com/about</author-url>
|
||||||||
|
<homepageURL>http://www.author.com/test-menu</homepageURL>
|
|||||||||
| ? |
<icon>testlogo</icon>
|
||||||||
|
<en-description><![CDATA[Brief English description of the menu. This menu is for testing purposes only, as an example usage of the program Easy Menu.]]></en-description>
|
|||||||||
| ? |
<en-icon-license><![CDATA[test01.png, test02.png owned by Test Inc.
test.png released under the terms of the CC-by-sa license]]></en-icon-license>
|
||||||||
| + |
<localized locale="en-US">
|
||||||||
|
<locale-name>English (US)</locale-name>
|
|||||||||
|
<description><![CDATA[Brief en-US description of the menu. This menu is for testing purposes only, as an example usage of the program Easy Menu.]]></description>
|
|||||||||
| ? |
<menu-changelog>
|
||||||||
| + |
<changelog-item version="0.0.9" date="2008-06-12"><![CDATA[ - Added sub menu]]></changelog-item>
|
||||||||
| + |
<changelog-item version="0.0.8" date="2008-04-12"><![CDATA[ - First public release]]></changelog-item>
|
||||||||
|
</menu-changelog>
|
|||||||||
| ? |
<about>
|
||||||||
|
<changelog>Changelog</changelog>
|
|||||||||
|
<license>License</license>
|
|||||||||
|
<created-by>Created by</created-by>
|
|||||||||
|
<homepage>Website</homepage>
|
|||||||||
|
<description>Description</description>
|
|||||||||
|
</about>
|
|||||||||
| ? |
<options>
|
||||||||
|
<options-text>Options...</options-text>
|
|||||||||
|
<appearance>Appearance</appearance>
|
|||||||||
|
<menu>Menu</menu>
|
|||||||||
|
<menu-to-show>Which menu to show</menu-to-show>
|
|||||||||
|
<custom-pages>Custom pages</custom-pages>
|
|||||||||
|
<where-to-show>Where to show the menus</where-to-show>
|
|||||||||
|
<main-menu>In the main menu bar</main-menu>
|
|||||||||
|
<tools-menu>In the Tools menu</tools-menu>
|
|||||||||
|
<context-menu>In the context menu</context-menu>
|
|||||||||
|
<show-logo>Show logo in main menu bar</show-logo>
|
|||||||||
|
<open-new-window>Open all links in a new tab</open-new-window>
|
|||||||||
|
<level>Level</level>
|
|||||||||
|
<sub-menus-to-show>Sub-menus to show</sub-menus-to-show>
|
|||||||||
|
<custom-pages-name>Fill in order to show the custom links</custom-pages-name>
|
|||||||||
|
</options>
|
|||||||||
|
</localized>
|
|||||||||
| + |
<localized locale="it-IT">
|
||||||||
|
<locale-name>Italian (IT)</locale-name>
|
|||||||||
| ? |
<name>Un menu di test</name>
|
||||||||
|
<description><![CDATA[Breve descrizione it-IT del menu. Questo menu ha solo finalità di testing del progamma Easy Menu]]></description>
|
|||||||||
| ? |
<menu-changelog>
|
||||||||
| + |
<changelog-item version="0.0.9" date="2008-06-12"><![CDATA[ - Aggiunto sottomenu]]></changelog-item>
|
||||||||
| + |
<changelog-item version="0.0.8" date="2008-04-12"><![CDATA[ - Prima release pubblica]]></changelog-item>
|
||||||||
|
</menu-changelog>
|
|||||||||
|
</localized>
|
|||||||||
| ? |
<debian>
|
||||||||
|
<package-name>test-menu</package-name>
|
|||||||||
|
<maintainer>Maintainer <maintainer@distro.org></maintainer>
|
|||||||||
|
<orig-maintainer><![CDATA[Original Maintainer <orig_maintainer@distro.org>]]></orig-maintainer>
|
|||||||||
|
<watch-dir>http://www.author.com/test-menu/sources/</watch-dir>
|
|||||||||
|
<one-line-desc>Brief en-US description max 60 characters</one-line-desc>
|
|||||||||
|
<bzr-branch>https://code.launchpad.net/~ubuntu-dev/firefox-extensions/
test-menu.ubuntu</bzr-branch>
|
|||||||||
|
<deb-changelog><![CDATA[test-menu (0.0.9-0ubuntu1) hardy; urgency=low
New upstream version (LP: #222222) -- Original Maintainer <orig_maintainer@distro.org> Thu, 12 Jun 2008 13:00:25 +0200 test-menu (0.0.8-0ubuntu1) hardy; urgency=low Initial release (LP: #111111) -- Original Maintainer <orig_maintainer@distro.org> Sat, 12 Apr 2008 10:00:48 +0200]]></deb-changelog>
|
|||||||||
|
</debian>
|
|||||||||
|
</extension>
|
|||||||||
|
<main-menu>
|
|||||||||
| ? |
<icon>test0</icon>
|
||||||||
| + |
<itemname locale="en-US" ak="T">Test Menu</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="M">Menu di Test</itemname>
|
||||||||
| * |
<tooltiptext locale="en-US">An example menu</tooltiptext>
|
||||||||
| * |
<tooltiptext locale="it-IT">Un menu di esempio</tooltiptext>
|
||||||||
|
<content>
|
|||||||||
| * |
<menuitem>
|
||||||||
| ? |
<style bold="true" />
|
||||||||
| ? |
<url>http://easymenu.googlepage.com/</url>
|
||||||||
| + |
<itemname locale="en-US" ak="E">Easy Menu</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="E">Easy Menu</itemname>
|
||||||||
| * |
<tooltiptext locale="en-US">An example item</tooltiptext>
|
||||||||
| * |
<tooltiptext locale="it-IT">Un elemento di esempio</tooltiptext>
|
||||||||
|
</menuitem>
|
|||||||||
| * |
<menuitem>
|
||||||||
| ? |
<url>https://launchpad.net/easymenu</url>
|
||||||||
| + |
<itemname locale="en-US" ak="L">Easy Menu on Launchpad</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="L">Easy Menu su Launchpad</itemname>
|
||||||||
|
</menuitem>
|
|||||||||
| * |
<menuseparator />
|
||||||||
| * |
<mailmenu icons="true">
|
||||||||
| ? |
<bgcolor border="b6a391">fea</bgcolor>
|
||||||||
| ? |
<style bold="true" color="cf1d1d" bg_col="ffc" />
|
||||||||
|
<url>http://mail.python.org/pipermail/mailman-announce/</url>
|
|||||||||
| + |
<itemname locale="en-US" ak="M">Mailman Mailing list</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="M">Mailing list di Mailman</itemname>
|
||||||||
| * |
<tooltiptext locale="en-US">An example mail menu</tooltiptext>
|
||||||||
| * |
<tooltiptext locale="it-IT">Un 'mail menu' di esempio</tooltiptext>
|
||||||||
| + |
<label locale="en-US" bold="true">Last month ordered by:</label>
|
||||||||
| + |
<label locale="it-IT" bold="true">Ultimo mese ordinato per:</label>
|
||||||||
| + |
<thread locale="en-US" ak="T">Thread</thread>
|
||||||||
| + |
<thread locale="it-IT" ak="D">Discussione</thread>
|
||||||||
| + |
<subject locale="en-US" ak="S">Subject</subject>
|
||||||||
| + |
<subject locale="it-IT" ak="S">Soggetto</subject>
|
||||||||
| + |
<author locale="en-US" ak="A">Author</author>
|
||||||||
| + |
<author locale="it-IT" ak="A">Autore</author>
|
||||||||
| + |
<date locale="en-US" ak="D">Date</date>
|
||||||||
| + |
<date locale="it-IT" ak="a">Data</date>
|
||||||||
|
</mailmenu>
|
|||||||||
| * |
<menu>
|
||||||||
| ? |
<bgcolor border="b6a391">cdf</bgcolor>
|
||||||||
| ? |
<style bg_col="cdf" />
|
||||||||
| ? |
<icon>test1</icon>
|
||||||||
| + |
<itemname locale="en-US" ak="S">A Sub Menu</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="S">Un Sottomenu</itemname>
|
||||||||
|
<content>
|
|||||||||
| * |
<menuitem>
|
||||||||
| ? |
<icon>test1</icon>
|
||||||||
| ? |
<url>http://www.ubuntu.com/</url>
|
||||||||
| + |
<itemname locale="en-US" ak="U">Ubuntu Linux</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="U">Ubuntu Linux</itemname>
|
||||||||
|
</menuitem>
|
|||||||||
| * |
<menu>
|
||||||||
| + |
<itemname locale="en-US" ak="S">Another Sub Menu</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="S">Un ulteriore Sottomenu</itemname>
|
||||||||
|
<content>
|
|||||||||
| * |
<menuitem>
|
||||||||
| ? |
<icon>test1</icon>
|
||||||||
| ? |
<url>http://addons.mozilla.org/</url>
|
||||||||
| + |
<itemname locale="en-US" ak="A">Mozilla Addons site</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="A">Sito degli Addons di Mozilla</itemname>
|
||||||||
|
</menuitem>
|
|||||||||
|
</content>
|
|||||||||
|
</menu>
|
|||||||||
|
</content>
|
|||||||||
|
</menu>
|
|||||||||
| * |
<menuseparator />
|
||||||||
| * |
<customitem>
|
||||||||
|
<url>https://launchpad.net/~</url>
|
|||||||||
| + |
<itemname locale="en-US" ak="P">Personal Page on Launchpad</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="P">Profilo su Launchpad</itemname>
|
||||||||
| * |
<tooltiptext locale="en-US">An example custom item</tooltiptext>
|
||||||||
| * |
<tooltiptext locale="it-IT">Una voce personalizzata di esempio</tooltiptext>
|
||||||||
| + |
<customlabel locale="en-US">Insert the name of the personal page on Launchpad</customlabel>
|
||||||||
| + |
<customlabel locale="it-IT">Inserire il nome della pagina personale su Launchpad</customlabel>
|
||||||||
|
</customitem>
|
|||||||||
| * |
<searchitem>
|
||||||||
|
<url>https://launchpad.net/+search?field.text=</url>
|
|||||||||
| + |
<itemname locale="en-US" ak="S">Launchpad search example</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="r">Esempio di ricerca su Launchpad</itemname>
|
||||||||
| * |
<tooltiptext locale="en-US">An example search item</tooltiptext>
|
||||||||
| * |
<tooltiptext locale="it-IT">Una voce di ricerca di esempio</tooltiptext>
|
||||||||
| + |
<searchlabel locale="en-US">Search on Launchpad site</searchlabel>
|
||||||||
| + |
<searchlabel locale="it-IT">Ricerca sul sito Launchpad</searchlabel>
|
||||||||
|
</searchitem>
|
|||||||||
| * |
<menuitem>
|
||||||||
| ? |
<icon>test2</icon>
|
||||||||
| ? |
<url>http://www.python.org/</url>
|
||||||||
| + |
<itemname locale="en-US" ak="y">Python.org</itemname>
|
||||||||
| + |
<itemname locale="it-IT" ak="y">Python.org</itemname>
|
||||||||
|
</menuitem>
|
|||||||||
|
</content>
|
|||||||||
|
</main-menu>
|
|||||||||
|
</easy-menu>
|