Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Document how to localize a plugin

...

You can see the localization progress of Maven Site Plugin and Maven Project Info Reports Plugin on the Site Plugin site.

Localizing a Plugin

  • Check out the source code for the plugin you want to add a translation for.
  • Find the resource bundles that needs to be translated. They are often found in the src/main/resources folder.
  • Copy the basefile for the bundle, i.e. the one without a language extension. The copy should have the same name as the original file, except for the addition of a language extension. If, for example, you want to translate the Changes Plugin into Spanish, you would copy src/main/resources/scm-activity.properties to src/main/resources/scm-activity_es.properties.
  • Edit the new file and translate all the properties.
  • Convert the new file so that all non-US-ASCII characters are transformed into Unicode escapes, see below for tools that can help with this.

Tools