...
If a country or language is not supported, the following instructions can be used to add a new one.
NOTE: This assumes IzPack 5.0.0-rc1 is being used with the izpack-maven-plugin.
Background
In IzPack, language packs are identified by a 3 character ISO country or language code. Country codes are converted to lowercase.
...
com/izforge/izpack/bin/langpacks/flags/eng.gif
Adding a language pack
...
To add a country specific variant of the English language pack, e,g. for Australia1. Create
- Create the langpack resource in:
com/izforge/izpack/bin/langpacks/installer/aus.xml
This can be derived from the English language pack here:
https://github.com/izpack/izpack/blob/master/izpack-core/src/main/resources/com/izforge/izpack/bin/langpacks/installer/eng.xml
...
- Create a flag resource in:
com/izforge/izpack/bin/langpacks/flags/aus.gif
...
- Create a jar (call it myjar) containing these resources
...
The izpack-maven-plugin needs to reference the jar in order for it to locate the resources
...
Code Block language xml title pom.xml <plugin> <groupId>org.codehaus.izpack</groupId>
...
<artifactId>izpack-maven-plugin</artifactId>
...
<version>5.0.0-rc1-SNAPSHOT</version>
...
<configuration>
...
<installFile>${staging.dir}/install.xml</installFile>
...
<baseDir>${staging.dir}</baseDir>
...
</configuration>
...
<executions>
...
<execution>
...
<id>installer</id>
...
<phase>package</phase>
...
<goals>
...
<goal>izpack</goal>
...
</goals>
...
</execution>
...
</executions>
...
<dependencies>
...
<dependency>
...
<groupId>com.mystuff</groupId>
...
<artifactId>myjar</artifactId>
...
<version>${project.version}</version>
...
</dependency>
...
</dependencies>
...
...
</plugin>
...