WebHotelier supports a method to pre-set the booking engine language in order to be called from multi-lingual websites directly to the native language of the visitor.

Table of Contents
  1. Supported parameters
  2. Usage
  3. Examples of POST requests
  4. Examples of GET requests

Supported parameters

NAME TYPE RANGE / SET REQUIRED DEFAULT EXAMPLE NOTES
lang string bg, bg_BG
ca, ca_ES
de, de_DE
el, el_GR
en, en_GB
en_US
es, es_ES
fi, fi_FI
fr, fr_FR
hr, hr_HR
it, it_IT
ja, ja_JP
nb, nb_NO
nl, nl_NL
pt, pt_PT
ro, ro_RO
ru, ru_RU
sl, sl_SI
sr, sr_RS
sv, sv_SE
tr, tr_TR
zh, zh_CN
zh_TW
YES (property default) lang=es Can be language code ( ISO 639-1 ) or
specific language locale ( case-insensitive )

Usage

If only language code is specified, the first locale supported for that language will be used ( for example: en=en_GB ). The lang parameter can be combined with the Check Rates method.

The hotelier may choose not to support some of the languages ( English is the default and is always available ). Please visit the booking engine to find out which languages are supported.

We strongly recommend of using the POST method whenever possible in order to avoid appending query keys on the booking engine URL. If the property's site supports multiple languages, the links or forms leading to the booking engine should set the lang parameter to match the site's language.

Example of POST request using a standard HTML form

<form action="https://example.reserve-online.net/" method="post">
	<input type="hidden" name="lang" value="de">
	<button type="submit">Launch Booking Engine</button>
</form>

Examples of GET requests

https://example.reserve-online.net/?lang=de
https://example.reserve-online.net/?lang=el_GR&checkin=2008-05-15&checkout=2008-05-17&adults=2