We need you!


The IzPack documentation needs work, and you are invited to edit it!

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Internationalizing resources

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.

  • No labels