Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question re: Internationalization

Status
Not open for further replies.

rogerte

Programmer
Nov 9, 2001
164
GB
I have an app, with all screen output held in a resource file. The output can be English, French or German.

The screen output works (except for codepage problems causing some charcters not to display properly, but that isn't too much of a problem if I change the International settings), for all the languages.

What I would like to do is detect the International setup of the PC when the program starts and switch in the correct screen language. I was told it could be found in Windows.pas, but have been unable to find it.

Can anyone advise?

Many thanks
 
Look in the Win32 SDK Reference help file that comes with Delphi. You'll want to use the GetSystemDefaultLCID and/or GetUserDefaultLCID functions along with the LangIDFromLCID function to get the language code for the current user.

-Dell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top