Solved

Get DEFAULT language used in the operating system

Posted on 2004-03-25
5
159 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now