At 12:00am -0800 02-01-10, Palm Developer Forum digest wrote: > > Nope. You could add new locales to the set the Locale Manager "knows" > > about by modifying the 'locs'=10000 resource in the system. Though > > the format of this resource is private and subject to change in the > > future. > >Let me see if I understand it correctly. > >There is a function: OemSetSystemLocale
OmSetSystemLocale. >that accepts LocalType which is >effectively language and country - both 16bit integers. What happens if I >use OemSetSystemLocale with language French and country Canada: is is smart >enough to figure out extension frCA, Yes for Palm OS 4.0 or later, no for Palm OS 3.5. >or I have to modify and LM resource to >add this relation ? The Locale Manager resource is ONLY used for fetching default settings for a locale, via the various LmXXXX calls. OmSetSystemLocale is the call you use to change the device's system locale, which controls fundamental behavior of the device (e.g. which overlays get automatically loaded). >In case of a negative answer, I was not really far from >the truth: there is no DOCUMENTED way to add a locale. It's true that there is no documented way to add a locale that you can select using OmSetSystemLocale. But one more time - the Locale Manager & the set of locales it "knows" about have nothing to do with whether you can successfully call OmSetSystemLocale with the frCA locale. >What you also suggest (as far as I understand it) that it is possible to >modify an LM resource to tell that french-Canada corresponds to frFR No. You can modify the 'locs' resource to add information about the french-Canada locale (such as its default short date format). Mapping french-Canada to frCA for overlays is buried in the Overlay Mgr; this doesn't work for Palm OS 3.5, but it does work for Palm OS 4.0 or later. >- in >this case you don't need adding frCA data bases, but probably this is not >what Ted was after. No. What Ted wants is to be able to use an frCA overlay with his app. For this to work, the device's current locale has to be frCA. You might be able to hack this by changing the values of the two system features I previously mentioned, but the right way is to call OmSetSystemLocale w/frCA - and this will return an error unless it finds a valid System_frCA overlay. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
