Friday, February 22, 2013

NextReports: Internationalization made by user

With version 6.0 that also brings internationalization to NextReports Server, users can add other internationalization files to automatically have the possibility of changing to their needed language.

 You need to know language and country codes. The list for all locale codes can be found here. For example lets say you want to add Spanish  internationalization.

1) For NextReports Server, you can find i18n files in installation folder:
<install_directory>\webapps\nextserver\WEB-INF\classes\com\asf\nextserver\web

You should add here your i18n file. For Spanish you should create

NextServerApplication_es_ES.properties

All i18n files must contain a new property:  

Settings.personalize.language.es_ES= <language_name>

2) For NextReports Designer, the files can be found inside a jar file. In <install_directory> /lib inside nextreports-designer-6.0.jar there is a i18n folder. Using a zip utility like 7Zip you can add your new file here.

For Spanish you should create

next-ui_es_ES.properties

All i18n files must contain a new property: 


language.es_ES= <language_name>

Although, if you want to see your national flag in Language menu bar, you should have a 16x16 pixels image which you will put in the same jar in images folder. You should edit images.properties file from jar and add a new entry:

flag-es_ES=<image_name>.png

If you create such i18n file and want to share, please send it to us at next_support@asf.ro and we will add it to main distribution to be used by other users.

No comments: