##### Applying National Language Support (NLS)

JReport products support a National Language feature. If you specify to apply NLS, when you design and save a report, the language-dependent text of the Label object will be extracted to a resource file (.properties). You can then make a copy of the resource file, and modify the text in the copied file for another language. When JReport is running, JReport Engine Bean will retrieve the language-dependent text according to the current locale. The end user will then get a report result that matches his locale setting.

- setLocale(Locale currentLocale)
- setEncoding(String encoding)

Notes:

- At runtime, you can specify the encoding and locale for rendering the report result accordingly. However, make sure that when you design the report, you set it to support NLS, and that you have created the property file for the language you want to apply.
- In addition, JReport also provides the method Vector getAvailableLocales(String clt), which gets all of the Locales that the current report supports. The parameter clt is the current client's locale. If clt is in current report Locales, it is moved to the index at zero.