| Jinfonet Home > Newsletter > Tech Tip > Native Language Support in the Application Level | |||
In JReport Enterprise Server, a "resources" folder is added to the installation root directory and it is used for holding language packages. Each language package contains all the UI text and messages available in JReport Enterprise Server and JReport Web as well as translated versions to one or more specific languages. When a language package is applied, the JReport Enterprise Server and JReport Web UI will be displayed in the language specified in that package. In each language package, there are three properties files which together contain all the UI text and messages in JReport Enterprise Server and JReport Web:
Specifying the application languageOnce the application language is set, it takes effect in both JReport Enterprise Server and JReport Web. There are two ways of setting the application language: 1. Specifying by UI option The Specify Default Language option allows an administrator or end user to switch the application language. The available language list depends on the language packages in
2. Specifying by URL parameterEnd users can control the application language by using the "jrs.language" parameter when accessing JReport Console Pages or JReport Web UI via URLs. The format of the URL is as follows:
The value of jrs.language should be the same as the language package folder name in the The following are two examples:
Note: The specified application language by URL parameter has higher priority than that specified by UI option, and takes effect only in the current user session. |
|||