E-mail translation issue when using WPML
-
Hi there,
We’ve been facing an issue with Woocommerce E-mails in conjunction with your plugin and WPML: Instead of the entire E-mail being in the order language, part of it is being sent in the site language.
We asked the WPML team to look into this and they came back saying it is due to some code in your plugin – in particular the code on wp-content\plugins\woocommerce-pdf-invoices-packing-slips\includes\class-wcpdf-admin.php – line 555:// Switch back to the site locale. wc_switch_to_site_locale();
They suggested changing this to:
//WPML workaround if (! class_exists('SitePress')) { // Switch back to the site locale. wc_switch_to_site_locale(); }
(or it could be changed to anything else, in case you think a better solution is available).
Do you think it might be possible to make the aforementioned change to the code, so that E-mails can be properly translated?
Thank you very much
- The topic ‘E-mail translation issue when using WPML’ is closed to new replies.