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:
- Swedish [100% Completed]
- Norwegian [100% Completed]
- Hungarian [100% Completed]
- Ukrainian [100% Completed]
- Russian [100% Completed]
- Chinese [100% Completed]
- Polish [98% Completed]
- Portugal [86% Completed]
- German [85% Completed]
- French [85% Completed]
- Spanish [85% Completed]
- Dutch [85% Completed]
- Greece [85% Completed]
- Danish [85% Completed]
- Czech [85% Completed]
- Slovak [85% Completed]
- Italian [85% Completed]
- Croatian [85% Completed]
- Finnish [85% Completed]
- Turkish [85% Completed]
- Catalan [84% Completed]
- Bulgarian [84% Completed]
- Brazilian Portuguese [80% Completed]
- Hebrew [15% 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..