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 set automatically using 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 language.
    If you are missing any of the translated documents, add the default resource which will be used as the fallback for missing resources if that language is chosen:

    Code Block
    languagexml
    titleinstall.xml
    <resources>
        <res id="LicencePanel.licence_eng" src="@{izpack.build.directory}/resources/License_eng.txt" />
        <res id="LicencePanel.licence_fra" src="@{izpack.build.directory}/resources/License_fra.txt" />
        <res id="LicencePanel.licence" src="@{izpack.build.directory}/License_eng.txt"/>
    </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 version.

See Internationalizing resources for more information on automatic localization of resources in IzPack.