DelphiFAQ Home Search:

Determine the operating system's default language

 

comments7 comments. Current rating: 5 stars (2 votes). Leave comments and/ or rate it.

The code below uses unit SysUtils to easily determine the Operating System's default language. The TLanguages class also contains other information for each entry - check the online help on this type.

uses
  SysUtils, Dialogs;

procedure TForm1.FormCreate(Sender: TObject);
var
  i : Integer;
begin
  i := Languages.IndexOf(SysLocale.DefaultLCID);
  ShowMessage(Languages.Name[i]);
end;
You don't like the formatting? Check out SourceCoder then!

Comments:

2006-11-16, 12:49:11
[hidden] from Germany  
I would like to know how to change the language of my operating system and cannot find such info. Please help if you can because when I insurt a disk in a D: drive the names of the songs that I want to listem are written in different symbols that I do not understand. I want the Russian language to be correct. Everything is in English on my PC, but I can switch between the russian and english when need to. But when I insurt russian disks they appear in symbols. And also when I tried to download a program from Microsoft.com I was tald that this programm is not supported by my operating system language. I am a newbie and cannot understand your instructions on finding out my O/P language.
2009-02-01, 05:02:22
enghaf2006@yahoomail.com from Ethiopia  
rating
I have my pc with vista windows operating system but the language is in germany.
so I want to change it in to english how can I do this?
2009-02-01, 05:07:55
enghaf2006@yahoomail.com from Ethiopia  
rating
I have my pc with vista windows operating system but the language is in germany.
so I want to change it in to english how can I do this?
2009-02-01, 08:55:41
OJAS from United States  
On the View menu of your browser, change character encoding to Unicode 8-bit, or try Cyrillic (Windows 1251), for Russian characters proper rendering.

For the operating system, try switching the code page. Just google the exact phrase code page for country / language of your choice.
2012-07-23, 22:41:34
anonymous from United States  
2012-07-23, 22:41:37
anonymous from United States  
2012-11-23, 21:03:55
anonymous from Russian Federation  
Естественная косметика на основе растительных экстрактов [url= http://natur-kosmet..ru].[/url]

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: