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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Accept_Language issue

Post Reply
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Accept_Language issue

Post by salvadordf »

Hi,

CEF4Delphi doesn't modify GlobalCEFApp.AcceptLanguageList to send the HTTP_ACCEPT_LANGUAGE header.
It only passes the unmodified GlobalCEFApp.AcceptLanguageList value to the cef_initialize function inside the TCefSettings record.

The code comments about that field are these :

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.
  ///
Try to set GlobalCEFApp.AcceptLanguageList with the language codes separated by commas but without the quality values (q=). It seems that the quality values are added automatically by Blink.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Accept_Language issue

Post by salvadordf »

I can't find any code to replace the CefAcceptLanguageList contents in the dcef3 project.

Please, give a more detailed explanation or code and I'll try to add it to CEF4Delphi.
Post Reply