Here is a guide how to create a Joomla 1.5 language pack. The special thing about is: with the methode Upgrade , you can upgrade any existing language files replaced. The key is in the Installer.xml the language package:
<?xml version="1.0" encoding="utf-8"?> <install type="language" version="1.5" client="both" method="upgrade">
******************************************* client: both = Both, Frontend and Backend client: site = Only Frontend client: administrator= Only Backend ******************************************* method: upgrade = overrides the existing, same named Files Please note, with this Tag you now able to update everithing you like to, you can finally update everything. ******************************************** With this Language specifiv Tag
You set the Language of the Language Upgrade Packs. (Only needed by Languages) Now the fully Conten of the installer xml
<?xml version="1.0" encoding="utf-8"?> <install type="language" version="1.5" client="both" method="upgrade"> <name>English</name> <tag>en-GB</tag> <version>VERSION</version> <creationDate>01-04-2009</creationDate> <author>AUTHORNAME</author> <authorEmail>EMAIL</authorEmail> <authorUrl>YOURWEBSITE</authorUrl> <copyright>(C) 2009 Alphaplug. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license> <description>English Language files for alpharegistration 2.0.1.1</description> <site> <files folder="site"> <filename>en-GB.com_alpharegistration.ini</filename> </files> </site> <administration> <files folder="admin"> <filename>en-GB.com_alpharegistration.ini</filename> <filename>en-GB.com_alpharegistration.menu.ini</filename> </files> </administration> </install>
With the Tag <files folder> is the foldername in the Language Pack. As an example, now the folder and file structure of this upgrade pack for Joomla 1.5 Language Files: Content of Zip (oder tar) File: **************************************** * en-GB.com_alpharegistration.xml * (Installer File) * Folder: site * (Frontend Language Folder) * en-GB.com_alpharegistration.ini * (Frontend Language) * * * Folder: admin * (Backend Admin Language Folder) * en-GB.com_alpharegistration.ini * (Backend Language) * en-GB.com_alpharegistration.menu.ini * (Backend Menu Language) ****************************************** if you have only a frontend translating of a component, module etc want to create the installer reads thus:
<?xml version="1.0" encoding="utf-8"?> <install type="language" version="1.5" client="site" method="upgrade"> <name>English</name> <tag>en-GB</tag> <version>VERSION</version> <creationDate>01-04-2009</creationDate> <author>AUTHORNAME</author> <authorEmail>EMAIL</authorEmail> <authorUrl>YOURWEBSITE</authorUrl> <copyright>(C) 2009 Alphaplug. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license> <description>English Language files for alpharegistration 2.0.1.1</description> <site> <files folder="site"> <filename>en-GB.com_alpharegistration.ini</filename> </files> </site> </install>
And according to the Folderstructure Contents of the zip (or tar) file: **************************************** * en-GB.com_alpharegistration.xml * (Installer File) * Folder: site * (Frontend Language Folder) * en-GB.com_alpharegistration.ini * (Frontend Language) ****************************************** In this way, you can use all other Joomla1.5 modules, components and plugins to updating the next major version. More on that here shortly.