How can I translate component for my language?
- Last revised:
- Donnerstag, 23. März 2017
Answer
Booking uses standard Joomla! language system. Default localisation for English is in files:
- administrator/language/en-GB/en-GB.com_booking.common.ini
- administrator/language/en-GB/en-GB.com_booking.ini
- administrator/language/en-GB/en-GB.com_booking.menu.ini (Joomla 1.5)
- administrator/language/en-GB/en-GB.com_booking.sys.ini (Joomla 1.6 and higher)
- language/en-GB/en-GB.com_booking.ini
- language/en-GB/en-GB.mod_booking_customer_info.ini
Example
If you would like to translate files to German language (de-DE), please copy English (en-GB) files and translate them:
- administrator/language/de-DE/de-DE.com_booking.common.ini
- administrator/language/de-DE/de-DE.com_booking.ini
- administrator/language/de-DE/de-DE.com_booking.menu.ini (Joomla 1.5)
- administrator/language/de-DE/de-DE.com_booking.sys.ini (Joomla 1.6 and higher)
- language/de-DE/de-DE.com_booking.ini
- language/de-DE/de-DE.mod_booking_customer_info.ini
There are rows look like COMPULSORY ITEMS="Compulsory items" in English files.
Left site COMPULSORY ITEMS= is property. Do not change it! Translate quoted text on the right site only.
In German files you can find a row looks like: COMPULSORY ITEMS="Obligatorische Elemente"
Language file has to be in UTF-8 encoding. We recommend to edit the file in the program PSPAD which allows you to setup file encoding.
Problems
Reason why custom localisation does not appear is some parsing error in INI file. Try to run Debug Mode. Remember that a text on the right site of a row has to be enclosed in double quotes - PROPERTY="YOUR TEXT"
Debug Mode
Turn on option Debug Language in Global Configuration under tab System. You should turn on plugin Debug of type System as well. On the bottom of the page is Debug Console where you can find parsing errors in language files and list of loaded language files. Control if your files are loaded and there are no parsing errors.