J2.5 talk

Developing a MVC Component/Adding language management

From Joomla! Documentation

Revision as of 09:14, 13 February 2012 by Oc666 (Talk | contribs)

There also needs to be a language translation for the ADMIN Menu. Otherwise, the admin menu will only show the menu-item aliases See Forum thread.

The specification of the admin menu for the component in the installation manifest would look something like this:

	<menu controller="features">com_hello_greetings</menu>
	<menu controller="config">com_hello_config</menu>

Then we would add an additional language file to the installation manifest called en-GB.com_hello.sys.ini:

<languages folder="admin">
       <language tag="en-GB">language/en-GB/en-GB.com_helloworld.ini</language>
       <language tag="en-GB">language/en-GB/</language>
       <language tag="en-GB">language/en-GB/en-GB.com_helloworld.sys.ini</language>

And this new language file would look like this:

COM_HELLO=Hello World!