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.

This topic contains 15 replies, has 2 voices.

Last updated by Bruno Kos 1 year, 8 months ago.

Assisted by: Bruno Kos.

Author Posts
July 25, 2023 at 12:32 pm #14096377

marthaZ

I am having all kind of problems with the translation of a website I am building (hidden link).

Originally I created it using English as the main language but my client is from a Spanish speaking country and as we are going through the automatic translation from English to Spanish, which are not consistent with my client’s requirements and the text keep changing to the translated version from English.

Can I change the main language in WPML without affecting the whole structure of the website?

July 25, 2023 at 3:27 pm #14097669

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

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

In general changing 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.

Regards,
Bruno Kos

change default.jpg
July 25, 2023 at 9:29 pm #14098923

marthaZ

Thanks for your prompt reply Bruno. Right now I have 5 languages, generated from the English text I originally created the website, and I am trying to understand what you are saying… so, if I change the language to Spanish, what will happen to the German, Italian and French pages that were translated from English, and how would they become broken? What would be the best way to do it? Creating a staging site in Spanish and then let WPML do the translations on the other 4 languages?

I am having enough trouble right now with global settings being randomly changed to other languages to have to deal with broken pages.

July 26, 2023 at 7:32 am #14100183

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Given that you translated them all, nothing will happen, everything should work as it is, the only difference now is that when somebody opens your website, they will land on the Spanish home page first and not English.

So you can safely change site default language.

July 26, 2023 at 10:45 am #14102733

marthaZ

Thanks Bruno, that wouldn’t be a problem due to the location of the company, but can I safely use language redirect so the site opens according to the browser language?

July 26, 2023 at 11:57 am #14103333

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Yes, you can use browser redirect, but check this also:
https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/how-browser-language-redirect-affects-google-indexing/

July 26, 2023 at 12:55 pm #14104073

marthaZ

Bruno, I just read the article on the link, it makes sense, I guess I will leave it in Spanish as it is a Latin American company, and people can choose the language.

One more question about languages: when I set up WPML I chose Automatic translation for Translation Mode and I chose “Only Myself” on the options since I am doing it all by myself. On the translation Management section I found Translators for every language I use in the website, 5 rows of languages, and I deleted 4 rows leaving just one, but I am not sure I did the right thing.

On the screenshot I am attaching you can see how it looks now (since I changed the main language everything changed to Spanish, including the language of WP dashboard!!), could you please tell me if that looks alright? since Spanish is now the main language, should Spanish be first or that doesn’t affect the order of translations?

Screenshot at Jul 26 08-55-23.png
July 26, 2023 at 1:05 pm #14104179

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

The translators page look correct - it is up to you to decide who will translate the website and which language pairs are supported.
https://wpml.org/documentation/translating-your-contents/how-to-set-up-local-translators-and-language-pairs/#adding-local-translators-through-translation-management

As for the Spanish language in the backend, it will not influence the translations because it goes one way anyway - the original content, which can be created in any language, is always the first language from which you translate to other languages.

Also note that now when Spanish is the site default language, if you create a new page or post, it will have Spanish language assigned by default.

July 26, 2023 at 1:42 pm #14104473

marthaZ

Bruno, thank you very much, I really appreciate the time you’ve taken to help me!

July 27, 2023 at 6:38 am #14107841

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I am glad I was able to help, don't hesitate to reach out whenever in doubt!

July 28, 2023 at 5:55 pm #14119513

marthaZ

Bruno, I hope you can help me with a new issue I have, I opened another ticket but I haven’t been helped. I am trying to change the Spanish flag to Ecuador’s flag by changing the language, but the flag is not changing. The only option I have, apart from changing the hreflang is to upload a flag but checking into WPML plugin, the flat exists within the files. What am I doing wrong?

Screenshot at Jul 28 10-09-23.png
July 31, 2023 at 9:14 am #14125185

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

That will not work, but you can upload your custom flag on the option above.
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-flags/#how-to-add-a-custom-flag

July 31, 2023 at 10:57 am #14126219

marthaZ

Thanks Bruno, that is not working and since the flag is already in the WPML plugin I rather not upload a flag. Any idea why it’s not working?

July 31, 2023 at 11:10 am #14126271

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

What exactly isn't working? You can either upload your custom flag or use the one that is already there, there isn't another option.

July 31, 2023 at 11:16 am #14126293

marthaZ

I changed the hreflang to the Ecuador code and the Ecuadorian flag is not showing, it shows Spanish flag.

Screenshot at Jul 31 07-14-53.png
Screenshot at Jul 28 10-09-23.png