alco
Posts: 79
Joined: Thu Nov 18, 2010 5:02 pm

How to localize installer properties for custom action

Since the DetectProcess custom action does not do a looped check, I created a .NET DLL for this w/c accepts message text, message title, and wait time in between checks, since the message comes w/ a Retry button.

My only problem is the message text and caption are not localized. I read from this topic that this can be done via installer properties but there are no instructions on how to exactly localize the installer properties.
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: How to localize installer properties for custom action

Hello Albert,

Use case: Let's say that we have a property as it follows:

Name: MY_PROP
Value: Hello


In order to localize its value, you can proceed as it follows:

1. go to "Install Parameters" page

2. double click on the earlier created property

3. right click on the value field --> "Localization..." and select the following option:

Always translate this string - Using default localization identifier

4. click "Ok"

After doing so, please go to "Translations" page --> "Project Strings" tab and set the property value for your language.

Every localized property will have a Localization ID. For instance, the Localization ID for our earlier created property will be:

Property.MY_PROP

For instance, if we have two languages for our projects, i.e. English and French, we will have to set the localized property's value for the french as it follows:
Capture.PNG
Capture.PNG (44.37 KiB) Viewed 3000 times
Capture1.PNG
Capture1.PNG (40.74 KiB) Viewed 3000 times

More information about localized strings can be found on our "Localized Strings" article.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alco
Posts: 79
Joined: Thu Nov 18, 2010 5:02 pm

Re: How to localize installer properties for custom action

Oh, I didn't think to right-click on that field. Thanks for pointing that out! :)
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: How to localize installer properties for custom action

You are always welcome, Albert.

Glad to help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”