Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 23 replies, has 2 voices.

Last updated by Marsel Nikolli 3 months, 3 weeks ago.

Assisted by: Marsel Nikolli.

Author Posts
August 9, 2024 at 5:01 am #16054784

mickd-3

Background of the issue:
We developed the site in Italian first and added Hungarian and English language. Now we need to change the main language to English, so when we further add the languages, we like to translate it from English.

Symptoms:
No specific issue or error message mentioned.

Questions:
How to change the main language to English in WPML?

August 9, 2024 at 6:49 am #16054976

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

You can change the site's default language like this, so on WPML -> languages. However note that even in such cases, pages that were created in English will have to be translated from English to other languages, more precisely if you change the site's default language, it will not change the language of already created pages.

In general, changing the default language does not alter the structure, what it can do though is that for example if your homepage is not translated it will show 404, so you need to take care of that.

Let me know if you have further questions.

Regards,
Marsel

14097669-change_default.jpg
August 9, 2024 at 7:11 am #16055101

mickd-3

Hi Team,

i tried to change that, but it is changing the Domain as well... Please check the screenshot...

WhatsApp Image 2024-08-09 at 10.54.52_b32acb0c.jpg
August 9, 2024 at 7:15 am #16055134

mickd-3

For English: painfreecream.net
Hungarian: painfree.hu
Italian: painfreecream.it

but after changing the default language, it is changing the domain to:

English: painfreecream.it
Hungarian: painfree.hu
Italian: it.painfreecream.it

August 9, 2024 at 7:17 am #16055166

Marsel Nikolli

Hi,

When chaning the default language and using different domains per language, the corresponding domain will be switched as the main one as well. That is how it works, in case the domains are wrong you would need to set up the domains correctly for the language.

Please find more information in this link.

---

If you need further assistance, please share WPML support debug information from your site. To provide the debug information:

- Login to your site and go to WPML -> Support, click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire text box content and copy it.
- Go back to our support forum, find the debug information box, and paste it.

More information on this link.

Regards,
Marsel

August 9, 2024 at 7:28 am #16055220

mickd-3

Debug Information is attached...

So, i need to change the Different domain option to other options and then make painfreecream.net as main domain by pointing painfreecream.it and painfree.hu...

and then again set the different domain per language option?

August 9, 2024 at 7:34 am #16055237

mickd-3

if the corresponding domain will be switched as the main one as well...

Then only painfreecream.net need to be assigned as main domain right, why it is taking painfreecream.it and then making Italian domain as it.painfreecream.it?

Please check the below SS for current setup and once default language is changed...

Languages-‹-Painfree-Cream-—-WordPress-2-.png
Languages-‹-Painfree-Cream-—-WordPress (4).png
August 9, 2024 at 7:56 am #16055305

Marsel Nikolli

Hi,

Thank you for the debug information.

You would need to change the WordPress Address (URL)/Site Address (URL) on WP-Admin-> Settings -> General, as even after you changed the default language from WPML -> Languages, your website has the Italian domain configured as the main domain.

Try the following steps:
- change the default language: WP-Admin -> WPML -> Languages
- change the WordPress Address (URL)/Site Address (URL): WP-Admin-> Settings -> General (please check the attached image)

* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.

Let me know how it goes.

Screenshot 2024-08-09 095421.png
August 9, 2024 at 8:57 am #16055624

mickd-3

Done the above mentioned setups...

and i am getting the below SS, Please check...

Translation-Management-‹-Painfree-Cream-—-WordPress.png
August 9, 2024 at 9:11 am #16055697

Marsel Nikolli

I would need temporary access to your website to investigate this issue and understand it better. I would need to access your site's WP-admin.

Please fully back up your site (files and database) and confirm it in your next reply.

Your next reply is set to private for you to provide the username and password details.

Thanks,
Marsel

August 9, 2024 at 3:37 pm #16057161

mickd-3

Full backup is taken...

August 9, 2024 at 3:38 pm #16057162

mickd-3

Sent the Temporary login link in Private Message... Full backup is taken...

August 12, 2024 at 7:11 am #16060710

Marsel Nikolli

Hi,

Thank you for the access, I was able to check the website.

You would need to select "No" on the notification shown in the attached image (as you are using different domains, and not the main domain should be the one used for English). After that, you must generate a new key on your wpml.org account and register the English domain.

Please try the following steps to register the site with a new key after a full site backup [mandatory].

1. Log in to your WPML account and go to the Sites page.
2. Delete the existing site key.
3. Create a new subscription key for your site (English domain).
4. Visit your Site Dashboard and navigate to WP-Admin ->Plugins -> Add New -> Commercial tab.
5. Click on the “Unregister WPML from this site” or “Register” button.
6. Register with the new site key and refresh the page.

Let me know how it goes,
Marsel

Screenshot 2024-08-12 090447.png
August 12, 2024 at 2:32 pm #16062743

mickd-3

Hi Team,

Please let me know what need to be done here... After giving "NO", i am going here...
Please check the screenshot...

Translation-Management-‹-Painfree-Cream-—-WordPress.png
August 12, 2024 at 2:55 pm #16062911

Marsel Nikolli

Hi,

On that screen, you should click "Continue" as the site is changing the main domain, WPML recognizes that and requires you to add the new domain and register a new key as per the instructions I sent you previously.

Let me know if you have further questions or need further assistance.

Regards,
Marsel

The topic ‘[Closed] Change the default language for translations further’ is closed to new replies.