<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.joaomorais.com &#187; Items</title>
	<atom:link href="http://blog.joaomorais.com/tag/items/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joaomorais.com</link>
	<description>Blog about software development, personal projects and development tools.</description>
	<lastBuildDate>Mon, 10 Apr 2017 02:26:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to translate administrator menu items in Joomla! 1.5.6?</title>
		<link>http://blog.joaomorais.com/how-to-translate-administrator-menu-items-in-joomla-1-5-6/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-translate-administrator-menu-items-in-joomla-1-5-6</link>
		<comments>http://blog.joaomorais.com/how-to-translate-administrator-menu-items-in-joomla-1-5-6/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 12:49:03 +0000</pubDate>
		<dc:creator>João Morais</dc:creator>
				<category><![CDATA[Papers]]></category>
		<category><![CDATA[1.5.6]]></category>
		<category><![CDATA[Administrator]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Items]]></category>
		<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://solidlocker.webhs.org/wordpress/?p=157</guid>
		<description><![CDATA[That’s a question that I’ve been doing to myself in the past two days. Unfortunately there aren’t much informations about this subject, and from what I’ve read there is a lot of people with the same doubts I had. Because I haven’t found any documentation on this subject I’ve decided to write the my own [...]]]></description>
				<content:encoded><![CDATA[<p>That’s a question that I’ve been doing to myself in the past two days.</p>
<p>Unfortunately there aren’t much informations about this subject, and from what I’ve read there is a lot of people with the same doubts I had.</p>
<p>Because I haven’t found any documentation on this subject I’ve decided to write the my own tutorial, hope it helps you.</p>
<p><span id="more-157"></span></p>
<p>Assuming that you already know how to create a <a title="Joomla!" href="http://joomla.org/">Joomla!</a> component setup XML file, I’ll write here how you can translate your administrator menu items using language packages. That way I will not talk about website front-end since I’m only focusing on administration menus.</p>
<p>I will also assume that you have a directory structure similar to the one below:</p>
<pre class="brush:plain">com_mycomponent
com_mycomponent/mycomponent.xml
com_mycomponent/admin
com_mycomponent/admin/index.html
com_mycomponent/admin/language
com_mycomponent/admin/language/index.html
com_mycomponent/admin/language/en-GB.com_mycomponent.ini
com_mycomponent/admin/language/en-GB.com_mycomponent.menu.ini
com_mycomponent/admin/language/pt-PT.com_mycomponent.ini
com_mycomponent/admin/language/pt-PT.com_mycomponent.menu.ini</pre>
<p>1. Open XML setup file.</p>
<pre class="brush:shell">$ geany com_mycomponent/mycompoment.xml</pre>
<p>2. Open administration tag and start to write component administration menu, our component’s menu will be composed by a title (COM_MYCOMPONENT) and two child links (LINK-1 and LINK-2). Note that all &amp; must be escaped to &amp;amp; for the file to be valid XML and be parsed by the installer.</p>
<pre class="brush:plain">&lt;administration&gt;
&lt;menu&gt;COM_MYCOMPONENT&lt;/menu&gt;
&lt;submenu&gt;
&lt;menu link=”option=com_mycomponent&amp;amp;controller=c1“&gt;LINK-1&lt;/menu&gt;
&lt;menu link=”option=com_mycomponent&amp;amp;controller=c2“&gt;LINK-2&lt;/menu&gt;
&lt;/submenu&gt;</pre>
<p>Now that we&#8217;ve finished the component administration menu, we will load language package files that will translate your component administration menu itens.<br />
For this example we will have two different translations, English and Portuguese.<br />
Although we are writing four files, two pairs for each language, the *.menu.ini are the ones that matter for this tutorial, the other ones are used to translate other texts that you will use in your component.</p>
<pre class="brush:plain">&lt;languages folder=”admin/language”&gt;
&lt;language tag=”en-GB”&gt;en-GB.com_mycomponent.ini&lt;/language&gt;
&lt;language tag=”en-GB”&gt;en-GB.com_mycomponent.menu.ini&lt;/language&gt;
&lt;language tag=”pt-PT”&gt;pt-PT.com_mycomponent.ini&lt;/language&gt;
&lt;language tag=”pt-PT”&gt;pt-PT.com_mycomponent.menu.ini&lt;/language&gt;
&lt;/languages&gt;
&lt;/administration&gt;</pre>
<p>End of component administration supported languages and close administration tag.</p>
<p>3. Edit the English package file and write the translations for the items you’ve just created.</p>
<pre class="brush:shell">$ geany com_mycomponent/admin/language/en-GB.com_mycomponent.menu.ini</pre>
<pre class="brush:plain">COM_MYCOMPONENT=My Component
COM_MYCOMPONENT.LINK-1=Link number one
COM_MYCOMPONENT.LINK-2=Link number two</pre>
<p>4. Repeat the step #3 for the Portuguese package file.</p>
<pre class="brush:shell">$ geany com_mycomponent/admin/language/pt-PT.com_mycomponent.menu.ini</pre>
<pre class="brush:plain">COM_MYCOMPONENT=O meu Componente
COM_MYCOMPONENT.LINK-1=Ligação número 1
COM_MYCOMPONENT.LINK-2=Ligação número 2</pre>
<p>Note : All ini files need to be saved as UTF-8.</p>
<p>With this four steps you are able to translate your component administrator menu items, although it is a simple process, unfortunately there isn’t much documentation on this subject, and the one that exists is a bit poor and doesn’t explain all the steps.</p>
<p>To complete what I’ve wrote in here you can also take a look at <a title="Translating  entries on the Components menu" href="http://docs.joomla.org/Tutorial:Translating_entries_on_the_Components_menu">this</a> tutorial that talks about this subject, and you may also take a look at <a title="Tutorials about Components" href="http://www.joomladevuser.com/tutorials/components">this one</a> that covers the steps needed to follow while developing a component.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joaomorais.com/how-to-translate-administrator-menu-items-in-joomla-1-5-6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
