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
Solved

Get DEFAULT language used in the operating system

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple Delphi Question 9 96
Virtuailstring tree compare node issue 14 125
Process Javascript errors with Delphi TWebBrowser 1 174
Delphi: sending SMS on android platform 1 32
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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