title: WebDriver: How to specify preferred languages for Chrome
body: <p>I'm trying to get my remote chrome driver to request pages in German instead of English. Following the <a href="http://code.google.com/p/chromedriver/wiki/CapabilitiesAndSwitches">chromedriver documentation</a> and <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/pref_names.cc?view=markup">list of chrome preferences</a>, I tried to set it like this:</p>
  
  <pre><code>    capabilities.setCapability(ChromeOptions.CAPABILITY, getChromeOptions());
      Map&lt;String, String&gt; chromePrefs = new HashMap&lt;String,String&gt;();
      chromePrefs.put("settings.language.preferred_languages", "de-DE,de");
      capabilities.setCapability("chrome.prefs", chromePrefs);
  </code></pre>
  
  <p>And I can see it reaches chromedriver from the log file:</p>
  
  <pre><code>[0.453][FINE]:      Initializing session with capabilities {
     "browserName": "chrome",
     "chrome.prefs": {
        "settings.language.preferred_languages": "de-DE,de"
     },
     "chromeOptions": {
        "args": [ "--ignore-certificate-errors" ],
        "extensions": [  ]
     },
     "platform": "ANY",
     "version": null
  }
  </code></pre>
  
  <p>But it still requests english pages and this can also be seen by opening the content settings in the preferences. What am I doing wrong?</p>