[Resolved] String translation not working for email templates
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate the email texts of the 'Five Star Restaurant Reservations - WordPress Booking Plugin' for your Italian website. Although you have translated the strings in the WPML string translation tool, the email notifications are still being sent using the German (DE) template instead of the Italian (IT) one. Solution: First, ensure that you have translated the specific strings related to the booking notifications. You can find these strings by searching for '[rtb-settings]template-booking-user' and '[rtb-settings]subject-booking-user' in the WPML string translation tool. Here is the link to directly access the string translation page: Translate strings. If translating these strings does not resolve the issue, it is possible that the strings are stored elsewhere in the database by the booking plugin. We recommend contacting the support team of the 'Five Star Restaurant Reservations - WordPress Booking Plugin' to inquire about the storage of these strings.
Please note that the solution provided might be outdated or not applicable to your specific case. If the issue persists, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, do not hesitate to open a new support ticket with us for further assistance.
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.
Background of the issue:
I am trying to translate the email texts of a plugin called 'Five Star Restaurant Reservations - WordPress Booking Plugin'. The strings show up in the string translations, and I have translated them. However, when I try to make a reservation in the IT language, it still sends the DE template. You can search in the string translation by '[rtb-settings]template-booking-user' and '[rtb-settings]subject-booking-user'. This is what I want to translate into IT on the Italian website.
Symptoms:
The translated string doesn't show up in the IT language, and the DE template is sent instead.
Questions:
Why does the translated string not show up in the IT language?
How can I ensure the email template is sent in the correct language?
Thanks for contacting WPML forums support. I'll be glad to help you today.
Please log in to this hidden link">sandbox site and install the "Five Star Restaurant Reservations" plugin.
After that, please try to replicate the issue. If the issue is replicable, please let me know how to reproduce it so I can check it and consult our compatibility team.
I tried to set it up but i am not even able to send emails from this installation.
Pleaes check it out on my site. I don`t want to waste too much time to recreate it on your staging server. Feel free to access my installation. There it is already setup.
I finally managed to set it up and it seems to be working on your site.
I tried now on my site to disable all plugins and change the theme but still it doesn`t translate the email. Can you maybe check what is conflicting on my site?
It seems like it is not working anymore since i updated the plugin to the premium version.
This is what they told me: Regarding the translation, the main change between the Free version and the Premium/Ultimate version for the notifications is the notifications table. The old notifications get imported into the new notifications table. It could just be that you need to re-apply the same steps you took on translating the old notifications into the new notifications.
I have no idea what the issue could be. It seems like it`s not having the translations anymore. Please help me with this. I want to set the website live and this is the only issue which is left.
Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.