How i can change the system language at runtime? e.g. set from english to
german.
I think the SetLocelInfo API must have an answer, but i can´t find it.
> How i can change the system language at runtime? e.g. set from english to
> german.
> I think the SetLocelInfo API must have an answer, but i can´t find it.
hi SEK2002, yes you use SetLocaleInfo.
I presume you have read the page in msdn, and still want more.
http://msdn2.microsoft.com/en-us/library/ms776312.aspx
Here is some sample code, probably more than you want:
http://www.vbcode.com/Asp/showsn.asp?theID=8337
And, just for fun, read Mike Kaplan's blog page, "SetLocaleInfo
really Stinks".
http://blogs.msdn.com/michkap/archive/2005/04/23/411074.aspx
And finally, scripting makes this really easy, if you would
be willing to stoop so low as to use a script to set the locale.
<script_code language="vbScript">
' demo script to test vbScript "SetLocale" method, jw 03June06
' (found posted on vbs ng, ca. 02June06, and written by mikHar)
'
Option Explicit
Dim sCountry ' as string or Locale ID (lcid)
for each sCountry in array("es-es","fr","de", "en-us")
' testing: Spanish(Spain), French, German, English(US))
setLocale sCountry
wscript.echo weekdayname(weekday(date))
next
</script_code>
cheers, jw
SEK2002 - 17 Oct 2007 19:58 GMT
hi mr_unreliable... great answers ! Thx alot...
i think these are the answers of my question. I´ll try it now and i am sure
thats the loosing pieces of my puzzle..
Greatings from germany to the united states of america :-))
> > How i can change the system language at runtime? e.g. set from english to
> > german.
[quoted text clipped - 33 lines]
>
> cheers, jw