[Solved] VBS Script Inline Translation MsgBox "... - 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!

alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

[Solved] VBS Script Inline Translation MsgBox "...

Hi,

In dialog, i have custom action script inline display MsgBox for information / warn / error...
Script Inline Example:
MsgBox "Please choose two different port numbers.", vbOKOnly + vbSystemModal + vbExclamation, "Warning"

How to translate "Please choose two different port numbers." in other language ?

I use Dictionary translate XML properties but I believe that this will not work for customs action,

Thanks
Last edited by alavoler on Thu May 28, 2009 9:43 am, edited 1 time in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [Translation] VBS Script Inline Translation MsgBox "...

Hi,

You can try using an installer property for the custom action. For example:

Code: Select all

MsgBox Session.Property("MESSAGE_PROPERTY"), vbOKOnly + vbSystemModal + vbExclamation, "Warning"
The property ("MESSAGE_PROPERTY") can then be localized in the "Install Parameters" page:
- create the property
- close the Edit Property dialog
- edit the property
- right-click in the "Value" field and select the "Localization" menu
- enable localization for the property and localize it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [Translation] VBS Script Inline Translation MsgBox "...

Thanks cosmin

Good Solution !

Return to “Common Problems”