translate plugin

To allow easy entering of the translation string for the application, with aid about strings which are not yet translated etc, you can use the translation plugin.

For this to work, shou should edit your .m2/settings.xml file to assure the following bit is included.


...
<pluginGroups>
...
<pluginGroup>org.equanda</pluginGroup>
...
</pluginGroups>
...

In the pom for the core module, you should add the following (probably merging with the existing equanda-maven-plugin configuration).


<build>
...
<plugins>
...
<plugin>
<groupId>org.equanda</groupId>
<artifactId>equanda-maven-plugin</artifactId>
<configuration>
<sourceDirectory>${basedir}/../src/main/om</sourceDirectory>
<translateTarget>${basedir}/src/main/resources/translations.txt</translateTarget>
<verifyLanguages>en;nl</verifyLanguages>
</configuration>
</plugin>
...
</plugins>
...
</build>

You may want to change the configuration settings, specifically verifyLanguages as this contains the languages for which translations are needed.

You can now start the translation tool uwing the following maven command.


mvn equanda:translate
  • 1. translate plugin