Solved

Get DEFAULT language used in the operating system

Posted on 2004-03-25
5
171 Views
Last Modified: 2010-04-05
Is there any way to get the default language used in the OS,
from the Registry.

Are there some registry key/value i can read it from?

Thank you.
0
Comment
Question by:visexpert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 17

Accepted Solution

by:
mokule earned 25 total points
ID: 10679237
In Delphi
   SysLocale: TSysLocale
In Registry (what I know)
   HKEY_CURRENT_USER\Control Panel\International
   sLanguage
0
 
LVL 11

Assisted Solution

by:shaneholmes
shaneholmes earned 25 total points
ID: 10679546

var
  Ident: Integer;
  defaultLang: PChar;
const
  Size: Integer = 250;
begin
  GetMem(defaultLang, Size);
  Ident:=GetSystemDefaultLangID;
  VerLanguageName(Ident, defaultLang, Size);  
  showmessage(StrPas(defaultLang));
 FreeMem(defaultLang);
end;

Shane
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question