Page 1 of 1

Create Install language pack for Phoca Components

Posted: 27 Oct 2008, 02:51
by dzed
In this example We will use the Arabic (Algeria) language pack for Phoca Gallery

- create 2 folders with name site and admin

copy files translated to this 2 folders
Like this

site/ar-DZ.com_phocagallery.ini
site/ar-DZ.com_phocagallery.menu.ini
admin/ar-DZ.com_phocagallery.ini
admin/ar-DZ.com_phocagallery.menu.ini

- create new file install.xml in this file insert this code

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<install version="1.5" client="both" type="language">
    <name>Arabic (Algeria) langpack Phoca Gallery</name>
    <tag>ar-DZ</tag>
    <version>2.0.2</version>
    <creationdate>2008-10-27</creationdate>
    <author>Saber Bousba</author>
    <authoremail>saber.bousba@gmail.com</authoremail>
    <authorurl>www.dzconstantine.com</authorurl>
    <copyright>Copyright (C) 2008 Saber Bousba - www.dzconstantine.com All rights reserved.</copyright>
    <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
    <description>This is Arabic (Algeria) language pack for Phoca Gallery Components v2.0.2.</description>
    <administration>
      <files folder="admin">
        <filename>ar-DZ.com_phocagallery.ini</filename>
        <filename>ar-DZ.com_phocagallery.menu.ini</filename>
      </files>
  </administration>
  <site>
      <files folder="site">
        <filename>ar-DZ.com_phocagallery.ini</filename>
        <filename>ar-DZ.com_phocagallery.menu.ini</filename>
    </files>
  </site>
  <params />
</install>
replace:
“ar-DZ” with code of Your language
“Arabic (Algeria)” with Name of Your language.
Change metadata (creationdate, author...) to Your information, as you wish.
Note: for copyright, license ask the phoca-dev

- With WinZip or winrar select the 2 folder and the install file see pic
Untitled-2.gif
And create package with name (any name e.g. ar-DZ_langpack_Phoca_Gallery.zip) and this pack must be ZIP file

To test go to Joomla admin panel >> Extension >> install/Uninstall
And select the package >> click: Upload File & Install
the installation will be automatically

Note-1: for copyright, license ask the phoca-dev

Note-2:This is just a Suggestion

Note-3: for more info How to create language pack for Joomla! 1.5 extension
http://forum.joomla.org/viewtopic.php?f ... &sk=t&sd=a
&
http://dev.joomla.org/xml/1.5/plugin-install.dtd

Re: Create Install language pack for Phoca Components

Posted: 29 Oct 2008, 00:24
by Jan
great, thank you for this guide, Jan