Written by The Jahia Team
 
Developers
   Estimated reading time:
7.1.x.x 7.2.x.x 7.3.x.x

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> 

Related links