Archived

Difference between revisions of "Adapting a Joomla 1.5 extension to Joomla 2.5"

From Joomla! Documentation

Line 1: Line 1:
 
{{incomplete}}
 
{{incomplete}}
 +
 +
This article is written to help developers upgrade their extensions from Joomla 1.5 to Joomla 1.6. If you have any further tips, feel free to add them onto this wiki article.
 +
 +
== System setup ==
 +
This document assumes that you are running the program eclipse for your development. This will allow you to automate most of the Joomla conversion process. For more instructions on how to setup eclipse visit:
 +
http://docs.joomla.org/Setting_up_your_workstation_for_Joomla!_development
 +
  
 
== Updating your Joomla 1.5 language files to work on Joomla 1.6 ==   
 
== Updating your Joomla 1.5 language files to work on Joomla 1.6 ==   

Revision as of 09:09, 24 October 2010

This page has been archived. This page contains information for an unsupported Joomla! version or is no longer relevant. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Quill icon.png
Content is Incomplete

This article or section is incomplete, which means it may be lacking information. You are welcome to assist in its completion by editing it as well. If this article or section has not been edited in several days, please consider helping complete the content.
This article was last edited by Mariusvr (talk| contribs) 13 years ago. (Purge)


This article is written to help developers upgrade their extensions from Joomla 1.5 to Joomla 1.6. If you have any further tips, feel free to add them onto this wiki article.

System setup[edit]

This document assumes that you are running the program eclipse for your development. This will allow you to automate most of the Joomla conversion process. For more instructions on how to setup eclipse visit: http://docs.joomla.org/Setting_up_your_workstation_for_Joomla!_development


Updating your Joomla 1.5 language files to work on Joomla 1.6[edit]

Using the native php ini parser for language files has many benefits including much faster performace. Converting your exisiting Joomla 1.5 into the new format is very easy if you use a coding platform like eclipse. Search your file for *.ini in your project of choice. Then use the following search/replace values to automatically, replace exisiting quotes, add quotes to string values and update your comments

  1. Double quotes are now not allowed and this can be easily bypassed by searching " and replace with '
  2. Put a closing double quote at end of line if not empty or a comment. Find ^((?!#).+)\R replace with $1"\R
  3. Put an opening quote at start of translated string if not empty or comment. Find ^((?!#).+?\=)(.+)\R replace with $1"$2\R
  4. Now replace the hash comments with the new semi colon. Find ^# and replace with ;
  5. Remove any illegal strings that can prevent files loading. Find ^(null|yes|no|true|false|on|off|none)=(.+)\R and replace with nothing.