Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / October 2007



Tip: Looking for answers? Try searching our database.

System language change at runtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SEK2002 - 16 Oct 2007 19:29 GMT
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.
mr_unreliable - 16 Oct 2007 22:10 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.