canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Language shortname (i.e. en_US) in a property?

Hello everyone.

Is the shortname of the language selected by the user available in a property?



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Language shortname (i.e. en_US) in a property?

Hi,

Please note that the ProductLanguage property contains the locale identifier of the language used for the installation. You can find a complete list of these locales here.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Language shortname (i.e. en_US) in a property?

Hello Cosmin,

thank you, I will use that list then.



With best regards

Clemens Anhuth
Nico-D
Posts: 63
Joined: Mon Aug 18, 2008 2:34 pm

Re: Language shortname (i.e. en_US) in a property?

Hi Cosmin,

I would like to use the .NET TwoLetterISOLanguageName method to convert '1033' to the string 'en'.

Do you think it is possible to use a VBS Custom Action to do this? Is it another way to do this?

Best regards,
-- Nicolas D.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Language shortname (i.e. en_US) in a property?

Hi Nicolas,

Please note that the .NET API cannot be used in VBScript. However, you can try using a simple select case statement to set a variable according to the language ID.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Nico-D
Posts: 63
Joined: Mon Aug 18, 2008 2:34 pm

Re: Language shortname (i.e. en_US) in a property?

Hi Cosmin,

Yes, you are right. I would have preferred an equivalent of the .NET method, but it seems to be not possible. I have search through MSDN for a while, and found nothing about.

Many thanks,
-- Nicolas D.

Return to “Common Problems”