On the Booking Listing page exist ability to change language (locale) of emails, that will send to visitor during approving or declining of the booking. But how to detect language/locale of webpage, from where visitor submit the booking.
Here is instruction how to do this.
<div style="display:none;"> Active Language: [text active_language class:wpbc_lang_field]</div>
jQuery('.wpbc_lang_field').val( wpbc_active_locale );
Also you will be need to add to the "Content of booking fields data" form (its at the bottom of Booking > Settings > Fields page) this shortcode:
<strong>Active Language</strong>:<span class="fieldvalue">[active_language]</span>
For showing this field at the Booking Listing page.
You can download the original translations files from here. You can check instruction how to make or update translations files at this page.
Translations available in paid versions of Booking Calendar:
- Dutch [100% Completed]
- German [98% Completed]
- Italian [98% Completed]
- Danish [98% Completed]
- Finnish [98% Completed]
- Swedish [98% Completed]
- Hebrew [98% Completed]
- Chinese (Taiwan) [98% Completed]
- Norwegian [98% Completed]
- Brazilian Portuguese [98% Completed]
- Hungarian [97% Completed]
- Ukrainian [97% Completed]
- Russian [97% Completed]
- Chinese [97% Completed]
- French [97% Completed]
- Polish [95% Completed]
- Portugal [83% Completed]
- Spanish [83% Completed]
- Greece [83% Completed]
- Czech [83% Completed]
- Slovak [83% Completed]
- Croatian [83% Completed]
- Turkish [83% Completed]
- Catalan [82% Completed]
- Bulgarian [82% Completed]
- Arabic [82% Completed]
- Belarussian [10% Completed]
Paid versions of Booking Calendar support configuration in different languages of the booking form, email templates and some other text options in the settings . The active language of the booking form is depending from the active locale of the site.
Booking Calendar is supported WPML and qTranslate plugins for dynamic changing of website locale (language).
[lang=LOCALE] - start new translation section in specific language, where LOCALE - locale of the translation.
Example of English and French translation of "Thank you" message:
Thank you for your booking.[lang=fr_FR]Je vous remercie de votre reservation.
Important! Please note, by default you need to have the English section and then divided by this shortcode [lang=LOCALE] sections in all other languages.
Of course you can have more than 2 language sections.
Example of configuration booking form in English and French languages at the Booking > Settings > Fields page:
First Name (required): [text* name]
Last Name (required): [text* secondname]
Email (required): [email* email]
Visitors: [select visitors "1" "2" "3" "4"]
Details: [textarea details]
Prénom (obligatoire): [text* name]
Deuxième prénom (requis) [text* secondname]
Email (obligatoire) [email* email]
Visiteurs : [select visitors "1" "2" "3" "4"]
Détails : [textarea details]
In the same way, you can configure the email templates on the Booking > Settings > Emails page and search form on the Booking > Settings > Search page, etc..