Background of the issue:
I want to add the region name in the subdirectory of my WordPress site using WPML. Specifically, I want to change the key/code of the standard language to include both the language and region code in the URL, for example, /en/gb/ instead of just /en/. I understand that I can create a new language, but I can't do it for the exact same language and region as the predefined ones. I am guessing that the only way is to somehow change the default implementation, possibly by updating the .mo file.
Symptoms:
I am unable to change the key/code of the standard language to include the region name in the URL.
Questions:
How can I change the key/code of the standard language to include the region name in the URL?
Is it possible to update the .mo file to achieve this?
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.