Skip to content Skip to sidebar

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: Europe/Kyiv (GMT+02:00)

This topic contains 7 replies, has 0 voices.

Last updated by Andrey 2 days, 4 hours ago.

Assisted by: Andrey.

Author Posts
November 18, 2025 at 10:11 pm #17589806

nickS-28

Background of the issue:
en in the vode does not change from en to en-gb as specified, resulting in URLs that include /en/ instead of /en-gb/, no way to edit the languagee as locale exists, useless support from two supporters so far

Symptoms:
en in the vode does not change from en to en-gb as specified, resulting in URLs that include /en/ instead of /en-gb/, no way to edit the languagee as locale exists, useless support from two supporters so far

Questions:
en in the vode does not change from en to en-gb as specified, resulting in URLs that include /en/ instead of /en-gb/, no way to edit the languagee as locale exists, useless support from two supporters so far

November 18, 2025 at 10:53 pm #17589856

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

First, I would like to clarify that the existing language code such as /en/ cannot be changed to /en-gb/. However, you can create a new custom language and assign /en-gb/ as its language code.

If, when adding a custom language, you see a message such as “locale en_US already exists”, this is expected. It means that the locale (for example, en_US) is already assigned to another language — usually the default English language in WPML.

To resolve this and assign the locale to your custom language, please follow these steps:

How to free a locale and use it for a custom language
1. Go to WPML → Languages and activate the default English language if it is not already active.
2. Edit the English language and temporarily change its locale to something else (for example, en_EN or another unused value).
3. Save the changes.
4. Now add your custom language and assign the desired locale (for example, en_US) to it.

Please note: en_US is only an example.
If WPML warns that a different locale is already in use, activate the language that uses it, change the locale to another value, and then assign the freed locale to your custom language.

More details:
https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/#add-custom-languages

If this is not what you meant, could you please elaborate a bit more so I can better understand your goal?
Screenshots also help — you can upload one below the comment field.

November 20, 2025 at 6:48 pm #17596906

nickS-28

change this to en-gb

Screenshot 2025-11-20 194723.jpg
November 20, 2025 at 10:17 pm #17597198

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for your feedback.

Our team is aware of this case and has created a documentation article explaining how to adjust it:

https://wpml.org/errata/how-to-add-english-united-states-as-a-custom-language-to-use-as-default-or-translation-language/

November 20, 2025 at 10:25 pm #17597215

nickS-28

i dont see how it explains changing the code. only the things we have adjusted already. I guess colors work in explaining? green is good, red is bad, and how do we fix the red

wtff.png
November 20, 2025 at 10:37 pm #17597237

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for the explanation.

I incorrectly interpreted your previous screenshot. The existing language cannot be modified. However, you can add a new custom language where you can specify the luggage code en-gb. I assume that you already know how to do this.

November 20, 2025 at 10:38 pm #17597238

nickS-28

then it just says the languade code already exists.

November 20, 2025 at 10:41 pm #17597241

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

When you try to add a new custom language with the code en-gb? Can you show me the screenshot? The code en-gb should be free.