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:
Open text editor and paste there the following content:
1 |
<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:
and open both files:
in text editor. Translate the strings to your langauge and save them as (in our example we use Czech prefixes):
Files should be saved as UTF-8 without BOM encoding.
3) Open text editor and paste there the following content:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<install type="language" version="1.5" client="both" method="upgrade">
|
Edit it and ave it as :
So now you should have the following folder structure in the folder lang:
Select all files included in lang folder and add them into ZIP file called lang-prefix-LANG-PREFIX.com_phocagallery.zip (in our example the file will have the following name: cs-CZ.com_phocagallery.zip)
Now the translation is ready and can be installed via standard Joomla! installation procedure.
|
|