Skip to content Skip to sidebar

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

Problem:
You are trying to translate a string in the WooCommerce Product Addon plugin using WPML, but WPML does not detect the translatable string 'validate_msg' => __( 'is a required field', 'woocommerce-product-addon').
Solution:
We recommend enabling the "Auto-register strings" option in WPML. After enabling, visit the page that contains this string on the front end. Then, search for the string in the WPML String Translation.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please check the related known issues and verify that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum for further assistance.

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Osama Mersal 1 year ago.

Assisted by: Osama Mersal.

Author Posts
July 15, 2024 at 1:01 pm #15954534

Ivan Beemster

Background of the issue:
I am trying to translate a string in the plugin https://wordpress.org/plugins/woocommerce-product-addon/ using WPML. The specific string is: 'validate_msg' => __( 'is a required field', 'woocommerce-product-addon' ). The suggestion on https://wordpress.org/support/topic/translate-x-is-a-required-field/#post-17890473 does work.

Symptoms:
WPML does not pick up the translatable string 'validate_msg' => __( 'is a required field', 'woocommerce-product-addon' ) in string translation.

Questions:
Why doesn't WPML find the string 'validate_msg' => __( 'is a required field', 'woocommerce-product-addon' )?
How can I ensure all translations come from WPML?

July 15, 2024 at 1:25 pm #15954711

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please enable the "Auto-register strings" option and visit the page that contains this string on the front end.

After that, please search for the string in String Translation.

Best regards,
Osama