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
- 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 -
- 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Nicolas V. 1 year, 10 months ago.

Assisted by: Nicolas V..

Author Posts
August 21, 2023 at 11:43 am #14263419

gregM-13

Tell us what you are trying to do?
We are currently translating the English site into Serbian, and would like to keep all page and post slugs in English, using a subfolder for Serbian content (hidden link). In WPML > Settings > Translated documents options > Page URL, we've selected "Copy from original language..." but when we go to automatically translate a post or page, the slug still ends up being translated. Unless Slug translations, " Translate custom post and taxonomy base slugs (via WPML String Translation)." is disabled.

Is there any documentation that you are following?
https://wpml.org/forums/topic/i-want-house-the-same-url-slugs-as-in-original-language/

Is there a similar example that we can see?
Here's a test article we set up today. In English: hidden link
In Serbian: hidden link

What is the link to your site?
hidden link

August 21, 2023 at 9:42 pm #14266985

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

Welcome to the WPML support forum.

"Copy from original language if translation language uses encoded URLs".
- This option will work only if your secondary language uses encoded URLs.
- You can force encoded URLs by going to "WPML > Languages > Edit languages"
- On the next page you will see a table with all your languages, make sure to select "YES" in the column "Encode URLs" for all your secondary languages (not the main one)
- Click on "Save"
- Try to translate a new page to see if it worked

August 22, 2023 at 9:01 am #14269133

gregM-13

Hi Nicolas,

That worked - thank you.

What would be the easiest way to update all the slugs on previously translated pages and posts so that they are also in English?

August 22, 2023 at 2:55 pm #14272385

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hi,

Do you use automatic translation? You could try to resend all pages to translation. We use "translation memory" so you won't be charge for content that has been translated already.

August 24, 2023 at 11:47 am #14284477

gregM-13

Hi Nicolas,

We do use automatic translation. I've tried to resend an article that's previously been translated (with the slug also translated), however as there aren't any changes to the post itself, it won't let me resend for automatic translation.

If I choose "Overwrite existing translations" then I will pay twice to translate what's already been translated on the page.

Please advise!

Screenshot 2023-08-24 at 12.45.03.png
August 24, 2023 at 4:09 pm #14287283

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hello,

You can make a small edit on your original article, like adding a space at the end of the article title. Then re-save this article and it should be enough to trigger an "update needed" for the translation. But unfortunately that be a manual work for each article.

The topic ‘[Closed] Want to keep all page and post slugs in English’ is closed to new replies.