Versions Compared

Key

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

...

ResourceDescription
PDFLicencePanel.licenceThe license agreement text to show on the panel.

...

Localization

The PDFLicencePanel is fully localized.

The title and button elements are translated from the built-in langpack files in the installer according to the chosen installer language.

In order to automatically choose translated license documents follow these steps:

  1. Specify the available languages the installer should support:

    Code Block
    languagexml
    titleinstall.xml
    <locale>
        <langpack iso3="eng"/>
        <langpack iso3="fra"/>
        <langpack iso3="deu"/>
    </locale>

    The above example adds translations for english, french and german language to the installer, which can be chosen in the initial language dialog (GUI mode) or automatically according to the system settings (console mode).

  2. For each translated license document, add a resource ending on '_' followed by the 3-letter ISO code of the according language.
    If you don't have at least one of the translated documents available, offer  the default resource which is the fallback for missing resources in the above format if that language is chosen:

    Code Block
    languagexml
    titleinstall.xml
    <resources>
        <res id="PDFLicencePanel.licence_eng" src="@{izpack.build.directory}/resources/License_eng.pdf" />
        <res id="PDFLicencePanel.licence_deu" src="@{izpack.build.directory}/resources/License_fra.pdf" />
        <res id="PDFLicencePanel.licence" src="@{izpack.build.directory}/License_eng.pdf"/>
    </resources>

    The above example adds an english and french translation of the license document, furthermore it uses the english translation as fallback for the german translation.

Maven Dependencies

This Panel depends on Apache PDF Box and Ice PDF. The dependencies must be available for the plugins and also included into the installer, enabling it to load the PDF in runtime when installing.

...