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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Bobby 9 months, 1 week ago.

Assisted by: Bobby.

Author Posts
June 12, 2023 at 10:01 pm #13812849

michaelS-313

We are a bit of a unique case where we are using WPML to split our site between US and UK content. So we are not really translating but cloning pages between these two versions so we can control UK and US product we review.

right now our default language is US and it goes to hidden link. I created a custom language for the UK which currently goes to hidden link. is it possible to change the en-gb to uk?

Thanks! - Mike

June 13, 2023 at 12:17 am #13813053

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi Mike,

Unfortunately, once a language is created you cannot change the language 'en-gb' in your case.

What you could do is the following:

1. Create a new custom language
2. Go to WPML->Translation Management->Bulk select and duplicate into the new one from the "old" one OR since you are not creating a translation do it from the default language to make sure it's done in the proper order

Now regarding the language code 'uk' this code is being used by the pre-loaded language for Ukrainian. You could add Ukrainian and change it's default locale and hreflang along with the flag to match United Kingdom

June 16, 2023 at 3:26 pm #13841087

michaelS-313

Thanks Bobby. To expand on this, if i go through setting up Ukrainian to basically show a United Kingdom flag and language will this have any SEO implications or anything related to search results in the United Kingdom if that makes sense?

June 19, 2023 at 4:27 pm #13853363

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

You will need to make sure to set the correct hreflang (for SEO) and the correct default locale to be able to pull from WordPress the correct language translations.

hidden link
The 2-letter region comes after the language and is optional. e.g., “en-US” for U.S. English and “en-GB” for Britain.

and the default locale would be en_GB per WordPress
https://make.wordpress.org/polyglots/teams/

June 19, 2023 at 4:35 pm #13853457

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Here is also an interesting article

hidden link

The topic ‘[Closed] How to change language URL’ is closed to new replies.