How do I localize the EULA and Readme text?AnswerWhen creating a multilingual installation package you may want to
localize some of the custom elements in it. This How-To explains how to
localize the EULA and Readme text shown to the user during the
installation. Localize the EULA text In order to localize the
End-User License Agreement text you can follow these steps: - create the RTF files which contain the EULA text for each language
in your package and move them into the folder which will contain your
project
- create a new Advanced Installer project or open an existing one
- go to the Translations page
and select the languages "English", "French" and "German" (this is an
example, you can select any languages you want)
- go to the Dialogs page and
add the "LicenseAgreementDlg" dialog
- select the scrollable edit control on this dialog and click into
the File Path field in the Properties section
- click on the [ ... ] button and select the "English"
EULA RTF file
- click on the localization button (the one with the flags next to
the [ ... ] button)
- make sure that the Always translate this string
and Using specified localization identifier options
are selected
- make sure that the localization identifier is set to
AgreementText
- go to the Languages tab of the
"Translations" page and click the [ Select... ] button
- in the "Localization Options" dialog check the User
Interface option
- in the "Languages" tab click on the [ Create... ]
button
- follow the wizard and create a custom dictionary ("My Dictionary
EULA.ail") based on the "English" language
- open the generated dictionary with a text editor and find the
"AgreementText" entry
- since the en (English) value is already set you need
to set the rest of the languages
- set the fr value to the name of the French EULA RTF
file (since it is in the same folder as the English RTF file, you
don't need to specify the full path)
- set the de value to the name of the German EULA RTF
file
- save and close the dictionary file
- save and build the Advanced Installer project
The dictionary entry for the license agreement text should look like
this:
<ENTRY id="AgreementText">
<STRING lang="en" value="C:\My Installation Project\EULA English.rtf"/>
<STRING lang="fr" value="EULA French.rtf"/>
<STRING lang="de" value="EULA German.rtf"/>
</ENTRY>
Localize the Readme TextIn order to localize the
Readme text you can follow these steps: - go to the Dialogs page and
add the "ReadmeDlg" dialog
- select the scrollable edit control on this dialog and click into
the File Path field in the Properties section
- click on the [ ... ] button and select the "English"
Readme RTF file
- click on the localization button (the one with the flags next to
the [ ... ] button)
- make sure that the Always translate this string
and Using specified localization identifier options
are selected
- make sure that the localization identifier is set to
ReadmeText
- in the Languages tab of the
"Translations" page click on the [ Create... ] button
- follow the wizard and create a custom dictionary ("My Dictionary
Readme.ail") based on the "English" language
- open the generated dictionary with a text editor and find the
"ReadmeText" entry
- set the fr value to the name of the French Readme RTF
file
- set the de value to the name of the German Readme RTF
file
- save and close the dictionary file
- save and build the Advanced Installer project
After following this How-To you will have two different
dictionaries: one includes the translations for the EULA text and the
other includes the translations of the Readme text. If you want to use
only one dictionary you can copy/paste the Readme entry into the EULA
dictionary. In the end, the custom dictionary can look like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DICTIONARY type="multilanguage" ignore="en">
<ENTRY id="AgreementText">
<STRING lang="en" value="C:\My Installation Project\EULA English.rtf"/>
<STRING lang="fr" value="EULA French.rtf"/>
<STRING lang="de" value="EULA German.rtf"/>
</ENTRY>
<ENTRY id="ReadmeText">
<STRING lang="en" value="C:\My Installation Project\Readme English.rtf"/>
<STRING lang="fr" value="Readme French.rtf"/>
<STRING lang="de" value="Readme German.rtf"/>
</ENTRY>
</DICTIONARY>
|