cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Aaron_Barnett
Level 5

2010 Multi Language - get current language

Hi Im using Installscript (installsheild 2010)

I have a Multi Language project.

in my code(installscript) i have a function that i only want to run if the Language selected on the first dialog is "Spanish"

Is there a Constant or some Variable that i can use to check if the the language the user selected @ the beginning of the install is 'Spanish'?

e.g.

IF (SELECTED_LANGUAGE = 'Spanish')

myfunt();

ENDIF


Any help would be great!
Labels (1)
0 Kudos
(2) Replies
gprasadholla
Level 4

Yes you can use SELECTED_LANGUAGE. But the return value is a hex constant.

For Spanish use ISLANG_SPANISH.
0 Kudos
Aaron_Barnett
Level 5

Works Perfectly!

I was thinking it would be some kinda of function.

Example: if anyone needs it

if (SELECTED_LANGUAGE = ISLANG_SPANISH) then
MessageBox ("this IS Spanish", SEVERE);
else
MessageBox ("this IS NOT Spanish", SEVERE);
endif;


Thanks for the help gprasadholla !!!
0 Kudos