|
|
#1 |
|
Junior Member
Join Date: Jul 2005
Posts: 40
|
System locale tip
I'd just like to make a remark since it took me awhile to figure this out.
To get the setting for language for non-Unicode programs (the system locale), you can use: code: The 4-digit decimal locale code will be returned in $R0 (i.e. 1033 for en-US). At first I tried the 'Detect User Locale INFO' example in the wiki http://nsis.sourceforge.net/Detect_U...C_LangID...%29 but it didn't detect the system locale correctly. Hope this helps someone. |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
You may want to add the remark on the referred wiki page so would be accessible by everyone.
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2008
Posts: 6
|
To be more specific ,for automatic locale language detection
PHP Code:
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Or even:
System::Call "kernel32::GetSystemDefaultLCID()i .a" a = $LANGUAGE. Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|