gwt
languages
ui
Translate UI in more languages
Question
When you need a new standard language, for instance, dutch, it is not enough to translate the JahiaInternalResources.
Cause
The problem is on compiling level of Jahia, the JahiaInternalResources is translated for GWT in a messages_xx.js file. This file must also be created from the JahiaInternalResources.
Solution
A simple maven job can do it. You can use the gwt-dictionary goal like:
<build>
<plugins>
<plugin>
<groupId>org.jahia.server</groupId>
<artifactId>jahia-maven-plugin</artifactId>
<executions>
<execution>
<id>gwt-dictionary</id>
<goals>
<goal>gwt-dictionary</goal>
</goals>
</execution>
</executions>
<configuration>
<languages>da,de,en,es,fi,fr,it,no,pt,sv</languages>
</configuration>
</plugin>
</plugins>
</build>