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.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Mohamed Sayed 1 year, 4 months ago.

Assisted by: Mohamed Sayed.

Author Posts
September 3, 2023 at 3:43 pm #14332141

sajedO-2

''Select option'' button, in Arabic language cannot be translated using WPML String

September 3, 2023 at 10:07 pm #14332965

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

Please try the following steps and let us know if that helps:

- Go to WPML String Translation
- Scroll down to the "Auto register strings for translation" section and enable that option
- Visit the page where the string is added on the front end
- Go back to String translation and disable the auto register option
- Search again for the string and translate it

Kindly check this guide for more details: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#auto-register-strings-for-translation

Kind regards,
Mohamed

September 4, 2023 at 2:47 am #14333203

sajedO-2

Hello, thanks

The method succeeded, and I was able to translate the required field in the way you mentioned, and thanks.

Unfortunately, I found a field from Product Addons that could not be translated through the method you mentioned, nor from WPML String.

It’s a message that popped up when someone leave a required field empty , in Arabic language in in any belt product - “Belt Size”

Kindly please check screenshot

If you can check this from your end, i can send the website user and password.

IMG_0366.jpeg
September 4, 2023 at 9:30 am #14334905

Mohamed Sayed

Hi,

Please provide me with temporary access (WP-Admin) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

September 5, 2023 at 9:13 am #14341941

Mohamed Sayed

Hi,

The validation texts are already translated in "String Translation" but not on the front end.

I can replicate this on a clean installation, so this is probably a compatibility issue. I've escalated this ticket to our 2nd tier support team for further investigation and will update you once I have their reply.

September 5, 2023 at 11:50 am #14343785

sajedO-2

Well noted Mohamed, will be waiting your update, Thank you

September 5, 2023 at 9:25 pm #14347541

Mohamed Sayed

Please create a full backup then try the following steps:

1. Edit the file wp-content\plugins\woo-custom-product-addons\includes\config.php
2. Around line 30, replace the following code:

static function get_config($option, $default = false, $translate = false)
    {
        if (self::$values == false) {
            $cacheKey = 'wcpa_settings_'.WCPA_VERSION;

With:

static function get_config($option, $default = false, $translate = false)
    {
	    $my_current_lang = apply_filters( 'wpml_current_language', NULL );
	    if (self::$values == false) {
            $cacheKey = 'wcpa_settings_'.WCPA_VERSION. $my_current_lang;

3. Translate the strings in WPML > String Translation
4. Go to Forms > All Forms
5. Edit the translation of the form and resave it

Let us know your feedback please.

September 6, 2023 at 2:23 am #14348185

sajedO-2

Hello Mohamed, thanks for your effort and support, i wish that you can update the file from your end, unfortunately i have never changed any code before, i have done a full backup as requested.

Thanks you 🙏🏼

September 6, 2023 at 8:08 am #14349145

Mohamed Sayed

I applied the fix and the error messages appear translated now. Please check and confirm.

Kind regards,
Mohamed

Screenshot_150.png
September 6, 2023 at 9:50 am #14350429

sajedO-2

Thanks Mohamed, your work and effort is appreciated