Versions Compared

Key

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

...

  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_deufra" 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.

...