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.

How to deploy only necessary language files ?

Post Reply
thefunkyjoint
Posts: 458
Joined: Thu Aug 10, 2017 12:40 pm

How to deploy only necessary language files ?

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to deploy only necessary language files ?

Post 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;
thefunkyjoint
Posts: 458
Joined: Thu Aug 10, 2017 12:40 pm

Re: How to deploy only necessary language files ?

Post by thefunkyjoint »

This worked, thank you very much ! :D
Post Reply