Skip Navigation

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

Problem:
The client is transitioning from mqTranslate to WPML and wants to maintain the SEO settings for the Czech version of their website. Specifically, they wish to keep the URL ending with '/cz' instead of the default '/cs' that WPML creates.

Solution:
1. We informed the client that changing the hreflang field for SEO purposes will not alter the language slug in the URL.
2. We advised the client to create a new language with the desired 'cz' slug by following the instructions here: Editing WPML's Languages Table.
3. Next, we instructed the client to duplicate or copy all content from the current Czech language to the new one, as detailed here: Displaying Untranslated Content on Pages in Secondary Languages.
4. We clarified that the name of the new custom language should be different from 'Czech' and that the translation field on the right should contain the desired display name for the language switcher.

If this solution does not seem relevant to your situation, please open a new support ticket in 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 5 replies, has 2 voices.

Last updated by Mihai Apetrei 1 year, 3 months ago.

Assisted by: Mihai Apetrei.

Author Posts
January 19, 2024 at 3:16 pm #15205524

ivanaS

I am making a new version of an existing website that used mqTranslate - for the Czech version of the website, the domain gasevzpery.sk/cz was used

When I used WPML now, the system created the address gasevzpery.sk/cs for the Czech version

In order to preserve SEO, I want to keep the flood setting URL at /cz

It is possible?

I have to change the hreflang cs to cz in the settings WPML > Languages > Edit Languages?

Thanks, Roman

wpml - Edit Languages.jpg
January 19, 2024 at 3:35 pm #15205661

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi Roman.

The hreflang field in the screenshot is something used for SEO and changing that would not change the language slug from the URL.

In order to change that, you will need to create a new language where you select that you want to use "cz":
https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/

Then, you have to duplicate/copy all the content from the current language to the new one:
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/

I hope that you will find all that information helpful.

Mihai Apetrei

January 22, 2024 at 8:57 am #15209944

ivanaS

Hi,

I tried to set it up but it keeps giving me an error and I can't figure out how to complete it - the only condition is that the URL contains: domain.sk/cz/

Could you please take a look at it - I have send the login data to Admin in the attachment email.

Roman

January 22, 2024 at 11:42 pm #15213817

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi Roman.

What error do you see? Can you please copy-paste the error message or a screenshot of the error and please let me know WHEN does that show up? What are the steps that you are taking that are making that show up?

If you can send me a screenshot of the full table of the new custom language to see what you are trying to add in each table column, maybe we can figure out why you get that error.

Please let me know.

Mihai

January 23, 2024 at 10:19 am #15215529

ivanaS

Hi Mihai,

here is a video showing my process and error: hidden link

Please what did I do wrong and how to set it up to work?

Thanks, Roman

January 23, 2024 at 8:31 pm #15218809

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi Roman.

The name should be different than Czech (and in the translation field on the right, put what you want it to show up on the language switcher).

As you see in this example (hidden link), it works fine.

Please let me know how that goes.

Mihai

January 24, 2024 at 7:55 am #15220036

ivanaS

Hi Mihai, thanks for your help, it works.