We need you!

Icon

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

Versions Compared

Key

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

...

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

  1. 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

...

  1. Create a flag resource in:
    com/izforge/izpack/bin/langpacks/flags/aus.gif

...

  1. Create a jar (call it myjar) containing these resources

...

  1. The izpack-maven-plugin needs to reference the jar in order for it to locate the resources

...

  1. Code Block
    titlepom.xml
    languagexml
    <plugin>
             <groupId>org.codehaus.izpack</groupId>

...

  1. 
             <artifactId>izpack-maven-plugin</artifactId>

...

  1. 
             <version>5.0.0-rc1-SNAPSHOT</version>

...

  1. 
             <configuration>

...

  1. 
                 <installFile>${staging.dir}/install.xml</installFile>

...

  1. 
                 <baseDir>${staging.dir}</baseDir>

...

  1. 
             </configuration>

...

  1. 
             <executions>

...

  1. 
                 <execution>

...

  1. 
                     <id>installer</id>

...

  1. 
                     <phase>package</phase>

...

  1. 
                     <goals>

...

  1. 
                         <goal>izpack</goal>

...

  1. 
                     </goals>

...

  1. 
                 </execution>

...

  1. 
             </executions>

...

  1. 
             <dependencies>

...

  1. 
                 <dependency>

...

  1. 
                     <groupId>com.mystuff</groupId>

...

  1. 
                     <artifactId>myjar</artifactId>

...

  1. 
                     <version>${project.version}</version>

...

  1. 
                 </dependency>

...

  1. 
             </dependencies>

...

  1. 
    

...

  1. </plugin>