Delphi DCEF3 - Change Language
I want to change DCEF3 (Delphi Chromium Embedded 3) to display local data (like times and dates) in my language, Norwegian. Now the default is English.
I see that the source code has its own "locales" folder ( https://code.google.com/p/dcef3/source/browse/#git%2Fbin%2FWin32%2Flocales ). How do I tell the chrome component to use nb.pak?
source to share
Set the variable CefLocale
to the name of the locale of your choice (which is the name of the locale file without the extension). Do this before creating the first instance TChromium
. For example, if you have a component TChromium
dropped onto a form, do this from the OnCreate
event form :
uses
ceflib;
procedure TForm1.FormCreate(Sender: TObject);
begin
CefLocale := 'nb';
end;
If you keep this variable empty (this is its default), the locale will be used en-US
.
source to share