Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with the stock status not being translated in WooCommerce when using WPML, it might be due to the strings being custom coded without a registered text domain.
Solution:
We recommend asking your developer to add text domains to these strings. Once that's done, you can use WPML's String Translation to translate them. For more details on how to register strings with a text domain, please visit https://wpml.org/documentation/support/how-to-use-gettext/
To learn how to use WPML's String Translation, check out https://wpml.org/documentation/getting-started-guide/string-translation/

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket at WPML support forum.

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 3 replies, has 0 voices.

Last updated by youssefT-3 6 days, 6 hours ago.

Assisted by: Kor.

Author Posts
September 17, 2025 at 2:30 pm #17410214

youssefT-3

Hi Kor,

Thanks for your support. Everything seems to be working now.

One last question: the stock status (for example “Op voorraad”) doesn’t seem to be translated yet. Can you confirm if this will be automatically handled by WooCommerce + WPML for all languages, or if we need to configure this manually?

Kind regards,
Alex
GetVitaCore

September 17, 2025 at 2:49 pm #17410377

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. Are you working on the homepage? I can see that you're editing it as shown in the attached screenshot. I need to edit the homepage to check on the issue.

Screenshot_162.png
September 17, 2025 at 3:00 pm #17410428

youssefT-3

I’m not working on the homepage anymore, so you can proceed with your checks. Earlier I was briefly in the editor, but it’s closed now. Thanks for your support.

September 17, 2025 at 3:13 pm #17410471

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. I’ve checked and it looks like the strings are custom coded here:
hidden link

For these strings to be translatable, they need to be registered with a text domain, as explained here:
https://wpml.org/documentation/support/how-to-use-gettext/

Please ask your developer who created that custom section to add text domains to the strings. Once that’s done, you can use WPML’s String Translation to translate them:
https://wpml.org/documentation/getting-started-guide/string-translation/

September 17, 2025 at 4:12 pm #17410721

youssefT-3

Thank you Kor for your help and clear explanation. You pointed me to the right place in the code and that helped us to move forward. I appreciate your support and responsiveness. The issue is resolved on our side now.