Solved

Get DEFAULT language used in the operating system

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

732 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