Versions Compared

Key

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

Internationalization

The following key suffixes can be translated:

  • headline
  • headinfo<number>

The built-in translation of these labels can be overridden in the following way:

  • Add custom translations to a IzPack resource CustomLangPack.xml_<ISO3>
  • The following translation keys and lookup order can be used:
    1. If a panel ID is defined:
      <Fully_qualified_panel_classname>.<panelId>.<subKey>
    2. If a panel ID is defined:
      <Simple_panel_classname>.<panelId>.<subKey>
    3. If no panel ID is defined:
      <Fully_qualified_panel_classname>.<subkey>
    4. If no panel ID is defined:
      <Simple_panel_classname>.<subkey>
       (for compatibility with IzPack 4 translations)

Example 1:

Code Block
languagehtml/xml
titleinstall.xml
<resources>
  <res id="CustomLangPack.xml_eng" src="i18n/CustomLangPack.xml_eng"/>
</resources>
 
<panels>
  <panel classname="TargetPanel"/>
</panels>
Code Block
languagehtml/xml
titleCustomLangPack.xml_eng
<langpack>
  <str id="com.izforge.izpack.panels.target.TargetPanel.headline" txt="Please select the installation directory"/>
</langpack>

Example 2:

Code Block
languagehtml/xml
titleinstall.xml
<resources>
  <res id="CustomLangPack.xml_eng" src="i18n/CustomLangPack.xml_eng"/>
</resources>
 
<panels>
  <panel classname="TargetPanel" id="target.panel"/>
</panels>
Code Block
languagehtml/xml
titleCustomLangPack.xml_eng
<langpack>
  <str id="TargetPanel.target.panel.headline" txt="Please select the installation directory"/>
</langpack>

 See Translating Panel Headlines for more examples on translating dedicated panel headlinesPanel contents can be fully translated.

This includes the headline and all labels.