Hi,

I'm on PPC (ok, Windows Mobile Professional).

Under HKLM\nls you can see these two keys:
SystemLCID = 1033
DefaultLCID = 1041

The SystemLCID depends on language of OS
The DefaultLCID seems to depend on Regional settings.

I'm trying to localize my application where the language should depend on
OS, just like other built-in apps.
I'd expect that GetSystemDefaultLCID would return the SystemLCID and
GetUserDefaultLCID would return DefaultLCID. However, it seems both return
DefaultLCID, which is dependent on Regional Settings, not language of OS.

I could read out the registry key directely, but I am trying to do this
properly with APIs. What's the right way to do this?
I thought it was GetSystemDefaultLCID(), but that isn't the OS language and
that makes my application use a different language than the other apps in
the OS.

Lisa

Re: Getting Locale ID by Alan

Alan
Wed Aug 08 07:17:35 CDT 2007

Dear Lisa,

I don't know if this would provide the answers to your problem but
maybe you should investigate using MUI.

Unlike PPC, you can change the language on the Smartphone.
As far as I know, MUI is used to change strings and other resources to
meet the language set by the OS.

This is a Windows CE feature and I haven't tested out on the pocket pc
but if you look under windows directory of a device
you can find sevral mui files.

Just a suggestion to help you out.
You need to do your own investigating to see if it works.

Please refer to the following link.
http://msdn2.microsoft.com/en-us/library/ms904140.aspx

Cheers,
Alan





On Aug 3, 10:50 pm, "Lisa Pearlson" <n...@spam.plz> wrote:
> Hi,
>
> I'm on PPC (ok, Windows Mobile Professional).
>
> Under HKLM\nls you can see these two keys:
> SystemLCID = 1033
> DefaultLCID = 1041
>
> The SystemLCID depends on language of OS
> The DefaultLCID seems to depend on Regional settings.
>
> I'm trying to localize my application where the language should depend on
> OS, just like other built-in apps.
> I'd expect that GetSystemDefaultLCID would return the SystemLCID and
> GetUserDefaultLCID would return DefaultLCID. However, it seems both return
> DefaultLCID, which is dependent on Regional Settings, not language of OS.
>
> I could read out the registry key directely, but I am trying to do this
> properly with APIs. What's the right way to do this?
> I thought it was GetSystemDefaultLCID(), but that isn't the OS language and
> that makes my application use a different language than the other apps in
> the OS.
>
> Lisa