You should set GlobalCEFApp.locale with the language code (ISO-639) of the language that will be used for the context menu items in the browser. If the locale file is not available then CEF will use the default (en-US).
These are the code comments for the GlobalCEFApp.locale property :
https://bitbucket.org/chromiumembedded/cef/src/master/include/internal/cef_types.h#lines-311
Code: Select all
///
// The locale string that will be passed to WebKit. If empty the default
// locale of "en-US" will be used. This value is ignored on Linux where locale
// is determined using environment variable parsing with the precedence order:
// LANGUAGE, LC_ALL, LC_MESSAGES and LANG. Also configurable using the "lang"
// command-line switch.
///
These are the comments for the "lang" command line switch :
https://peter.sh/experiments/chromium-command-line-switches/
Code: Select all
The language file that we want to try to open. Of the form language[-country] where
language is the 2 letter code from ISO-639.
Edit : If you remove some of the CEF binaries then you may have to set the GlobalCEFApp.LocalesRequired property with a comma separated list of locales available in your installation. If you use an installer then you can even set GlobalCEFApp.CheckCEFFiles to FALSE.