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.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

Tagged: 

This topic contains 0 replies, has 2 voices.

Last updated by Bobby 5 days, 2 hours ago.

Assisted by: Bobby.

Author Posts
November 26, 2024 at 1:05 pm #16444853

jeanneK

This same tile still has problems - now appearing without any producy options - see screenshot

Screenshot 2024-11-26 at 15.03.34.jpg
November 26, 2024 at 1:42 pm #16445182

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

You need to go to Products > Product Options and inside the Group add the product to the diplay options.

This earlier solved the issue on my test.

December 3, 2024 at 7:51 pm #16473595

jeanneK

Hello Andreas,
I received the following from Barn2 - so the missing translations are being handed back to you.
With thanks,

From: Barn2 Support <support@barn2.com>
Subject: Re: Translation updates for Gardens of Discovery on Pátmos until 20/November/2024
Date: 29 November 2024 at 18:56:40 EET
To: "The Gardens of Discovery Team!" <info@gardensofdiscovery.org>

Hi,

Thank you for your patience.

I have spoken with WPML regarding your issue and they have confirmed they will continue assisting you. Please contact them, they should be able to help you. If there are compatibility issues that need Barn2 assistance, WPML will contact us directly.

If you have other questions or concerns, please let me know.

Regards,

Avatar of Carl D Carl D
Support Team Lead

December 6, 2024 at 12:54 am #16484238

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Andreas is currently away and I will be taking over this ticket.

Please note that we can only work on 1 issue per ticket, as that will help us keep organized in case an issue needs to be escalated to our dev our compatibility teams as well as give you a faster resolution.

With that being said, it seems like there have been a few issues mentioned in this thread.

#1
I would like to verify that the original issue of the thread is this:

"The English version is working fine, but the Greek version of Product Options is not working. The problematic areas are:

hidden link

(using this one as an example out of the 3)"

#2
Is the issue you are experiencing this:

"The title for the option is not being translated but appearing as a series of question marks (?????). Instead of Greek text, I see English text and verification requests sometimes."

#3 is this issue still happening?

When I visit the product here:
hidden link

I do not see any ???? question marks, instead I can see the translations OK

'Εισάγετε έως 15 χαρακτήρες συμπεριλαμβανομένων των κενών'

December 6, 2024 at 1:04 am #16484242

jeanneK

Hi Bobby,

#1 was correct
- the current aspect of the issues with WPML/Barn2 relates to strings neither being found nor translated.

See from November 15 at 9:36 PM

A lot of Barn2 text strings cannot be found thus not translated

J

December 10, 2024 at 7:14 am #16496042

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi Ioanna,

Ref. https://wpml.org/forums/topic/bar2-product-options/#post-16408598 #1. I did not locate

#2 I can see the non translated string

#3 I can see the non translated string

Testing on this page:
hidden link

If possible, please re share the access details with me, the previously shared ones no longer work.

Also, it's important to note that our compatibility team is in open communication with the Bar2 plugin authors to ensure that the 2 plugins are made compatible as there have been notices of issues.

December 10, 2024 at 7:35 am #16496157

jeanneK

Hi Bobby,
Please send me your email address so I can provide site access.
With thanks

December 13, 2024 at 8:03 am #16510237

jeanneK

Hi Bobby,
I have added you as a user - you should have received an email re same.
Why such long delays in responding??
Thanks,
Jeanne

December 13, 2024 at 8:12 am #16510278

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I have received the email and access works, please verify that I am an admin user as at the moment I have limited access.

Once I have feedback based on my results I will update you here.

December 13, 2024 at 8:23 am #16510310

jeanneK

yes, you are admin user

December 13, 2024 at 8:31 pm #16512598

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you, I have admin access now.

#1 Select an option - the dropdown comes from the Barn2 plugin the string that was translated in String Translation was from WooCommerce which is why it did not show in the front end.

To resolve I went to WPML->Theme and Plugins Localization -> select 'WooCommerce Product Options' and scan it. It was not scanned yet and many strings were missing.

Once finished the string pulled into string translation and I was able to translate it.

#2 The string in red font 'Please select an option'

This string comes from Woo Product Options as well, however, it is not picked up by WPML String Translation.

the string is located in /assets/js/src/wpo-single-product/field-validation.js LINE 324

	/**
	 * Custom required validation for radio groups.
	 *
	 * @param {Object} field
	 */
	function handleRadioRequiredValidation( field ) {
		const selectedInputs = Array.from( field.inputElements ).filter( ( input ) => input.checked );
		const firstInput = field.inputElements.item( 0 );

		if ( selectedInputs.length === 0 && isFieldRequired( field ) ) {
			firstInput?.setCustomValidity( __( 'Please select an option.', 'woocommerce-product-options' ) );
			firstInput.required = true;
			return false;
		}

		firstInput?.setCustomValidity( '' );
		firstInput.required = false;

		return true;
	}

I can also see that there is a .mo file available for the Spanish version of this string but not for Greek.

NOTE: As a test I added a .mo file with the .mo translations for 'Edit' and "Please select an option.' but that did not help either.

#3

The edit string is most likely not prepped for translation as it is an admin string and not a string users see in the front end, we have seen plugins opt this route many times.

I will discuss #2 and #3 with our team and update you as soon as I have more information, in the meantime please confirm that the dropdown option is translated as expected.

December 24, 2024 at 4:54 pm #16544314

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Regarding the items that are not resolved our team did confirm that they are related to this issue -- https://wpml.org/errata/translating-strings-from-javascript-files-using-wp_set_script_translations/

Currently there is no workaround available, however, we are in direct communication with their team and we will be releasing a fix for this.