Internationalization
The following key suffixes can be translated:
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:
- If a panel ID is defined:
<Fully_qualified_panel_classname>.<panelId>.<subKey>
- If a panel ID is defined:
<Simple_panel_classname>.<panelId>.<subKey>
- If no panel ID is defined:
<Fully_qualified_panel_classname>.<subkey> - If no panel ID is defined:
<Simple_panel_classname>.<subkey> (for compatibility with IzPack 4 translations)
Example 1:
Code Block |
---|
language | html/xml |
---|
title | install.xml |
---|
|
<resources>
<res id="CustomLangPack.xml_eng" src="i18n/CustomLangPack.xml_eng"/>
</resources>
<panels>
<panel classname="TargetPanel"/>
</panels> |
Code Block |
---|
language | html/xml |
---|
title | CustomLangPack.xml_eng |
---|
|
<langpack>
<str id="com.izforge.izpack.panels.target.TargetPanel.headline" txt="Please select the installation directory"/>
</langpack> |
Example 2:
Code Block |
---|
language | html/xml |
---|
title | install.xml |
---|
|
<resources>
<res id="CustomLangPack.xml_eng" src="i18n/CustomLangPack.xml_eng"/>
</resources>
<panels>
<panel classname="TargetPanel" id="target.panel"/>
</panels> |
Code Block |
---|
language | html/xml |
---|
title | CustomLangPack.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.