Background of the issue:
I am trying to load my own plugin domain correctly when adding information to WooCommerce emails. I want it to work the same way WooCommerce Multilingual loads the correct 'woocommerce' textdomain on emails, depending on the current language. This could be achieved by allowing plugin developers to add their textdomain via a filter, and the WooCommerce Multilingual would take care of everything, just like it does for the WooCommerce textdomain.
Symptoms:
My plugin information on the emails (for example, new order) are in the website language, not the current WPML language.
Questions:
How can I load my plugin domain correctly in WooCommerce emails?
Welcome to the WPML support forum. Thanks for contacting us.
While waiting for one of my colleagues to help with this ticket, and based on what you've described, allow me to walk you through some initial debugging steps.
If ou added your own textdomain in your theme or in a plugin, you will need to scan that theme or plugin to find the new strings recently added.
- Go to "WPML > Theme and plugin localization"
- Select your theme or plugin
- Click on "Scan selected theme/plugin"
In short:
- Go to "WPML > Support > Debug Information" (link)
- Copy the Debug Information from there.
- Find the private field I activated and paste that information.
Looking forward to hearing back from you.
Nico
The topic ‘[Closed] Loading correct plugin locale on WooCommerce emails’ is closed to new replies.