Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

About GlobalCEFApp.AcceptLanguageList

Post Reply
thefunkyjoint
Posts: 461
Joined: Thu Aug 10, 2017 12:40 pm

About GlobalCEFApp.AcceptLanguageList

Post by thefunkyjoint »

Hello,

What are the valid formats to use on this parameter ?

For instance, something like this ?

GlobalCEFApp.AcceptLanguageList := 'en-US,en-GB';
User avatar
salvadordf
Posts: 4132
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: About GlobalCEFApp.AcceptLanguageList

Post by salvadordf »

These are the code comments for that property :

Code: Select all

  ///
  // Comma delimited ordered list of language codes without any whitespace that
  // will be used in the "Accept-Language" HTTP header. May be overridden on a
  // per-browser basis using the CefBrowserSettings.accept_language_list value.
  // If both values are empty then "en-US,en" will be used. Can be overridden
  // for individual CefRequestContext instances via the
  // CefRequestContextSettings.accept_language_list value.
  ///
https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h#lines-406

That property is used by Chromium to send the Accept-Language HTTP header :
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language

Chromium is known to use a modified version of that property to send the Accept-Language HTTP header.
Read this thread to see some examples :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=1401
Post Reply