gettext:gettext

Invokes xgettext to extract keys from source code.

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: generate-resources

Required Parameters

Name Type Description
keysFile String Filename of the .pot file.2 Default value is keys.pot.
keywords String No description. Default value is -ktrc -ktr -kmarktr -ktrn:1,2.
outputDirectory File No description. Default value is ${project.build.outputDirectory}.
poDirectory File PO directory. Default value is ${project.build.sourceDirectory}/main/po.
sourceDirectory File No description. Default value is ${project.build.sourceDirectory}.
xgettextCmd String No description. Default value is xgettext.

Optional Parameters

Name Type Description
encoding String No description. Default value is utf-8.

Parameter Details

encoding

No Description.

  • Type: java.lang.String
  • Required: No
  • Expression: ${encoding}
  • Default: utf-8

keysFile Filename of the .pot file.2
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${keysFile}
  • Default: keys.pot

keywords No Description.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${keywords}
  • Default: -ktrc -ktr -kmarktr -ktrn:1,2

outputDirectory No Description.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${outputDirectory}
  • Default: ${project.build.outputDirectory}

poDirectory PO directory.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${poDirectory}
  • Default: ${project.build.sourceDirectory}/main/po

sourceDirectory No Description.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${sourceDirectory}
  • Default: ${project.build.sourceDirectory}

xgettextCmd No Description.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${xgettextCmd}
  • Default: xgettext