Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 1st July 2002, 15:12   #1
spaetz
Junior Member
 
Join Date: Feb 2001
Posts: 44
Is there a possibility to determine the OS language on runtime?

Hi,
I would like to provide localized installers within one binary. Is it possible to determine the language of the OS automatically through the registry or similar? Alternatively, I'd have to present an InstallOption dialog in order to picka language, but this would suck.

TIA,
spaetz
spaetz is offline   Reply With Quote
Old 2nd July 2002, 01:30   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,354
if its in the reg, query it. search for a language entry in regedit.
Yathosho is offline   Reply With Quote
Old 2nd July 2002, 06:50   #3
Smile2Me
Guest
 
Posts: n/a
Maybe this is a nice registry entry:
HKEY_CURRENT_USER\Control Panel\International
and try to send up some interpreter for "iCountry", "sCountry" or "sLanguage". For "Dutch" (Nederlands) these entries take the following values: "31", "Nederland" and "NLD" respectively. Search a Microsoft site to find more country codes and setup a script that compares the countrycode to languages (codes) available for your program and which selects English when a non-supported language has been found.

-Hendri.
  Reply With Quote
Old 2nd July 2002, 07:50   #4
spaetz
Junior Member
 
Join Date: Feb 2001
Posts: 44
Thanks that helped a lot. I found some country codes which I needed...

I just didn't know the location of the registry setting
spaetz is offline   Reply With Quote
Old 2nd July 2002, 07:52   #5
Smile2Me
Guest
 
Posts: n/a
Spaetz,

take a look here for all country codes:
http://msdn.microsoft.com/library/en...cfg_list_b.asp

Check the table for the ISO Long codes. These should be comparable to the sLanguage parameters in the registry (as I see it).

[edit]
My reply was just a second too late. I didn't see your reply yet Spaetz, sorry. Good luck with implementing it! -Hn3.
[/edit]

Good luck,
-Hendri.
  Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump