<p>I noticed that Google maps is providing directions in my local language (hungarian) when I am using google chrome, but English language directions when I am using it from IE. </p>

<p>I would like to know how chrome figures this out and how can I write code that is always returning directions on the user's language.  </p>

[{'answer_id': 67037, 'author': 'UnkwnTech', 'author_id': 115, 'author_profile': 'https://Stackoverflow.com/users/115', 'pm_score': -1, 'selected': False, 'text': "<p>I could be way off but I think it's fairly safe to assume that google, is using gears.</p>\n"}, {'answer_id': 67068, 'author': 'millenomi', 'author_id': 6061, 'author_profile': 'https://Stackoverflow.com/users/6061', 'pm_score': 3, 'selected': True, 'text': "<p><code>HTTP</code>requests` include an <strong>Accept-Language header</strong> which is set according to your locale preferences on most OS/browser combinations. Google uses a combination of that, the local domain you use (eg 'google.it', 'google.hu') and any preferences you set with the Preferences link in the home page to assign a language to your pages.</p>\n\n<p>It's likely that IE is misrepresenting your locale to Google Maps, whereas Chrome has correctly guessed it. You can change IE's locale by changing your national settings in Control Panel, while Chrome's locale can be changed in (wrench menu) > Preferences.</p>\n"}]
['https://Stackoverflow.com/questions/67029', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/260/']