JReport products support a National Language feature. When you design and save a report, the language-dependent text of the Label objects will be extracted to a resource file (.properties). After which, you can make a copy of this resource file, and change the contained text into another language. When JReport is running, JReport Engine will retrieve language-dependent text according to the current locale, and the end user will get a report result that matches his locale setting.
For JRCltPreViewer.java and JRPrepareViewer, you can set language and convert to a Locale object.
|
For JRDirectViewer and JRRunViewer:
At runtime, clients can specify the encoding and Locale for rendering a report result accordingly. However, make sure that when you design the report, you have specified NLS support, and also, that you have generated the property file for the language that you want to use.