Contents - Index


Property Type Specific language files

In Jomres 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 Jomres hotel text.

A new way around this has been devised. As you're probably aware, you can have property types in Jomres. You may also be aware that the description field wasn't being used anywhere by Jomres 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 /components/com_jomres/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 so long as your CMS is configured to use that language) in that folder and change words from eg Rooms to DVDs, Room Types to Genres etc. Finally, in the administrator backend Global Property Types create a property type with the name 'DVD Rentals' and the description 'dvdrentals' and Jomres will find that new language file and use it instead of the standard Hotel based one.

What Jomres 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_jomres/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. Just remember that if you're not looking at a specific property then the default language file will be used, and if you've not edited that, then it's language context will still be Hotels.