How to get localized texts in a script? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

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

How to get localized texts in a script?

Hello everyone.

Can anyone tell me how to get localized texts in a (custom action) script?

Something like Session.localizedString("id.of.the.text.possibly.residing.in.a.custom.dictionary") maybe?



With best regards

Clemens Anhuth
Last edited by canhuth on Thu Aug 14, 2008 11:00 am, edited 2 times in total.
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

ignore

ignore
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: How to get localized texts in a script?

Hi Clemens,

Please note that "dictionaries" are only a concept used by AI to provide localization support for MSI packages. Windows Installer has no knowledge of this notion. Additionally, a MSI package (even a multilingual one) supports only characters from the code page of the installation language.

Hence, if you create a multilingual package containing English, French and Japanese and provide localized values for a particular Property (using a custom dictionary), retrieving the Property value within a Custom Action will give a result depending on the installation language. However, the value of the Property is read from the MSI database (to which a language transform may have been applied) and not from the dictionary.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: How to get localized texts in a script?

Ionut wrote:Hence, if you create a multilingual package containing English, French and Japanese and provide localized values for a particular Property (using a custom dictionary)
Hi Inout,

Yes, a localized value for a particular property, how do I do that?



With best regards

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

Re: How to get localized texts in a script?

Hello Ionut,

nevermind, I found that I had not yet enabled properties to be localized in the Translations page yet.

Thank you for your reply.


With best regards

Clemens Anhuth

Return to “Common Problems”