This thread is resolved. Here is a description of the problem and solution.
Problem:Can I use code or a SQL query to convert pt-pt to pt-be?
Solution:The best option here might be a workaround , as our developers will usually recommend against making that change with the database to avoid future issues.
Please go to WPML->languages->edit languages and add a new custom language
give the new language the desired code for "pt-br"
afterwards you can go to WPML Translation management dashboard and batch duplicate all your pages/posts to the newly created language for "pt-br" and once done either "hide" or remove the original language.
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.