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 5 replies, has 2 voices.

Last updated by Carlos Rojas 1 year, 4 months ago.

Assisted by: Carlos Rojas.

Author Posts
July 11, 2023 at 1:12 pm #14015399

tannerT

I understand that I can setup the following:

example.de -> German
example.com -> English
example.fr -> French
etc.

However, there is some overlap and I am wondering the best manner to solve this. For example...

1.) example.ca AND example.com -> English (Canada and U.S)
How can this be done? This should be setup to incorporate BOTH user language AND user location prior to the redirect, should be an easy integration

2.) example.ca AND example.ca -> English & French (English Canada & French Canada)
How can this be done? If I already have example.fr set for French, and the user is browsing English Canada (example.ca) and changes the language to French, will they be redirected to example.fr. As you can see this is another problem that would need to incorporate user location detection to witness IF Canada, and language request = French, use fr.example.ca, NOT example.fr

I can solve these problems myself already with code, but they should be integrated into the plugin and I'd like to check on the solution &/or status

July 11, 2023 at 3:22 pm #14016567

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hello,
Thank you for contacting us

Since WPML only redirect the users based on the language of the browser we recommend using a third-party plugin to be able to redirect the user based on other criteria. In this link you will find more information about this: https://wpml.org/plugin-functionality/geotargeting/

Regards,
Carlos

July 11, 2023 at 3:27 pm #14016579

tannerT

Sure, except that only answers question 1. I understand that I can establish redirects on my own

2.) example.ca AND example.ca -> English & French (English Canada & French Canada)
How can this be done? If I already have example.fr set for French, and the user is browsing English Canada (example.ca) and changes the language to French, will they be redirected to example.fr. As you can see this is another problem that would need to incorporate user location detection to witness IF Canada, and language request = French, use fr.example.ca, NOT example.fr

FOR YOU: This means I will need a solution to deliver English & French on example.ca WHILE using TLD domains tied to Languages. What is the suggested course of action here?

July 11, 2023 at 3:33 pm #14016663

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi,

In this case, if you have example.ca AND example.ca then you are only displaying one language (English CA or French CA), but from the WPML perspective you can only display one language per domain, which means that example.ca will have just one of the languages you decide.

You can create a custom language for French CA and assign a different domain, then you will be able to redirect the users in Canada that have French in their browser (or any other criteria you use) to this new domain.

July 14, 2023 at 12:49 am #14036959

tannerT

thx

July 14, 2023 at 11:13 am #14039387

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.

Have an excellent day!