WebRES has two distinct ways of rendering pages in different languages. Firstly, there are strings of text, called "literals", which can be referenced from a page. Each literal may be assigned multiple values, one for each language. Secondly, multiple versions of the same page can be created, one per language. This allows completely different versions of a single page to exist for each language.
In a normal web page, text is directly entered as part of the source code: An HTML file might contain the line:
Which would output as simply:This is English!
This is English!
However, in the source for a WebRES page, you are more likely to see something like:
<%t('this_is.language')%>
And the text generated by this source would vary depending on which language the user was viewing with.
The full list of literals can be found in the WebRES Translation page, via the menu Applications->WebXG WebRES->Translation, along with a choice of all available languages via a drop-down menu. The text to be inserted for each language can be edited here to suit.
The 'conversion' sections sections in translations like res_rates_class_conversion and options_table_conversion have additional sections for adding translatable details for items from cars+. Choose English and click on 'Add New Conversion' to add a row to the section. In the first field at the left, enter the relevant class code, option code etc. from cars+ then fill in the fields on the right in the language of your choice.
All files, including images, can have different versions for different languages. This allows for different content to be generated for different languages when literals alone cannot supply enough flexibility. They are the primary means by which you will create foreign versions of your pages.
Navigate to menu entry Applications->WebXG WebRES->WebRES File management and from the list of available files, choose the one you wish to create an alternative version of.
At the top of the "View Source" page will be a "Language" option with a drop-down menu beside it. This menu will show all currently-available versions. To add a new language version, click the "Edit Source" button. Again, there will be a "Language" drop-down menu, but this time all languages will be selectable. Choose the language you wish to create a new version for, and then modify the source in the box below as desired. Note that these changes are immediate and may affect live users.
WebXG WebRES uses the English version of the page as default if the language version is not found.