z_shangyi
Posts: 27
Joined: Sat Aug 26, 2006 5:44 am

Found a string can not be localized in UI

Hello,

Today, found the "Chenge" can not be localized in MaintenanceTypeDlg. The following line in UI.aip file needs to be revised.
<ROW Dialog_="CustomizeDlg" Control_="Back" Event="NewDialog" Argument="MaintenanceTypeDlg" Condition="InstallMode = "Change"" Ordering="2"/>
<ROW Dialog_="CustomizeDlg" Control_="Next" Event="NewDialog" Argument="VerifyReadyDlg" Condition="(NOT Installed) OR (InstallMode = "Change")" Ordering="2"/>
<ROW Dialog_="MaintenanceTypeDlg" Control_="ChangeButton" Event="[InstallMode]" Argument="Change" Condition="1" Ordering="1"/>
<ROW Dialog_="VerifyReadyDlg" Control_="Back" Event="NewDialog" Argument="CustomizeDlg" Condition="AI_MAINT AND (InstallMode= "Change")" Ordering="2"/>
Need to as following, because the CtrlEvtchanges Property has been defined as the Change in Property table.
<ROW Dialog_="CustomizeDlg" Control_="Back" Event="NewDialog" Argument="MaintenanceTypeDlg" Condition="InstallMode = CtrlEvtchanges" Ordering="2"/>
<ROW Dialog_="CustomizeDlg" Control_="Next" Event="NewDialog" Argument="VerifyReadyDlg" Condition="(NOT Installed) OR (InstallMode = CtrlEvtchanges)" Ordering="2"/>
<ROW Dialog_="MaintenanceTypeDlg" Control_="ChangeButton" Event="[InstallMode]" Argument="[CtrlEvtchanges]" Condition="1" Ordering="1"/>
<ROW Dialog_="VerifyReadyDlg" Control_="Back" Event="NewDialog" Argument="CustomizeDlg" Condition="AI_MAINT AND (InstallMode= CtrlEvtchanges)" Ordering="2"/>
Zhanks,
Zhang Shangyi
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Found a string can not be localized in UI

Hi,

Please note that "UI.aip" is not related in any way with localization. It is a file used by Advanced Installer to create the installation packages and it should not be modified. If you want to localize an element in the "Dialogs" page, you can use an approach similar to the one explained in the Localize EULA and Readme text how-to.

The text for the "Modify" option can be localized only in an Enterprise project. If this is not what you need, please give me more details.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
z_shangyi
Posts: 27
Joined: Sat Aug 26, 2006 5:44 am

Re: Found a string can not be localized in UI

I am sorry. Maybe I do not have a good expression.

There is following line in ui_en.ail file which is in dictionaries folder:
<STRING id="Control.Text.VerifyReadyDlg#Description" value="The [Wizard] is ready to begin the [InstallMode] installation"/>
The [InstallMode] in above line is referenced from the "Change" in following line at Modify Installation:
<ROW Dialog_="MaintenanceTypeDlg" Control_="ChangeButton" Event="[InstallMode]" Argument="Change" Condition="1" Ordering="1"/>
This "Change" string can't be changed with a different installation language. Because it is not a property. The "CtrlEvtchanges" is a property that this value is "Change". so to replace "Change" as "CtrlEvtchanges" will be able to show different languages.

Zhang Shangyi
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Found a string can not be localized in UI

Hi,

Please note that "InstallMode" is an installer property which determines the type of the installation. It use three values which cannot be changed: "Change", "Repair" and "Remove".

If you want to localize the "The [Wizard] is ready to begin the [InstallMode] installation" text you can try this approach:
- in the Install Parameters page create a new property
- set its value to the text you want to show instead of the InstallMode value
- in the "Dialogs" page select the Description text on "VerifyReadyDlg"
- in the "Text" field of the "Properties" pane modify the text to use your custom property instead of "InstallMode"
- localize the value of this property

Note that you can also use [ProductName] instead of [InstallMode] in the description text.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
z_shangyi
Posts: 27
Joined: Sat Aug 26, 2006 5:44 am

Re: Found a string can not be localized in UI

Please note that "InstallMode" is an installer property which determines the type of the installation. It use three values which cannot be changed: "Change", "Repair" and "Remove".
Why does the following property which is in ui.ail file can be localized?
<STRING id="Property.InstallModeComplete" value="Complete"/>
<STRING id="Property.InstallModeCustom" value="Custom"/>
<STRING id="Property.InstallModeTypical" value="Typical"/>
And it is be used for following lines in SetupTypeDlg.aip file.
<ROW Dialog_="SetupTypeDlg" Control_="CompleteButton" Event="[InstallMode]" Argument="[InstallModeComplete]" Condition="1" Ordering="1"/>
<ROW Dialog_="SetupTypeDlg" Control_="TypicalButton" Event="[InstallMode]" Argument="[InstallModeTypical]" Condition="1" Ordering="1"/>
<ROW Dialog_="SetupTypeDlg" Control_="CustomButton" Event="[InstallMode]" Argument="[InstallModeCustom]" Condition="1" Ordering="1"/>
I successfully tested by Simplified Chinese language after the "Change" has been replaced by "CtrlEvtchanges"
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Found a string can not be localized in UI

Hi,

Please note that these lines refer to the text shown for the buttons on the SetupTypeDlg dialog, they are not used during maintenance. These texts can be localized by using the "Dialogs" page by using an approach similar to the one explained in the Localize EULA and Readme text how-to.

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

Return to “Feature Requests”