We need you!

Icon

The IzPack documentation needs work, and you are invited to edit it!

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Allows the user to select the packs he wants to installbe installed. This panel also allows grouping of packs. Look at InstallationGroupPanel description to get more details.

IzPack automatically sets reserved variables depending on the packs selected by the user or an unattended installation (auto-install.xml) to be installed:

izpack.selected.<packname>

where <packname> is the name attribute <pack name="..."> of the pack selected. If the pack is selected, the condition validates true.

Translations

The contents of PacksPanel can be translated, in order to present a different name and description of the packs for each language.

In order to provide internationalization for the PacksPanel, you have to add a resource packsLang.xml_xyz to the installation descriptor (install.xml) where xyz is the ISO3 code of the language in lowercase.

Example:

Code Block
titleThe installation descriptor (install.xml)
languagexml
<resources>
    <res id="packsLang.xml_eng" src="i18n/myPacksLang.xml_eng"/>
</resources>

The IzPack translation file uses reserved IDs for the single translation items.

For translating the short name of the pack use the pack name as the id attribute of each translation item. For translating a pack description use the pack name suffixed by .description as the translation item key.

 

Code Block
titleThe packsLang.xml_eng file referred by the according resource ID
languagexml
<langpack>
    <str id="myApplicationPack" txt="Main Application"/>
    <str id="myApplicationPack.description" txt="A description of my main application package"/>
    [...]
</langpack>