Lists, Combos, etc and Localization - 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!

jstevenco
Posts: 20
Joined: Tue Jan 01, 2008 1:27 am

Lists, Combos, etc and Localization

Hello Advanced Installer-ites,

I have been evaluating your product for some time and must say I am very impressed with it. We currently have a custom written installer and I have been re-creating its functionality using AI. So far I have been successful in every feature attempted. I believe that I may have hit a snag however. Is it possible to localize strings contained in dropdown/combos, list views, editboxes, etc? The interface seems to indicate this is possible (using the per-element localization option), but I am not sure how to go about it. I tried initializing the settings for a combobox thusly:

Code: Select all

<ROW Property="FEEDBACKDIALOGCOMBOBOX_ENU_PROP" Value="STR_0089" Type="4"/>

<ROW Property="FEEDBACKDIALOGCOMBOBOX_ENU_PROP" Order="1" Value="STR_0089" Text="Sample ENU 1..."/>
<ROW Property="FEEDBACKDIALOGCOMBOBOX_ENU_PROP" Order="2" Value="STR_0090" Text="Sample ENU 2..."/>

<ROW Dialog_="FeedbackDialog" Control="FeedbackDialogComboBox" Type="ComboBox" X="105" Y="101" Width="235" Height="16" Attributes="196611" Property="FEEDBACKDIALOGCOMBOBOX_PROP" Text="[FEEDBACKDIALOGCOMBOBOX_ENU_PROP]" Control_Next="FeedbackDialogEditBox" TextLocId="Control.Text.FeedbackDialog#FeedbackDialogComboBox"/>
But from there it gets a bit murky as it was not clear to me how to setup the connection between the combobox text and localization. I have tried various permutations of tweaking the AIL file and setting properties; e.g.:

Code: Select all

<ENTRY id="Control.Text.FeedbackDialog#FeedbackDialogComboBox">
  <STRING lang="en" value="Your Application" />
  <STRING lang="de" value="[FEEDBACKDIALOGCOMBOBOX_DE_PROP]" />
</ENTRY>
where I have manually edited the AIP file to contain:

Code: Select all

<ROW Property="FEEDBACKDIALOGCOMBOBOX_DE_PROP" Value="STR_0098" Type="4"/>
and

Code: Select all

<ROW Property="FEEDBACKDIALOGCOMBOBOX_DE_PROP" Order="1" Value="STR_0098" Text="Sample DEU 1..."/>
<ROW Property="FEEDBACKDIALOGCOMBOBOX_DE_PROP" Order="2" Value="STR_0099" Text="Sample DEU 2..."/>
but this did not work, and as there was [to my eye] no means for doing this in the interface anyway probably a hack at best. My perusal of the forums doesn't turn up anything that looks close to a solution unless maybe it involves a UI custom action and dynamic population of the combobox.

Am I really off the beaten path here?

Best regards,

Steve
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Hi Steve,

I had the same problem, the way i solved was I created a Property that would hold all my values for the combo box, then I added that property to my dictionary and transalated all the strings. On a VBS I get that property and fill out the combo boxes.

I hope that solves you problem :)
Regards,
Marcelo
jstevenco
Posts: 20
Joined: Tue Jan 01, 2008 1:27 am

Lists, Combos, etc and Localization

Hi Folks,

My bad... I coulda swore that I traversed all the possibilities, but this morning I discovered that I needed to go to the Control Data window for the combobox, then bring up the Control Data Row dialog for a given Text-Value pair in the combobox dataset. At that point I am given the option to localize the text value for the data row. :oops:

Cheers,

Steve
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Jesh Steve,

Thanks for the that!! Is that something its been there for a while or they just added? I never seen that before and when I asked on the forum how to add the items to the combo box, they gave me a VBS :D

Great, this is so much cleaner to work with! I'm changing that right now on my install :D

Cheers,
Marcelo
jstevenco
Posts: 20
Joined: Tue Jan 01, 2008 1:27 am

Hi Marcelo,

Like I said, I coulda *swore* I looked there before -- oh well :P

Not sure about the revision history -- I am currently working with an eval copy of 6.0.0.

Cheers,

Steve (thx for your reply post b4 BTW)

Return to “Common Problems”