New Language Support

 

Language Translation

 

To translate the MailArchiva user interface, create a new application.properties file.

 

1) Stop the server
 

/opt/mailarchiva/server/stopserver

 

2) Open English translation inside application.properties located at

 

/var/opt/mailarchiva/tomcat/webapps/ROOT/WEB-INF/classes/properties
C:\ProgramData\MailArchiva\Tomcat\webapps\ROOT\classes\properties

 

3) Edit or create a new file application_es.properties in the same location as above

 

4) Add translations save as application_es.properties (where _es should be replaced with target two letter country code).

 

5) To ensure special accent characters are displayed correctly, convert the application_es.properties to ASCII using the Java utility native2ascii (available in the Java Development Kit)

 

5) Verify translations by starting the server and accessing the console using a browser at http://localhost:8090.

 

The translations should automatically appear if the client browser's language is set to the same language as the resource file.

 

Adding Additional Search Analyzers
 

Note: This step is not normally necessary as MailArchiva supports a large number of analyzers out of the box!

 

By default, MailArchiva can handle the indexing and search of emails in many different languages. If your language is not supported, do not worry, for MailArchiva can easily be extended to support additional languages. MailArchiva uses Lucene as its underlying search engine.


To support additional languages, you need to find a Lucene Analyzer for your target language.


Once you have found your analyzer, download the JAR file and place in

 

c:\ProgramData\MailArchiva\Tomcat\webapps\ROOT\WEB-INF\lib
/var/opt/mailarchiva/tomcat/webapps/ROOT/WEB-INF/lib
 
Next, you need to add the following to your server.conf file: search.analyzer.language.1=countrycode search.analyzer.class.1 = full class name

 

For example, to support Spanish, you would need to download the Lucene Snowball analyzer from here. Install the JAR file as described above. Add the following to your server conf file:
 

search.analyzer.language.1=es
search.analyzer.class.1=org.apache.lucene.analysis.snowball.SnowballAnalyzer

 

Now if you want to set Spanish as your default language, change the following property on server.conf:
 

index.language=es

 

If you want to force MailArchiva to index emails in Spanish and disable auto language detection, you can set language detection to no:
 

index.language.detect = no
Was this information helpful?

Found this information useful? Visit mailarchiva.com to learn more about MailArchiva.

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please make sure you spelled the page name correctly or use the search box.