BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

English strings not replaced using dictionary

Hi,

I am using a dictionary to replace some text in my installer, and build a multilanguage package. One thing that I have noticed is that for all the strings in my dictionary where I have specified the language "en" will not be replaced when I build and run the installer. For other languages, the replacement works fine.

I've removed the ignore="en" element from the "DICTIONARY" tag in the XML, so I'm confused as to why this behavior is still happening.

Thanks,

Justin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: English strings not replaced using dictionary

Hi Justin,
I've removed the ignore="en" element from the "DICTIONARY" tag in the XML, so I'm confused as to why this behavior is still happening.
This setting should not be changed as it does not affect the behavior you are seeking.
Please describe the exact steps you followed, or send the relevant files to support at advancedinstaller dot com so we can try to trace the problem.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Re: English strings not replaced using dictionary

I've emailed the files.

What does the ignore="en" setting mean? I had thought that it would mean for Advanced Installer to ignore English strings at build time, however I am probably misunderstanding this based on your response.

I see in the help for multilingual packages:

You will notice that the dictionary also contains the strings in one or more "start" languages. Those are placed there only to help you in your translation. Do not edit them, as they are being ignored at build.

This may explain the behavior described above. How do I identify what the "start" languages are, and remove them from their "start" state so that they will not be ignored at build?

Thanks,

Justin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: English strings not replaced using dictionary

Hi Justin,

The ignore="en" indeed does what you thought it does. However changing it does not help achieve the goal.

The project you sent me works as expected. The spanish string you provided in the dictionary is correctly displayed. To test this, go to "control panel->regional and language options->formats tab" and change the current format to Spanish (Spain). Then run your installer, and the spanish string will be displayed.

If this is not what you want, please describe your goal in more detail.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Re: English strings not replaced using dictionary

Yes, the Spanish strings are indeed displayed correctly. However, the English strings in the dictionary are not displayed correctly. The English strings specified in the dictionary are not used when the project is built, instead it displays the strings that are in the Advanced Installer UI.

Justin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: English strings not replaced using dictionary

Hi Justin,

Your project is already in english. Why do you need a dictionary and not edit the strings directly in the UI? A dictionary can not be used for this.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

Re: English strings not replaced using dictionary

Ok, so I think I understand the behavior:

The dictionary will not be used to replace strings that are the same language as the project language, which in my case is English. This takes precedence over any ignore="x" elements in the dictionary (since removing the ignore="en" had no effect in my case)

I have an automated build system in which I use Advanced Installer as a component. The automated build system will make installers with different manufacturers, product names, etc. by editing the dictionary files. This solution works great, except for English, hence my posts here. Unfortunately I will have to add some kind of exception in the build system for English so it will directly edit the .aip file rather than the dictionary in the case of English strings.

Please correct me if I am wrong on any of these points. When I chose to create a "multilingual" package I thought that all the languages would be given equal weight, I wasn't aware that there was a language that given higher priority then the others (the project language), hence my confusion.

Thanks,

Justin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: English strings not replaced using dictionary

Hello Justin,

Indeed this is the case, strings in the project language can not be overwritten using a dictionary. However Advanced Installer can be instructed through the command line to modify the project in various way. This is especially useful for build systems. Please do consult our guide on the subject, you may find useful information there that may help you set up your build system.

You might be especially interested in the SetPackageName and SetProperty commands.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”