Hi, anyone can help me? I think it’s something very good to implement..
Plugin Author
Chouby
(@chouby)
Hello,
Polylang doesn’t detect countries but languages ( defined in the browser preferences ) when you activate the relavant option.
It works only at first visit on the homepage.
If a visitor has en_CA in his preferences and you have en_US as English on your site, then he will be redirected to en_US. It’s automatic.
Chouby,
First thanks for the reply.
I want to ask this, so i will give you an example:
I make the translation (I have some pages, portfolio, blog a lot of posts) on Spanish so i put es_ES , but if someone from Argentina enter he will have the es_AR (and he put the Chrome lenguage to that) so Polylang will check the default Languaje and if i put en_US like default he will see the webpage on English entering from Argentina and have the webpage on spanish.
The same will happen if i put the Spanish like default, if someone from en_UK enter and i have the webpage on en_US he will see the webpage on Spanish.
There is a way to check only the first part? Like if you speak spanish i only care about the first part the “es” so if you come from Argentina, Colombia and you have the language on your explorer like (es_AR, es_CO, etc) the system only check the first part so you will recive the Spanish web.
I think it will be awesome to do that.
Thanks.
-
This reply was modified 7 years, 1 month ago by
marcoskrop.
Hi Chouby,
You understand my point? I dont know if i explained good.. if you have any question just let me know.
I think it’s very important what im asking cuz you have a lot of difference Spanish or English lenguage version around the world, but most of us we just make one translation like 90% of the cases, it’s pretty strange that an owner of a website make the Spanish version for Colombia, Spanish version for Spain, Spanish version for Argentina, spanish version for Chile.. they are practically the same, so on those 90% of the cases the system shouldn’t care about if you are using on your Google Chrome es_AR or es_ES or es_CO or whatever.. it should recognize that you use es and enough.
Thanks in advance