title: Detect User's Preferred Language and Google Translate Automatically
body: <p>I use this script in my site for translation</p>
  
  <pre><code>&lt;div id="google_translate_element" align="center"&gt;&lt;/div&gt;  
  &lt;script type="text/javascript"&gt;
      function googleTranslateElementInit() {
          new google.translate.TranslateElement({
          pageLanguage: 'auto',
          autoDisplay: false,
          layout: google.translate.TranslateElement.InlineLayout.SIMPLE
          }, 'google_translate_element');
      }
  &lt;/script&gt;
  &lt;script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>It is working just fine :)
  But is there a way to detect the user ip and auto translate when a user go in to my site?</p>