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.

Assuming a package is defined in this way:

Code Block
titleinstall.xml
languagexml
<packs>
  <pack name="Core Files" required="yes" id="core.package">
    <description>The core files required for this application</description>
    ...
  </pack>
</packs>

the according name and description can be translated in the installer in the following way:

First, define a package translation file per language, for example german:

Code Block
titlepacksLang.xml_deu
languagexml
<langpack>
  <str id="core.package" txt="Anwendungs-Kern"/>
  <str id="core.package.description" txt="Unbedingt notwendige Dateien für das Betreiben dieser Anwendung"/>
</langpack>

and add them as packsLang.xml_<LANGUAGE_CODE> to the installation descriptor:

Code Block
titleAdd package translation resources to install.xml
languagexml
<resources>
  <res id="packsLang.xml_eng" src="@{izpack.resources.local.dir}/i18n/packsLang.xml_eng"/>
  <res id="packsLang.xml_deu" src="@{izpack.resources.local.dir}/i18n/packsLang.xml_deu"/>
</resources>