Fork me on GitHub

gettext:merge

Full name:

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

Description:

Invokes msgmerge to update po files.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: generate-resources.

Required Parameters

Name Type Since Description
<keysFile> String - Filename of the .pot file.
Default value is: keys.pot.
<outputDirectory> File - The output directory for generated class or properties files.
User property is: project.build.outputDirectory.
<poDirectory> File - The output directory for the keys.pot directory for merging .po files.
Default value is: ${basedir}/src/main/po.
<sourceDirectory> File - Source directory. This directory is searched recursively for .java files.
User property is: project.build.sourceDirectory.

Optional Parameters

Name Type Since Description
<backup> String - The --backup option. One of: 'none', 'numbered', 'existing', 'simple'
Default value is: none.
<extraArguments> String[] - Optional raw command line arguments
<fuzzy> boolean - Activates fuzzy matching if set to true.
Default value is: false.
<location> Location - set the location comment-mode (full,file,.
<msgmergeCmd> String - The msgmerge command.
Default value is: msgmerge.
<multiDomain> boolean - Keep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.
Default value is: false.
<previous> boolean - Keep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.
Default value is: false.
<update> boolean - The --update option. Update po-file. Do nothing if po-file is already up to date.
Default value is: true.

Parameter Details

<backup>

The --backup option. One of: 'none', 'numbered', 'existing', 'simple'
  • Type: java.lang.String
  • Required: No
  • Default: none

<extraArguments>

Optional raw command line arguments
  • Type: java.lang.String[]
  • Required: No

<fuzzy>

Activates fuzzy matching if set to true.
  • Type: boolean
  • Required: No
  • Default: false

<keysFile>

Filename of the .pot file.
  • Type: java.lang.String
  • Required: Yes
  • Default: keys.pot

<location>

set the location comment-mode (full,file,.
  • Type: de.fenvariel.maven.gettext.Location
  • Required: No

<msgmergeCmd>

The msgmerge command.
  • Type: java.lang.String
  • Required: No
  • Default: msgmerge

<multiDomain>

Keep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.
  • Type: boolean
  • Required: No
  • Default: false

<outputDirectory>

The output directory for generated class or properties files.
  • Type: java.io.File
  • Required: Yes
  • User Property: project.build.outputDirectory

<poDirectory>

The output directory for the keys.pot directory for merging .po files.
  • Type: java.io.File
  • Required: Yes
  • Default: ${basedir}/src/main/po

<previous>

Keep the previous msgids of translated messages, marked with '#|', when adding the fuzzy marker to such messages.
  • Type: boolean
  • Required: No
  • Default: false

<sourceDirectory>

Source directory. This directory is searched recursively for .java files.
  • Type: java.io.File
  • Required: Yes
  • User Property: project.build.sourceDirectory

<update>

The --update option. Update po-file. Do nothing if po-file is already up to date.
  • Type: boolean
  • Required: No
  • Default: true