PDA

View Full Version : Localizing include scripts



Unregistered
05-18-2011, 12:59 PM
Include scripts like the VC++ 2008 redistributable, or MSI 3.1 don't seem to have the same functionality when you open them in Developer edition. So to localize these, is the following the best practice?

If %CURLNG% Equals "1031" Then
Display Message Box "Something in German"
ElseIf %CURLNG% Equals "1041" Then
Display Message Box "Something in Japanese"
Else
Display Message Box "Something in English"
End

linder
05-19-2011, 12:02 AM
Hello,

%CURLNG% always holds the GetSystemDefaultLangID() Windows API return value. This function returns the language identifier for the system locale. Your code snipped should work fine.

Friedrich