Screenshot of Kipfer holiday apartment, Faulensee, Switzerland

The family which owns the house in which we live converted the lower ground floor to a holiday apartment in 2016. After advertising it on AirBNB, it has been highly successful. Although almost all of the bookings come through AirBNB (or the local tourist office), I thought that I might as well use their purchase of a website domain for emails to make a simple splash page for them, which links to the AirBNB page for the apartment. More as a quick exercise in web design than anything. At some point, I may extend the site to contain more detailed information for guests, but that’ll have to wait for now.

My language preferences

Because guests from many countries visit, I thought I’d try a simple approach to making sure that each visitor sees the splash page in the language which makes sense to them. Web browsers give you the option to set the languages you understand in order of preference (example for Google Chrome). A website can refer to these and either redirect you – which is most common – or simply load different content.

The splash page in question automatically displays the content and the appropriate multilingual links to AirBNB in English, German or French – calling this information through a PHP cURL request to a remote WordPress REST API.

Leave a Reply

Your email address will not be published. Required fields are marked *

For security, use of Google’s reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

This site uses Akismet to reduce spam. Learn how your comment data is processed.