Skip Navigation

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

Problem:
The client reported that a translation was not displaying on the frontend of their website, despite having successfully translated everything else.

Solution:
We provided a workaround for the issue. Here are the steps we took:
1. Open the

app/public/wp-content/themes/thegem-elementor/gem-templates/products-extended/content-product-grid-item.php

file.
2. Locate the snippet around line 102 and replace it with the following code:

<?php <br />// WPML Workaround for compsupp-7150<br />$attribute_name = apply_filters('wpml_translate_single_string', $attribute_data->name , 'WordPress', 'taxonomy singular name: '.$attribute_data->name );<br />?><br /><span class="attribute-name text-body-tiny"><?php echo $attribute_name; ?>:</span>

We also mentioned that we would contact the theme author to ensure that this fix is included in their next update.

If this solution doesn't look relevant to your issue, please open a new support ticket at the 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.

Tagged: 

This topic contains 25 replies, has 3 voices.

Last updated by Kor 1 year, 5 months ago.

Assisted by: Kor.

Author Posts
January 13, 2024 at 1:41 pm #15181392

sharwinJ

Hi there, can you please give us an update?

January 13, 2024 at 1:51 pm #15181439

sharwinJ

Hi the owner of the site is missing sales in the maintenance mode so we are putting the site online on his request. Also we have deactivated and removed duplicator pro because we were getting security warnings about the plugin. When your working on it again please put it in maintenance mode again and install the plugin if required. When your not working on it we would appreciate it if you could remove the plugin and put maintenance mode off.

January 15, 2024 at 10:04 am #15184033

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thank you for your response.

I'm sorry for any inconvenience caused. I will ensure to deactivate the maintenance mode when I'm not actively working on the site. As I have a copy of the site, I will be working on the duplicate version, ensuring it does not impact your production site.

Regrettably, I do not have a solution at this time, and I will need to escalate this matter to our 2nd Tier Support team for a more in-depth investigation. I will get back to you with their feedback once I receive it.

January 15, 2024 at 11:57 am #15184800

sharwinJ

Alright Kor, appreciate your efforts. We will wait. Do you have any timeframe that I can communicate to the website owner?

January 15, 2024 at 6:07 pm #15186423

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your reply.

I've just escalated this and we should have feedback from our 2nd Tier Support within 2 days. Possibility with a workaround or a solution. Sorry again for the inconvenience and the delay.

January 17, 2024 at 4:29 pm #15196068

sharwinJ

Hi Kor,

Do you have an update for us?

January 18, 2024 at 2:30 pm #15200522

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thank you for your response.

I have some feedback, and our 2nd Tier Support team has asked me to reproduce the issue on the following sandbox site for further investigation: hidden link. I will provide you with an update shortly, and I apologize for any delay in the process.

January 18, 2024 at 3:30 pm #15200960

sharwinJ

Alrigh Kor

January 18, 2024 at 5:51 pm #15201738

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your patience.

I could replicate the issue here hidden link . Looks like a compatibility issue with the theme and our 2nd Tier Support will check further and revert back to us.

January 22, 2024 at 11:54 am #15211149

sharwinJ

Hi Kor,

Any progress on the matter?

January 22, 2024 at 2:12 pm #15211856

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your patience.

This is fixed and here is the workaround. I've applied the fix to your Website directly. This is what I've done.

Open the app/public/wp-content/themes/thegem-elementor/gem-templates/products-extended/content-product-grid-item.php file

Replace the following snippet (around line 102):

<span class="attribute-name text-body-tiny"><?php echo $attribute_data->name; ?>:</span>

With

<?php 
	// WPML Workaround for compsupp-7150
	$attribute_name = apply_filters('wpml_translate_single_string', $attribute_data->name , 'WordPress', 'taxonomy singular name: '.$attribute_data->name );
?>
<span class="attribute-name text-body-tiny"><?php echo $attribute_name; ?>:</span>

We will contact the theme author directly and this fix should be included in the next update.

January 24, 2024 at 8:02 am #15220038

sharwinJ

Thank you.