IzPack is available in several languages. However you might want to internationalize some additional parts of your installer. In particular you might want this for the InfoPanel and LicencePanel. This is actually pretty easy to do. You just have to add one resource per localization, suffixed with the ISO3 language code. At runtime these panels will try to load a localized version.
For instance let's suppose that we use a HtmlInfoPanel. Suppose that we have it in English, French and German. We want to have a French text for french users. Here we add a resource pointing to the French text whose name is HtmlInfoPanel.info_fra. And that's it! English and German users (or anywhere other than in France) will get the default text (denoted by HtmlInfoPanel.info) and the French users will get the French version. Same thing for the other Licence and Info panels.
To sum up: add _iso3code to the resource name for InfoPanel, HtmlInfoPanel, LicencePanel and HtmlLicencePanel.
You can customize any of the strings defined by the built-in langpacks. Add a resource(s) named "
CustomLangPack.xml" and/or "
CustomLangPack.xml_iso3code" to your
<resources> <res id="CustomLangPack.xml" src="CustomLangPack.xml"/> <res id="CustomLangPack.xml_fra" src="CustomLangPack.xml_fra"/> </resources>
The CustomLangPack.xml file should look something like this:
<langpack> <str id="installer.reversetitle" txt="IzPack - installation of $APP_NAME $APP_VER"/> </langpack>