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
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.
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.
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
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.