Why is the custom code not working for other languages in mybookings?

Follow

If you noticed that the codes applied in Customize Mybookings page are not translated into different languages, please check the article below for detailed explanations.

Background

  • Sections that do not allow translations to your custom texts:
    • Custom Meta Tags
    • Custom Meta Tags (Confirmation Page Only)
    • Javascript Code (Confirmation Page Only)
  • Sections that allow translations to your custom texts:
    • Custom header for your hotel booking page
    • Custom footer for your hotel booking page
    • Customize the text that will appear on the booking page if there is no availability for the dates searched

Example

You have added code into the  'Custom Meta Tags' section in order to add a custom text under the 'Search' button on mybookings page.

[Demo] Mountain Resort & SPA - Customize mybookings - Google Chrome

When you access mybookings page, the text will be shown only in that language in which the code was written - the system will not translate the text automatically even though you switch mybookings language.

[Demo] Mountain Resort & SPA - Kyiv, Ucrania - Mejor precio garantizado - Google Chrome

How to translate the text in custom codes

In order to translate the custom text, add the desired code to the section that allows you to switch the language, and provide the translation manually.

Example:  To add a custom text under the 'Search' button and apply it to other languages, follow the steps below. 

  1. Add the code into the 'Custom footer for your hotel booking page' section which allows you to switch the language
[Demo] Mountain Resort & SPA - Customize mybookings - Google Chrome

2. Select the desired language on the top right corner of the 'Custom footer for your hotel booking page' section

3. Apply the same code with the translated custom text

[Demo] Mountain Resort & SPA - Customize mybookings - Google Chrome

4. Save the changes and check mybookings page

[Demo] Mountain Resort & SPA - Kyiv, Ukraine - Best Price Guarantee - Google Chrome

On the screenshot above, the text was successfully translated according to the translation added in the code.

Powered by Zendesk