Actions

Difference between revisions of "Translating entries on the components menu"

From Joomla! Documentation

(Importing text file)
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
=== Translating entries on the Components menu ===
 
 
 
Entries on the Components menu and its sub-menus may be translated using a mechanism that allows translators to include translations for third-party developer extension entries.
 
Entries on the Components menu and its sub-menus may be translated using a mechanism that allows translators to include translations for third-party developer extension entries.
  
A language INI file in the administrator/languages/<lang> directory, called <lang>.<component>.menu.ini will be loaded when the administrator menus are built and should contain language replacement strings for the menu item and its sub-menus.
+
A language INI file in the <tt>administrator/languages/<lang></tt> directory, called <tt><lang>.<component>.menu.ini</tt> will be loaded when the administrator menus are built and should contain language replacement strings for the menu item and its sub-menus.
  
For example, the Banners component, com_banners, has a menu translation file in administrator/languages/en-GB called en-GB.com_banners.menu.ini in which you will find:-
+
For example, the Banners component, com_banners, has a menu translation file in <tt>administrator/languages/en-GB</tt> called <tt>en-GB.com_banners.menu.ini</tt> in which you will find:-
  
<source>
+
COM_BANNERS=Banner
COM_BANNERS=Banner
+
COM_BANNERS.BANNERS=Banners
COM_BANNERS.BANNERS=Banners
+
COM_BANNERS.CLIENTS=Clients
COM_BANNERS.CLIENTS=Clients
+
COM_BANNERS.CATEGORIES=Categories
COM_BANNERS.CATEGORIES=Categories
+
</source>
+
  
 
The first of these strings replaces the menu item in the Components menu.  The other three replace sub-menu items within the Banner entry in the Components menu.
 
The first of these strings replaces the menu item in the Components menu.  The other three replace sub-menu items within the Banner entry in the Components menu.
 +
<noinclude>[[Category:Languages]]<noinclude>

Latest revision as of 19:12, 28 December 2008

Entries on the Components menu and its sub-menus may be translated using a mechanism that allows translators to include translations for third-party developer extension entries.

A language INI file in the administrator/languages/<lang> directory, called <lang>.<component>.menu.ini will be loaded when the administrator menus are built and should contain language replacement strings for the menu item and its sub-menus.

For example, the Banners component, com_banners, has a menu translation file in administrator/languages/en-GB called en-GB.com_banners.menu.ini in which you will find:-

COM_BANNERS=Banner
COM_BANNERS.BANNERS=Banners
COM_BANNERS.CLIENTS=Clients
COM_BANNERS.CATEGORIES=Categories

The first of these strings replaces the menu item in the Components menu. The other three replace sub-menu items within the Banner entry in the Components menu.