Re: Date/Time in different languages
"Frank" <jerk@gmx.de> wrote in message
news:d090cf52-925a-42d3-9adb-99e9b33409a7@e7g2000yqf.googlegroups.com...
The language
that is shown is the one that is set in the "Region" control panel.
Yes, I know. Provided that there are other language packs
installed - how can I change the settings by program?
There are probably registry keys to hack if you want to simulate the user
changing the Region control panel, but that is extremely bad form to change
the user's global settings behind their back. Since the other control panel
uses the global settings, this is what you'd have to do.
It is probably possible to inject a DLL into the process hosting the other
control panel and hook some API's so that it returns the desired language
when asked for it, but that relies on undocumented behavior and is specific
to various Windows versions.
But I really don't understand why you need to special case the language it
is showing. Especially when you can't even guarantee what languages are
installed into the user's Windows! Why don't you just create your own UI,
emulating the Date/Time control panel functionality is simple enough?
-- David