Renaming New Dialog, incomplete? - 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!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Renaming New Dialog, incomplete?

Hello everyone.

I use the latest AI version.

- Create a new enterprise project
- Add a second language in the translations page
- Add a new dialog
- Rename new dialog to "MyDialog"
- In translations page select to translate UI
- Create a new dictionary

The new dictionary contains these entries:

<ENTRY id="Control.Text.MyDialog#MyDialogText_1">
...
<ENTRY id="Control.Text.NewDialog#Description">
...
<ENTRY id="Control.Text.NewDialog#Logo">
...
<ENTRY id="Control.Text.NewDialog#Title">
...
<ENTRY id="Dialog.MyDialog">

Adding a second dialog these dialogs share the "NewDialog" texts for Description, Logo and Title.

Is this the correct behavior?



With best regards

Clemens Anhuth
Attachments
TEST_NewDialogTexts.zip
Project file and generated dictionary
(2.79 KiB) Downloaded 377 times
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Renaming New Dialog, incomplete?

Hello everyone.

I found the respective entries ("Control.Text.NewDialog#Title", etc.) in the *.aip file and manually corrected them. After that each dialogs gets its own title, description, etc. just fine.

By the way, I found that I had to remove the cache directory a few times after making changes in our custom dictionary file to get the changed texts to show up in the installer.



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Renaming New Dialog, incomplete?

Hi,

Please note that a new dialog contains multiple controls which can be localized:
- the dialog title ("New Dialog")
- the dialog description ("New Dialog Description...")
- the dialog logo ("Advanced Installer")

Modifying the name of the dialog automatically modifies the localization identifier of the name. However, this does not modify the localization identifiers of the rest of the controls on the dialog. Therefore, you need to modify these identifiers manually:
- select the dialog title
- click in the "Text" field from the "Properties" pane
- click on the localization button
- modify the default localization identifier from "Control.Text.NewDialog#Title" to "Control.Text.MyDialog#Title"
- do the same for the dialog description and logo

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Renaming New Dialog, incomplete?

Hello Cosmin,

thank you for the information.

Someone forgetting to click on that translation button of every control will always automatically bump into this. Maybe the default can be made to automatically adjust the localization identifier when the name changes. In addition the user should be able to override this behavior should he really want to.

(Not the most dramatic issue but the first impression is "Aha, a bug! This works in my IDE.".)



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Renaming New Dialog, incomplete?

Hi Clemens,

We will implement a solution for this in a future version of Advanced Installer. Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”