How to create translation for Joomla! extensions

For translating extensions for Joomla! 1.6, 1.7, 2.5 (partially for Joomla! 3) see this article: Creating language packs for extensions in Joomla 2.5

This article describes how to create translation for Joomla! specific extension. As example we will build Czech language for Phoca Gallery component.

1) We will prepare folder structure for the new created translation. Create the following folders on your disc:

  • lang/admin
  • lang/site

Open text editor and paste there the following content:

<html><body bgcolor="#FFFFFF"></body></html>


Save it as index.html in both folders (as lang/admin/index.html and lang/site/index.html).

2) Unzip the Phoca Gallery component ZIP file somewhere on your disc. Go to:

  • language/en-GB/ folder (which is included in the unzipped Phoca Gallery structure)

and open both files:

  • en-GB.com_phocagallery.ini

in text editor. Translate the strings to your langauge and save them as (in our example we use Czech prefixes):

  • lang/admin/cs-CZ.com_phocagallery.ini
  • lang/admin/
  • lang/site/cs-CZ.com_phocagallery.ini
  • lang/site/

Files should be saved as UTF-8 without BOM encoding.

3) Open text editor and paste there the following content:

<install type="language" version="1.5" client="both" method="upgrade">
	<author>Jan Pavelka</author>
	<copyright>(C) 2008 Jan Pavelka</copyright>
	<license> GNU/GPL</license>
	<description>Czech language pack for Phoca Gallery</description>

    <files folder="admin">
    <files folder="site">

Edit it and ave it as :

  • lang/install.xml file.

So now you should have the following folder structure in the folder lang:


  • install.xml
  • admin/index.html
  • admin/cs-CZ.com_phocagallery.ini
  • admin/
  • site/index.html
  • site/cs-CZ.com_phocagallery.ini
  • site/

Select all files included in lang folder and add them into ZIP file called (in our example the file will have the following name:

Now the translation is ready and can be installed via standard Joomla! installation procedure.


Phoca News Gadget

Phoca Facebook Phoca on Facebook:
Phoca Twitter Phoca on Twitter:
Phoca - Follow us on Twitter
Phoca Google Plus Phoca on Google+:
Phoca - Follow us on Google Plus
Phoca YouTube Phoca on YouTube:
Phoca on YouTube
Phoca Pinterest Phoca on Pinterest:
Phoca on Pinterest
Phoca News Phoca News:
Phoca News RSS
Phoca Latest Files Phoca Latest Files:
Phoca News RSS

Phoca Forum - Latest Topics