We can determine site_default_country by navigator.languages in Chrome/Firefox (user preferred order) and navigator.language in another browsers.
Browser language codes http://4umi.com/web/html/languagecodes.php
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2573587PatchResult.png | 388.24 KB | shwetaneelsharma |
| #2 | drupal_recognize_country-2573587-2.patch | 937 bytes | fortis |
Comments
Comment #2
fortis commentedComment #3
Bojhan commentedInteresting..
Comment #4
shwetaneelsharma commenteddrupal_recognize_country-2573587-2.patch didn't work for me. I was expecting to see "India" as the default country. Attaching screenshot.
Comment #5
fortis commentedoops, yes, wrong country is worse than nothing. seems it's not possible in this way