Actions

J1.5

Difference between revisions of "Location of template language definition files"

From Joomla! Documentation

(New page: Language definition files for front-end templates are stored in <nowiki>[path-to-Joomla]/language/[ln-LN]</nowiki> where ''<nowiki>[ln-LN]</nowiki>'' is the language code. Language code...)
 
m (Added to some relevant categories.)
(2 intermediate revisions by one user not shown)
Line 20: Line 20:
  
 
  <nowiki>[path-to-Joomla]/administrator/language/en-GB/en-GB.tpl_khepri.ini</nowiki>
 
  <nowiki>[path-to-Joomla]/administrator/language/en-GB/en-GB.tpl_khepri.ini</nowiki>
 
+
<noinclude>
 
+
 
+
 
----
 
----
<references/>
+
<references/>[[Category:Templates]][[Category:Languages]]</noinclude>

Revision as of 11:06, 10 January 2009

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Language definition files for front-end templates are stored in

[path-to-Joomla]/language/[ln-LN]

where [ln-LN] is the language code. Language codes are defined in RFC3066[1] The file must be named

[ln-LN].tpl_[template-name].ini

where [template-name] is the name of the template (in lowercase). For example, the British English language file for the Beez template is

[path-to-Joomla]/language/en-GB/en-GB.tpl_beez.ini

You should also create a separate language file for translating the Administrator back-end of your template. This will be stored in

[path-to-Joomla]/administrator/language/[ln-LN]

but the file naming convention is the same.

For administrator templates, as distinct from front-end templates, the second of these files is the only one required. For example, the British English language file for the Khepri administrator template is located in

[path-to-Joomla]/administrator/language/en-GB/en-GB.tpl_khepri.ini

  1. RFC3066: Tags for the Identification of Languages http://www.ietf.org/rfc/rfc3066.txt