Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

The client is developing a website using WPML and needs to switch the primary language from English to Swedish but encountered errors during the process.

Solution:

If you're experiencing similar issues when trying to change the primary language in WPML, we recommend following these steps:

1) Navigate to WPML>>Languages in the left sidebar.
2) In the "Site Languages" section, click on "Change default language".
3) Select your new default language from the list.
4) Click 'Save Changes'.
5) Go to Settings>>Permalinks and resave the settings.

If the problem persists or the solution seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket for further assistance at https://wpml.org/forums/forum/english-support/.

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.

This topic contains 1 reply, has 0 voices.

Last updated by Bigul 3 days, 23 hours ago.

Assisted by: Bigul.

Author Posts
February 24, 2025 at 4:24 pm #16742205

yousefB-3

<b>Background of the issue: </b>
I am developing a website using WPML with two languages: English and Swedish. I initially set up English as the primary language and manually translated all content. Now, I need to switch Swedish to be the primary language.

<b>Symptoms: </b>
I encountered errors when attempting to change the primary language from English to Swedish.

<b>Questions: </b>
I need your help to change the primary language from English to Swedish in WPML without encountering errors.

February 24, 2025 at 5:55 pm #16742585

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

To help you faster, I've enabled debug information for this support ticket. Please see this link for how to get this information from your site and give it to us: http://wpml.org/faq/provide-debug-information-faster-support/

We hope you have tried the following steps to change the default language.

1) Visit WPML>>Languages from the left sidebar
2) Look for the "Site Languages" section
3) Click "Change default language"
4) Select your new default language from the list
5) Save Changes
6) Visit Settings>>Permalinks, resave the settings

Please share more details about the following (the problems you have faced after changing the default language). It would be great if you could share a couple of screenshots or a screencast for a better understanding.

I encountered errors when attempting to change the primary language from English to Swedish.

--
Thanks!

Bigul