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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 13 replies, has 3 voices.

Last updated by Long Nguyen 1 year, 9 months ago.

Assisted by: Long Nguyen.

Author Posts
August 23, 2023 at 1:07 pm #14278571

martinH-133

I have translated a product attribute (manufacturer) to 2 languages (german and english) Also the slug is translated, but the description of the attribute, will be in the original language even though the attribute value is translated and the description as well

hidden link

hidden link

August 23, 2023 at 1:59 pm #14278827

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello again,

As we discussed on the chat, please provide us with the staging website access when it is done. I am enabling the private fields for you.

Looking forward to your reply. Thank you.

August 24, 2023 at 10:35 am #14284141

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Martin,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

I've tried to create a new attribute and translate it, the translation description displays properly in the frontend. Here is the attribute page URL
hidden link

So I think it could be a server caching issue. Can you please try to clear the server cache or contact your hosting support and ask them to clear the cache and check this issue again?

Look forward to your reply.
Thanks

August 24, 2023 at 2:49 pm #14286597

martinH-133

Page Cache is disabled, I cleared the object cache via ssh, restarted the redis service. Also how can the half page be in English and the other half in German if it is a caching issue? I didn't translate the taxonomies shortly I copied the db weeks ago from the live site and just pushed the plugin / core updates there.

August 24, 2023 at 10:06 pm #14288353

martinH-133

It seems, that as soon as I change the slug of the translated category to something different then the original one, it seems to work normally again, but that would screw up my whole link structure.

hidden link
hidden link -> doesn't work, shows the german description and meta tags and so on,
hidden link -> shows the english content immediatly. So there is some mixup with the permalinks I assume?

August 28, 2023 at 3:38 am #14297073

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I see that issue after changing the slug of the test attribute to "wpml-test-de" as you said. But I do not see it occurs on a clean installation of WordPress, you can check it here hidden link

I suggest you contact your hosting support and ask them to check the server configuration file if there is an issue there. Or use a different attribute slug in the English language to fix this issue.

Look forward to your reply.
Thanks

August 28, 2023 at 10:56 am #14299715

martinH-133

Hi,

i checked logs and found out, that that issue is there since the migration from polylang a month ago. So it seems to have to do with a incorrect logic in the migration tool or something else. Before the migration (on polylang) everything was fine and the content was displayed correctly.

August 28, 2023 at 2:46 pm #14301655

martinH-133

Also, it seems, that if I switch on the option auto_adjust_ids it does work, but the db queries explode from about 200 to 600 on archive pages and way more on product pages. As that issue is then woocommerce related and not theme related (I do not overwrite the archive woocommerce template functions) i assume that's a malfunction?

August 29, 2023 at 2:26 am #14303569

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I can replicate the issue on my demo site and enable/disable the option "Adjust IDs for multilingual functionality".

It sounds related to this known issue https://wpml.org/errata/translated-term-slug-identical-to-the-original-term-slug/
By default, WordPress does not allow to have more than one occurrence of a slug for a specific taxonomy, so if you have the same taxonomy + slug but a higher term_id that might cause the issue. You can also read more here https://core.trac.wordpress.org/ticket/43271

Using the feature auto adjust ID would help to fix this issue but the downside for using it is slightly increased processing time and DB access, as WPML will hook to many functions and check that the output is correct for the active language.

You can use a caching plugin like WP Total Cache or WP Super Cache to reduce the DB queries in this case. Refer to the documentation
https://wpml.org/documentation/support/creating-multilingual-wordpress-themes/language-dependent-ids/

I hope that makes sense.

August 29, 2023 at 7:48 pm #14309015

martinH-133

Actually I am shocked :O That issue that you are linking had an open ticket at the WP Core Team which was especially fixed to solve the linked issue.. That ticket was solved and implemented 5 YEARS ago. That is horrible for such an regularly occurring issue and has nothing to do with my current issue.

As all parts of the page are translated without auto-ids and just the description and SEO information not I assume thats an mistake in the woocommerce integration, because you can't really prepare a theme to conquer that issue (I know you could overwrite all woocommerce functions but that wouldn't be sane for a theme dev).

Also I already have a major performance decrease after migrating from polylang and don't want to decrease the performance any further.

Could you please check if that will be fixed soon? It certainly does.

August 30, 2023 at 3:36 am #14309795

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I'm asking our 2nd tier support about this issue if there is another way to fix this. I will update you here when I have something to share.

Thanks for your patience.

September 6, 2023 at 10:24 am #14350913

martinH-133

I ran into another issue now with using the auto-ids. Because of that the cache cleaning functions won't work anymore except for the default language, because they get the slug by querying get_post which then returns always the default language post.

As already said, I assume that that has to be fixed in the WMPL Woocommerce Plugin, because the description of the taxonomies of blogs e.g. like "category" works like expected without the auto IDs.

Please get a response from the 2nd level asap. Can't understand how that issue is not affecting more people.

September 7, 2023 at 2:03 am #14355503

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I'm waiting for more feedback from our development team in this case. Meanwhile, they also suggest turning on the option auto adjust ID (by default) for the term and its translation which have the same slug.
I will update you here as soon as I have something to share.

Thanks.

September 8, 2023 at 1:28 am #14363245

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

As the translated slug is identical to the original slug, WordPress fails to fetch the proper (translated) term. We have a mechanism that replaces it with the translated ID, but this is disabled when "Auto adjust IDs" is disabled. It also can save a lot of headaches and make other themes compatible with WPML to display translation content. So our development team recommends enabling this option to fix the issue.

Or please use a unique slug for each term as a workaround. Thank you.

The topic ‘[Closed] Description of the attribute, will be in the original language’ is closed to new replies.