Page 1 of 1

Re: Accept_Language issue

Posted: Fri Feb 02, 2018 8:02 am
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.

Re: Accept_Language issue

Posted: Thu Feb 08, 2018 9:04 am
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.