Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Assuming a package is defined in this way:

install.xml
<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:

packsLang.xml_deu
<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:

Add package translation resources to install.xml
<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>
  • No labels