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
am, am_ET
ar, ar_SA
bg, bg_BG
ca, ca_ES
cs, cs_CZ
da, da_DK
de, de_DE
el, el_GR
en, en_GB
en_US
es, es_ES
fi, fi_FI
fr, fr_FR
he, he_IL
hr, hr_HR
hu, hu_HU
id, id_ID
it, it_IT
ja, ja_JP
ko, ko_KR
ms, ms_MY
nb, nb_NO
nl, nl_NL
pl, pl_PL
pt, pt_PT
ro, ro_RO
ru, ru_RU
sk, sk_SK
sl, sl_SI
sq, sq_AL
sr, sr_RS
sr_ME
sv, sv_SE
th, th_TH
tr, tr_TR
uk, uk_UA
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