You will need to create a custom language, and you shouldn't change this code inside the DB for existing languages, as it would destroy the connection between the original contents and their translations.
If you'd want to proceed with the suggested solution and add the custom language, once the language is added if you have already created your Portuguese content (pages/posts./etc.).
You will need to go to WPML -> Translation Management to duplicate them from the original PT language to your new PT language:
- In the WPML -> Translation Management dashboard, make sure to switch the language to Portuguese, and select content that you want to duplicate
- In "2. Select translation options" duplicate them into the new PT language
After this, you can remove the old PT language in WPML -> Languages -> Site Languages -> Add / Remove Languages.
* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.
Kind regards,
Marsel
The topic ‘[Closed] change the URL country code’ is closed to new replies.