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 ?
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.
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.
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...
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 !
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.