language ID - 1003 to wxLocale

BlitzMax Forums/Brucey's Modules/language ID - 1003 to wxLocale

Nigel Brown(Posted 2009) [#1]
My installer returns country codes as LCID's eg: 1033(English,US) from a choice of languages presented at install time. Is there a way to convert these to something wxLocale can understand?

LCID = 1033
wxLANGUAGE_ENGLISH_US = 58


Brucey(Posted 2009) [#2]
Internally, wxLocale can retrieve the LCID for a given language, but not the other way round. (see InitLanguagesDB() in src/common/intl.cpp for the win32 -> wx mappings)

The list of LCIDs is here : http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx

It probably wants some kind of mapping made to convert the LCID codes into wxLANGUAGE codes...