Translation - 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!

Ulf
Posts: 5
Joined: Wed May 26, 2010 3:54 pm

Translation

Hello, I use the "Logon Information" dialog and when I enter empty string in "User Name:" and/or "Password:" and push next there is an messagebox with information like "You must enter an User Name and a Password". The question is how do I translate/activate this into diffrent languages. Using Installer 7.6.1
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Translation

Hello,

Make sure you have more than one build language selected in the Translations page.
Simply create a property from the Install Parameters page with the text you want to display in the message box, right click the Value field of the property and select "Localization..." from the context menu. Localize your property then use that property inside your message box.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Ulf
Posts: 5
Joined: Wed May 26, 2010 3:54 pm

Re: Translation

Hello,
I have 7 build languages selected.
There is an Custom action "UserPassWord_Check" used as DoAction when next button is pressed.
This Custom action has an "Script text" of MsgBox "You must enter an User Name and a Password", witch I like to translate.
Ulf
Posts: 5
Joined: Wed May 26, 2010 3:54 pm

Re: Translation

Hello,
When I used a Custom action->ErrorMassage and translated my own property to all the language that I needed it worked OK.
Thansk for your'e help
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Translation

Hi
I have 7 build languages selected.
There is an Custom action "UserPassWord_Check" used as DoAction when next button is pressed.
This Custom action has an "Script text" of MsgBox "You must enter an User Name and a Password", witch I like to translate.
The solution is to add a custom action for each language, of course containing the translated error message.

You will have to update the execution condition of the custom actions so they are launched in correspondence to the language of the package,
for this you will use the property "ProductLanguage". Here is a list of the language IDs that you will need.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ulf
Posts: 5
Joined: Wed May 26, 2010 3:54 pm

Re: Translation

Hello,
To recap.
I use java script with text MsgBox"You must enter a User Name and a Password"
The published event for NEXT button is
DoAction, UsePassword_Check, AI_Install AND (NOT USER_PASSWORD)
NewDialog, VerifyReadDlg, AI_Install AND (USER_PASSWORD)

When runs , and I hit the NEXT I got Fatal error (3) and the FatalError Special Dialog shows up

If I use ErrorMessage with translations text for every Language in use I got an "Installer Information" dialog displaying
the same text sa in MsgBox above. But then get's Fatal error (3) as before.

Do you have information(samples) that can help me?

Ulf
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Translation

Hi,
I use java script with text MsgBox"You must enter a User Name and a Password"
I am not sure if this is a correct Java Script but I'm sure it will work as a VBScript. Can you please change the "Source Type" of the custom action from "Java Script" to "Visual Basic Script".

Another alternative is to use a public property in which you place the entire error message, localize it for all the languages, as you already did and display it using a custom action VBScript like this:

Code: Select all

MsgBox Session.Property("MY_PROPERTY")
If I use ErrorMessage
I don't recommend using this custom action because it will automatically finish the installation, as its name says it represents and error message, after the user presses OK
it will automatically finish the installation.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”