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
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

This topic contains 7 replies, has 1 voice.

Last updated by Bigul 3 months, 3 weeks ago.

Assisted by: Bigul.

Author Posts
December 9, 2024 at 3:37 pm #16493767

cedricV-14

<b>Background of the issue: </b>
I am trying to translate a Dutch (NL) article to English and then to French (FR). When translating to English, there is no issue, but translating to French afterwards results in the English slug being used. Translating first to French and then to English works correctly. I also want to know if it's possible to translate the slug immediately when using the Gutenberg sidebar, as currently, everything except the slug is automatically translated. We have selected to translate the slug manually because we create shorter slugs in Dutch.

<b>Symptoms: </b>
When translating a Dutch article to French after English, the slug is incorrectly translated to English. Additionally, the slug is not automatically translated with the rest of the article.

<b>Questions: </b>
Is it possible to translate the slug immediately when using the Gutenberg sidebar?
And create the correct translation (now EN in FR) for the slug?

Example video: hidden link

December 10, 2024 at 1:17 pm #16498355

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly. There are a few options you can use, in your case maybe the best would be to use a slug from the translated title, which is probably the settings you have now. You can also choose to translate the slug.

Go to WPML → Settings. Scroll to Translated documents options. Under Page URL, choose the Translate option. Click Save.

- https://wpml.org/documentation/getting-started-guide/translating-page-slugs/#:~:text=By%20default%2C%20when%20you%20send%20pages%20and%20posts%20for%20translation%2C%20WPML%20automatically%20translates%20their%20URL%20slugs%20using%20the%20title.%C2%A0

Let us know how this goes and if it helps.

Regards,
Drazen

December 12, 2024 at 8:47 pm #16509418

cedricV-14

Hi Drazen,

Thank you for your feedback.

Directly translated from the title is not what we need. A lot of the titles are quite long and that's why we create a shorter version of the slug (in dutch). We would like that to be directly translated to the other 2 languages. Now we always have a extra step between (and a bug for the french translation).

December 16, 2024 at 3:11 pm #16517963

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. Sorry for the delay happened because of the weekend.

By default, we have three options in WPML >> Settings >> Translated documents options>>Page URL. The first two options, *Auto-generate from the title (default)* & *Translate (this will include the slug in the translation and not create it automatically from the title)*, will not support your requirement, am I correct?

If so, we have a request. Can you please share a couple of screenshots for a better understanding of the following. This requires further checking, especially *a bug in the French translation*.

We would like that to be directly translated into the other 2 languages. Now we always have an extra step between (and a bug for the French translation).

--
Thanks!

Bigul

December 17, 2024 at 11:42 am #16521373

cedricV-14

Hi Bigul,

- Screenshot 1: Click on the + to translate the dutch article to french.

- Screenshot 2: The translation editor opens and translates the complete article to french except for the URL/slug

- Screenshot 3: If we translate manually (by clicking on the + sign on the previous screenshot) the translation of the URL is in English, not French.

I've added a video for better understanding:
hidden link

screenshot2.png
screenshot3.png
screenshot1.png
December 18, 2024 at 4:54 am #16524046

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the details. As per the screenshots, the translation is not 100% complete now. So please click on the *Save* button after translating the Slug and then press the *Complete* button on the bottom of the screen. Then make sure you are getting the expected results or not. Refer to the attached image for more details.

--
Thanks!

Bigul

Screenshot-1.jpg
December 18, 2024 at 6:23 am #16524230

cedricV-14

Hi,

The problem is not that the slug is not translating. We know that we have to save it to get the slug translated.

The problem is that the slug is not correctly translated. You can see in the example that the translation of the text is in French via DeepL. The slug however is translated in English. THAT is the bug.

Could you look into this?

December 18, 2024 at 5:14 pm #16527074

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. Please upgrade to the latest version of WPML (4.6.15 series) after a full site backup {mandatory} and clear all types of caches.

After that create a simple post or page for testing, then translate it to a secondary language, and ensure the issue exists or not.

--
Thanks!

Bigul

The topic ‘[Closed] Bug when translating slug to FR’ is closed to new replies.