Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 8 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 9 months ago.

Assisted by: Long Nguyen.

Author Posts
March 9, 2023 at 5:27 pm #13209993

davidD-150

Hello, I am setting up a multilingual site for B&B reservation using the Bellevue Theme, which has the MotoPress Booking Hotel plugin included.
I am currently working on the Admin pending/confirmation emails that are sent to the customer once the reservation process is complete.
I tested with a new customer, translation of the emails is working fine except the fields that are included in the %reserved_rooms_details% variable. These include Adults, Children, Accommodation, Accommodation Rate, Bed Type and Additional Services values.
I looked all those values in the WPML String Translation tab and translated them one by one, but the email is still sending the default (English) values instead of.
The rest of the email is translated correctly. See attached email with the wrong items highlighted in RED.
Can you help me further with this issue please ?

Admin email translation problem.jpg
March 9, 2023 at 6:25 pm #13210243

davidD-150

I forgot to mention that I used WPML > Theme and plugin localization option to scan the Hotel Booking plugin, with more than 2000 strings as result. I also tried the 'Look for strings while pages are rendered' option to discover additional strings that can't be detected in the PHP code.

March 10, 2023 at 3:12 am #13213045

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi there,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Firstly, I recommend increasing the WP memory limit. While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details
https://wpml.org/home/minimum-requirements/.

If it does not help, then it could be a compatibility issue between the Hotel Booking and WPML we will address that by reporting this to the compatibility team.

To be able to report the compatibility issues we need to replicate the issue on a clean installation. I created a clean installation of WordPress, WPML, and all necessary WPML add-ons. You can access the WordPress dashboard using the link below:
hidden link

Kindly follow the steps below:

- Install the Hotel Booking plugin.
- Try to replicate the issue.
- Then let me know the steps to replicate it.

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Additionally, I found a ticket that a user has a similar issue and he can translate the field %reserved_rooms_details% on his site. You can take a look here https://wpml.org/forums/topic/i-need-help-with-translate-e-mail-for-hotel-booking-motopress/

Look forward to your reply.
Thanks

March 20, 2023 at 5:37 pm #13287071

davidD-150

Hello,

Sorry for my late reaction. I tried to increase the WP memory limit on my WP install, but the WPML string in question is still not translated. Could you send me again the (expired) link to the sandbox so that I can try to replicate the issue from a clean install ? The problem is that my Hotel Booking plugin is bundled with a ThemeForest theme (Bellevue), so I don't know whether I will be able to download and install the plugin alone...

Best regards,
David

March 21, 2023 at 1:53 am #13288979

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

Here is the new sandbox site hidden link

Please install the necessary plugins or theme to replicate the issue and let me know the steps to replicate it.

Look forward to your reply.
Thanks

March 23, 2023 at 5:15 pm #13317815

davidD-150

Hi again,
I have installed the theme and associated plugin, everything is running fine.
I have translated some pages to FRENCH in order to be able to simulate the process of making a reservation.
At first sight, every page (including the fields containing automated strings) seem to be translated correctly.
I have created a reservation on my name with my email to check whether emails that are sent automatically during the reservation process are also translated correctly.
A first email called 'pending confirmation by Admin' is sent to the customer after he has viewed the total price of the reservation and entered his personal details; After confirmation by Admin, a second email 'confirmed booking' is being sent to the customer as well.
Problem : I haven't received any of those emails, so I can't check their correct translation ; Is this linked to the fact I am working from the 'sandbox' ? On my WP installation, this happens without any issue; So could you help me further to fix this ? Many thanks in advance !

March 24, 2023 at 5:07 am #13320067

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

The mail system on the sandbox site might not work correctly to send the email to an address. You can use the plugin WP Mail Logging (https://wordpress.org/plugins/wp-mail-logging/) to view the email sent from the sandbox site as well. Note: I've installed it on the sandbox site.

I also don't see the plugin WPML String Translation activated to translate the theme and admin strings. Please translate the theme, admin strings, post types ... and let me know step-by-step to replicate the issue on the sandbox site.
Please read more in the documentation https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Look forward to your reply.
Thanks

April 3, 2023 at 2:10 pm #13391143

davidD-150

Hello,
May I ask you to resend the link to the sandbox please ? The previous one has expired...

Many thanks in advance,
David Dupuis

April 4, 2023 at 1:18 am #13395119

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

Here is the new sandbox site hidden link

Please try to translate the theme strings, admin strings, post types ... and check this issue again. Kindly follow the documentation https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

Look forward to your reply.
Thanks

The topic ‘[Closed] mphb strings in reserved_rooms_details not translating’ is closed to new replies.