How to add a locale to Jasperserver

H

To add a locale to Jasperserver you need to open the applicationContext-security.xml file. This is located in the WEB-INF folder.

In that file, search for userLocalesList. In this list, you can add your new locale. When changed and uploaded this file, you need to restart your server or application.

Example

I want to add the locale for Belgium. I do this by adding the nl_BE locale to the userLocalesList:

<bean id="userLocalesList" class="com.jaspersoft.jasperserver.war.common.LocalesListImpl">
        <property name="locales">
            <list>
                <value type="java.util.Locale">en</value>
                <value type="java.util.Locale">fr</value>
                <value type="java.util.Locale">it</value>
                <value type="java.util.Locale">es</value>
                <value type="java.util.Locale">de</value>
                <value type="java.util.Locale">ro</value>
                <value type="java.util.Locale">ja</value>
                <value type="java.util.Locale">zh_TW</value>
                <value type="java.util.Locale">zh_CN</value>
                <value type="java.util.Locale">nl_BE</value>
            </list>
        </property>
    </bean>

Now I need to restart my application or server. When the application is up and running, you now can see the locale at the login screen.

localejasper

Enjoy and don’t forget to like ‘n share 😀

Add comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Tag Cloud

Categories