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