Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to translate all strings for an email sent to a customer, but the translation does not apply to the email title and subject, although it works for the body of the email.
Solution:
We recommend checking the profile language of the account used to create the booking. You can find this setting by navigating to Users-> Profile-> Language in your WordPress dashboard. If the profile language is set to anything other than Site Default, please change it to Site Default and create a new booking.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend opening a new support ticket. Additionally, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, you can also visit our support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 34 replies, has 2 voices.

Last updated by Osama Mersal 12 months ago.

Assisted by: Osama Mersal.

Author Posts
June 25, 2024 at 10:03 am

lamineD

Background of the issue:
I am trying to translate all strings for an email sent to a customer. The issue can be seen at hidden link

Symptoms:
Translation does not apply to all strings for an email sent to a customer. It applies to the body but not to the email title and subject.

Questions:
Why does the translation not apply to the email title and subject?
How can I ensure that all strings, including the email title and subject, are translated?

June 25, 2024 at 10:28 am
June 25, 2024 at 10:37 am #15819387

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Please log in to this sandbox site and install the Yith Booking plugin. (hidden link)

After that, please create a test email and translate it to replicate the issue. If the issue is replicable, please let me know how to reproduce it to consult our compatibility team.

Best regards,
Osama

June 25, 2024 at 11:13 am #15819745

lamineD

Osama, I need you to dlete this screenshot because it's public. There is my comapany name, etc.

Thanks

Regards

June 25, 2024 at 11:51 am #15820171

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I deleted the screenshots.

Best regards,
Osama

June 25, 2024 at 3:22 pm #15822570

lamineD

Ok thanks.

i am waiting for the sandbox email.

Regards

June 25, 2024 at 3:26 pm #15822609

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I shared the sandbox site login URL (One Click Login) in this reply. (https://wpml.org/forums/topic/translation-does-not-apply-to-all-strings-for-an-email-sent-to-a-customer/#post-15819387)

You can check the sent emails using the mail log plugin. (hidden link)

Best regards,
Osama

June 25, 2024 at 9:03 pm #15825543

lamineD

Hi,

Sorry, I didn't see it, and the notification was not activated by default at WPML for some time, which is a pain.

I need you to add the plugins to strings, but I don't know how.

emails plugin

Regards

Capture d’écran 2024-06-25 230232.png
June 26, 2024 at 6:32 am #15830066

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Here are the strings. (hidden link)

Best regards,
Osama

June 26, 2024 at 8:12 am #15831036

lamineD

Hi,

I can't access admin panel.

Error message : Sorry, you do not have permission to access this page.

Could you resent password

Regards

June 26, 2024 at 8:15 am
June 26, 2024 at 9:47 am #15832171

lamineD

Hi,

I can't reproduce the error in your sandbox environement. The mail is in french.

Can we go on on my staging environement which is the perfect copy of production site.

Regards

Capture d’écran 2024-06-26 114518.png
June 26, 2024 at 9:51 am #15832194

lamineD

By the way, now All strings are in english when I create a booking in profuction site.

June 26, 2024 at 9:57 am #15832251

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

By following these steps on the staging site, please check if the issue persists in a minimal environment.

1- Deactivate all the plugins except those active ones on the sandbox site.
2- Switch to a WordPress default theme like Twenty Twenty-one.

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please backup your database before performing the above test ❌

If the issue persists in the minimal setup, please don't activate the plugins and let me know so I can check it.

Best regards,
Osama

June 26, 2024 at 10:13 am #15832411

lamineD

Ossama,

For me, is not a question of plugins conflict at all and I takes a lot of time to do what you ask.

I just noticed that the string "html" didn't have translation so I translated to english and use "html" too.
Now, the email body is in french again.

I also noticed when I browse at different time the 3 strings :

[woocommerce_yith_wcbk_customer_booking_notification_before_start_settings]subject
[woocommerce_yith_wcbk_customer_booking_notification_before_start_settings]custom_message
[woocommerce_yith_wcbk_customer_booking_notification_before_start_settings]heading

that it asked to update the translation while i didn't make any change.

It seems DB is not updated.

Is their a way to flush DB or cache to see if it works?

Regards

Capture d’écran 2024-06-26 121005.png