Translation of Error Message - 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!

Anthrax
Posts: 19
Joined: Tue Jul 31, 2007 1:51 pm

Translation of Error Message

Hi at all,

in my setup project i need to show an error message (custom action) in the selected setup language. Is it possible to translate the message Text of this custom action ? Or should i create error messages for each language?

Kind regards

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

Re: Translation of Error Message

Hi,

Yes you can translate it. Here is what you have to do:
- go to Install Parameters page and create a new property in the Properties group called for example MY_PROPERTY.
- after creating the property → right click on it → Edit
- in the Value field → right click → Localization
- in the Localization dialog that will appear make this settings:
–- “Always translate this string”
–- “Using specified localization identifier” and fill in the edit box with ,for example :

Code: Select all

IDENTIFIER

- in your custom action use the name of your property like this :

Code: Select all

[MY_PROPERTY]

- in the Translations page ,after you've selected the languages you desire, create a new dictionary using the “Create” button and following the wizard.
- open the dictionary file you've created with a text editor and find the component IDENTIFIER defined by you.
- edit the lines that look like this :

Code: Select all

<STRING lang="en" value="error message in english"/> 
<STRING lang="fr" value="error message in french"/>
etc... 
- go to Dictionaries tab and add the dictionary you've edited
- save your project, close AI and reopen it to be able to see the new dictionary

This should allow you to display the error messages localized.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Anthrax
Posts: 19
Joined: Tue Jul 31, 2007 1:51 pm

Re: Translation of Error Message

Dear Bogdan,

Thank you very much for your reply and your help. This is exactly what i was looking for.
Thx.

Kind regards

Anthrax

Return to “Common Problems”