Technical Support
posted this on February 02, 2009 12:44
TouristWay supports up to 5 concurrent languages. You can map these 5 to any set of languages you prefer. To do so, log into the webmaster area and select "Languages" from the navigation bar on top. There you will be able to enable, assign or disable each of the available 5 languages.
If your portal supports more than one language you can specify the main one by selecting one of the options in the field "Startup language". This field is located in the webmaster area in the menu "Languages". The selected language will be selected by TouristWay for new users.
According to the list of available languages the header of your pages will display a list of flags to be used to switch from one language to another. Should you require to move or add this list somewhere else, please note this is the code you have to include anywhere you want to place this list:
<%FOREACH language IN init.supportedlanguages>
<a href="?lng=%-language.lng-%"><img src="%-system.docbaseurl-%images/flags/flag_%-language.lng-%.gif"></a>
</%FOREACH>
To translate your product descriptions, please go to the catalogue administration area and once you have selected a product (Hotel, Package, etc.), just enter the appropriate translations beside each language field. Menus as "Descriptions", "Voucher and travel notes", "Room types" and many more will display a flag for each active language to mark the fields you have to fill in with your translations.
Beside translation of your product descriptions to truly have a multi-language site you will have to translate also labels and messages displayed in the booking interface. To do so TouristWay provide you with a translation table in the Webmaster area. Once you are logged in, select the "Translations" menu. You will enter the interface navigation interface: this tool is designed to precisely locate templates and translations given a component class or a template folder, if you have been playing with TW SDK you will certainly figure out what use can be for you, if you are just after the translation table, don't let this menu intimidate you. Just select all items from the list "folders" and all from the list "component classes", then click "TRANSLATE", you will get a full list of the sentences that require translation.
Each sentence is displayed in english in the cells on the right side of the table, you can enter one translation for each enabled language just by typing it in the cells on the right. Click "UPDATE" at the bottom to save your changes. You can switch the target language with the flags displayed at the top-right of the table. Please note that only flags corresponding to the enabled language will be listed.