Skip Navigation

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

Problem:
The client is experiencing issues with translating content after mapping it to English GB while using a custom language with the language code en-gb. Adding glossary terms also fails. They are further concerned about how the URL will display for different language versions and whether the system will change the URL when duplicating content for English UK.

Solution:
1. The English mapping option can only be used once and is already utilized for the site's default language. We recommend duplicating the original English content to English UK and English AU.

2. WPML will automatically handle the URL display for different language versions. Each language has a code in WPML > Languages > Edit languages, which will be used in the URL format. For example, if the site is set to "Directories per language" and you create a custom language using the code "en-gb", then English UK will be available at http://www.sitename.com/en/.

3. If you create a duplicate for English UK, you will find it at: https://www.sitename.com/en-gb/yourpage. The original site URL and other URLs will remain unchanged.

If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at 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.

This topic contains 17 replies, has 3 voices.

Last updated by Andreas W. 3 months, 3 weeks ago.

Assisted by: Andreas W..

Author Posts
September 24, 2024 at 12:12 pm #16214573

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

The WPML Multilingual CMS plugin handles the URL format and language settings for your site.

If you create a custom language and use the code en-gb then the translated homepage for English UK will be at:

hidden link

If the you translate he page Norway or in this case create a cuplicate for English UK, then the translated page will be at:

hidden link

September 24, 2024 at 12:29 pm #16214741

eamonnT

sorry but this does not clearly answer my question, can I raise this issue higher priority

September 24, 2024 at 1:47 pm #16215244

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

My apologies for maybe not beeing clear enough. I will comment direclty on your questions:

1) Why is the system not translating the content after mapping it to English and adding glossary terms for the English GB version?

Answer:
The English mapping option is only usable once and is already used for site default language. We suggest you duplicate the original English content to English UK and English AU.

2) Will the URL display reflect that the duplicate is for example an American version of the page?

Answer:
Yes, WPML will handle this automatically. Each language has a code in WPML > Languages > Edit languages.

This code will be used inside the URL Format. If the site is set to "Directories per language" and you create a custom language using the code "en-gb" then English UK will be available at hidden link.

Your example:
hidden link
hidden link

Yes, if there is a page called USA and a subpage called Miami, then this would be the expected URL format with WPML. There is no need for an additional plugin.

This is all handled at WPML > Languages > Language URL format.

3) What happens with the URL structure example I have
original
hidden link

and dutch version
hidden link

if make duplicate will system change URL?

so I would like it to be example /en-GB/ for British English

Answer:
If you create a duplicate for English UK, then you will find it at:
hidden link

The original site URL and other URLs will remain unchanged.

4) Also should I delete the new language that I set up?

I am not sure which language you refer to. If you delete a language which already has pages, menus, post, ect. assigned you should remove this translated content first.

5) This most be a common issue in travel websites that are multilingual? why no easy solution or documentation, I understand not your fault but please log this with dev team as a serious flaw .. unless I am missing something?

Answer:
I am not sure which issue you refer to. Handling custom languages and their URLs is expected as explained above. When it comes to the language mapping issue, this is something that will possibly change in the next major update for WPML 4.7.

6) sorry i mean how get en-GB in the duplicated pages url ?
WPML handles this automatically, as explained above.

7) Maybe you do not fuly understand you understand what I am trying to achieve? Please help can it be achieved as I am seeing other website doing it :

Example for English American speaking using RV instead of campervan etc
hidden link
for English UK Speaking using Campervan
hidden link

So how can I do this in WPML or are they using a different plugin?

Answer:
WPML handles this automatically, as explained above.

Let me know if you still have doubts or further questions.

Best regards
Andreas