Create Install language pack for Phoca Components

Translations - translations for Phoca extensions
User avatar
dzed
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 25 Oct 2008, 01:32
Location: Constantine, Algeria
Contact:

Create Install language pack for Phoca Components

Post 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
Saber Bousba - صابر بوصبع
Arabic Algeria translation for J! 1.5 : http://joomlacode.org/gf/project/ardz/
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Create Install language pack for Phoca Components

Post by Jan »

great, thank you for this guide, Jan
If you find Phoca extensions useful, please support the project
Post Reply