• Resolved Arif Khan

    (@arifkpi)


    Hello,

    I have a WordPress site where I’m using the Polylang plugin (English en_US, Deutsch de_DE, and Bengali bn_BD) to add multiple language support.

    From the “Booking Listing,” I can easily switch the language of a booking. However, after changing the language, when I try to reject or approve a booking, the email does not send content using the selected language. I followed this guide: https://ww.wp.xz.cn/support/topic/polylang-form/, but it didn’t help much. I can change the email heading, but the [content] part and email subject remain in English, even when I select another language. Translation files are already in place (MO and PO files in the plugin/translations folder).

    Example code I tried, but I still have no luck:

    Your reservation for: [dates] has been approved.
    [content]
    Thanks
    [siteurl]

    [lang=de_DE]
    Ein booking: [dates]
    [content]
    Danke
    [siteurl]

    Thank you.

    • This topic was modified 1 year, 6 months ago by Arif Khan.
    • This topic was modified 1 year, 6 months ago by Arif Khan.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    Before approving or rejecting the bookings in the Booking Listing page (or some other actions at this page), please switch the language of the booking by clicking on “Globe” icon near specific booking. After that click on Approve or Reject button, etc…

    Kind Regards.

    Thread Starter Arif Khan

    (@arifkpi)

    Yes, I did that, but still no luck

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello.

    What version of Booking Calendar and Polylang do you use ?

    Plugin Author wpdevelop

    (@wpdevelop)

    Just one more question. When you approve the booking, you receive the email with content like this:

    Your reservation for: [dates] has been approved.
    [content]
    Thanks
    [siteurl]

    Or you receive the email in correct language DE:
    Ein booking: [dates]
    [content]
    Danke

    But the [content] part of the shortcode still in English.

    It’s means that you see this German text: “Ein booking:….. Danke”, but the [content] in English ?

    If it is correct, then you need to customize correctly the “Content of booking fields data” form at the bottom of WP Booking Calendar > Settings > Booking Form page, relative to this FAQ: https://wpbookingcalendar.com/faq/several-languages/

    Kind Regards.

    Thread Starter Arif Khan

    (@arifkpi)

    Email is working perfectly now, thanks to your guidelines.

    I have a different question, though. As users can switch languages, that changes the form page URL as well.
    English page form is: SITE_URL/en/wpbc-booking/
    German page form is: SITE_URL/de/wpbc-booking/
    Bangla page form is: SITE_URL/bn/wpbc-booking/

    I can manually switch languages using the language dropdown from the booking listing page, but is it possible to know from which language page the user submitted the form (en, de, or bn)?

    Thanks again

    Plugin Author wpdevelop

    (@wpdevelop)

    Thread Starter Arif Khan

    (@arifkpi)

    Thanks, but I don’t see any option to add shortcode or JS code to the Booking >> Settings >> Booking Form Fields. I only have the ability to add Text, Textarea, Dropdown, Checkbox, and Time Slots.

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello.

    Such feature available only in the paid versions in advanced form configuration at the WP Booking Calendar > Settings > Booking Form page. Test it in the live demos of Booking Calendar.

    Kind Regards.

    Thread Starter Arif Khan

    (@arifkpi)

    Understood, thank you very much. I am extremely pleased with your assistance. I will leave a five-star review and I will definitely consider purchasing your premium version of the plugin if I need one related to booking.

    Plugin Author wpdevelop

    (@wpdevelop)

    Thank you, so much.

    Really appreciate this.

    Kind Regards.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Emails in different languages are not functioning’ is closed to new replies.