How to use settings.locale

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to use settings.locale

Postby rdh » Tue Jun 23, 2020 1:36 pm

I know I found a link somewhere to the documentation for the settings structure but ... no can find now. I need to figure out how to correctly set a locale via the settings structure. For example, do the locale names have to match the .pak, which I see de.pak for German but the Windows OS gives me a "de-DE" string. That worked for German even though there is no de-DE.pak file. I am assuming since the shortcut menu was in German when I set de-DE, CEF uses the closest .pak it can find. Basically, just looking for the link to the settings structure documenation.
rdh
Techie
 
Posts: 33
Joined: Wed Jun 10, 2020 3:18 pm

Re: How to use settings.locale

Postby magreenblatt » Tue Jun 23, 2020 2:05 pm

rdh wrote: I am assuming since the shortcut menu was in German when I set de-DE, CEF uses the closest .pak it can find.

This is correct. Locale codes are standard, and documented in various places like here.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to use settings.locale

Postby magreenblatt » Tue Jun 23, 2020 2:10 pm

You can find the related Chromium code here if you want to dig deeper into the logic.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 49 guests