Fork me on GitHub

Usage

This plugin is used to generate Gettext POT files merge existing Gettext PO files and generate ResourceBundles.

How to use the plugin

Breaking change: The merge goal no longer invokes the gettext goal. This way you can merge ondependently from gettext.

Update pot-file:

mvn de.fenvariel:maven-gettext-plugin:gettext

Update po files with pot-file:

mvn de.fenvariel:maven-gettext-plugin:merge

Create properties/classs files:

mvn de.fenvariel:maven-gettext-plugin:dist

How to Generate the Gettext Report

  <reporting>
    <plugins>
      <plugin>
        <groupId>de.fenvariel</groupId>
        <artifactId>maven-gettext-plugin</artifactId>
        <version>2.0</version>
        <configuration>
          <targetBundle>my.package.Messages</targetBundle>
          <outputFormat>properties</outputFormat>
        </configuration>
      </plugin>
    </plugins>
  </reporting>