Contents - Index - Previous - Next


Property Type Specific language files

 

In Paxsoft it's trivial to edit a language file, you can exchange the word Room for Yacht easily, it's slightly more difficult (but not hard anyway) to use the context sensitive editing mode to make text specific to a property. Using this you can have say Hotels and Camp sites on the same server but it does require that the property manager (probably you) set up completely separate text for the camp site to override the standard Paxsoft hotel text.

 

A new way around this has been devised. As you're probably aware, you can have property types in Paxsoft. You may also be aware that the description field wasn't being used anywhere by Paxsoft so a new use has been made of that field in the database.

 

As of 2.6.0.1 you can create a sub folder in the  /administrator/components/com_Paxsoft/languages directory (or you can look at the ones already created for you if you've installed 2.6.0.1 or later) and call it something eg. 'dvdrentals'. Put a copy of english.php (or any language you like) in that folder and change words from eg Rooms to DVDs, Room Types to DVD types etc. Finally, in the administrator backend Global Property Types create a property type with the name 'DVD Rentals' and the description 'dvdrentals' and Paxsoft will find that new language file and use it instead of the standard Hotel based one.

 

What Paxsoft does when it starts is try to find the property uid. If it can it'll then find the property type and look to see if a file by the name of /administrator/components/com_Paxsoft/languages/*propertytypedescription*/*currentlanguage*.php exists. If it does it'll use that. Just remember, that the name of the folder that the new language file is in and the description in the Property Type Description needs to be the same, and that there should be no spaces between words. Therefore 'dvd rentals' would be wrong, but 'dvdrentals' right.

 

To get you started new installs from 2.6.0.1 come included with some slightly modified versions of the language files for Yacht Brokerages, Camp Sites and Vehicle Rentals, and Property Types to match.