Page 1 of 1

How to deploy only necessary language files ?

Posted: Fri Apr 23, 2021 11:14 am
by thefunkyjoint
Hello,

I'm trying to reduce the total file size of my app install file by only deploying the necessary locales files. I tried to left only english and my language files, but i get the error below. How to proceed ? :roll:
Screen Shot 2021-04-23 at 08.12.34 (1).png

Re: How to deploy only necessary language files ?

Posted: Fri Apr 23, 2021 1:11 pm
by salvadordf
Use a comma separated list of the available locales. In case you need to include US English, Spanish, French and Brazilian Portuguese then you would have to set GlobalCEFApp.LocalesRequired like this in the DPR file :

Code: Select all

GlobalCEFApp.LocalesRequired := 'en-US,es,fr,pt-BR';
See the code in CheckLocales (uCEFMiscFunctions.pas) for a complete list of locales.

However, if your application uses an installer to copy the CEF binaries you can also disable all the checks with this :

Code: Select all

GlobalCEFApp.CheckCEFFiles := False;

Re: How to deploy only necessary language files ?

Posted: Fri Apr 23, 2021 1:41 pm
by thefunkyjoint
This worked, thank you very much ! :D