sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Localize a property with different values for multiple builds?

Is it possible to localize a property that has different values set for different builds? The localization ID doesn't appear to be build specific.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Localize a property with different values for multiple builds?

Hi,

Indeed, the localization ID is not build specific, however, you can achieve this by following the steps below:
- create a new property related to each build (i.e. PROP_BUILD1, PROP_BUILD2) and localize it to the values you need (you can do this in the "Translations" page, "Project Strings" tab if you use the "Select..." button and check the "Properties" segment)
- set your default property (i.e. MY_PROP) to use the value of the above properties per build
- right-click in the "Value" field of the default property, select "Localization..." and check the "Never translate this string" option
- build and run the project

I attached a sample project which implements this scenario, so you can take a look of its configurations.

Best regards,
Eusebiu
Attachments
Localize property per build.zip
(3.23 KiB) Downloaded 371 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Re: Localize a property with different values for multiple builds?

Ok great -- that works for me! Thanks!
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Localize a property with different values for multiple builds?

You're welcome. Glad to help.

Just let me know if there is anything else that I can help you with.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”