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.

This topic contains 1 reply, has 0 voices.

Last updated by Nicolas V. 3 weeks, 2 days ago.

Author Posts
March 14, 2025 at 4:01 pm #16817896

Marco

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?

March 17, 2025 at 11:27 am #16824115

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

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"

https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#scan-theme-or-plugin-to-update-translations

To assist you further, could you please provide us with your debug information. This information is crucial for us to understand better your configuration: https://wpml.org/faq/provide-debug-information-faster-support/

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.