Language preferences
Many FAB flight suppliers support controlling content language.
This page provides examples and advice on how to use this.
Tip
Also see reference page for FABRequestResponse.Note
At present this preference is mainly used for controlling the language of emails sent from the supplier. It may be expanded in future to also influence errata and other text content.To indicate content language preference set a list of one or more languages in your request.
Note that:
- Languages are set via ISO 639-1 two letter codes, e.g “EN” for English
- Locales are not currently supported
- The list will be read in priority order descending, we will try to use the first supplier supported language on the list.
- If you don’t set a list or if none of your preferred languages are supported by the supplier then English will be used.
- It is best to set the preference consistently in every request of a session.
- At a minimum you must set it for your final
CreateBasketRequestorAmendBasketRequest(whichever comes last) … - and for your
BookBasketRequest… - so as to reliably control email language.
- At a minimum you must set it for your final
Snippet example:
<?xml version="1.0" encoding="UTF-8"?>
<FAB_BasketRQ Target="test" Version="2002A" xmlns="http://www.xmltravel.com/fab/2002/09">
<SyndicatorInfo SyndicatorId="ExampleSyndicatorId" SyndicatorPassword="xxxxxxxx"/>
<SessionInfo FABSessionId="H2P9exxxxiCaAaRqEZw9OQlg" CreateNewSession="false"/>
<Languages>
<Language>DE</Language>
<Language>FR</Language>
</Languages>
...
- The above indicates a preference for German language content or French if German isn’t supported.
- If neither are supported then English will be used.
Last modified April 6, 2023