NLS at Application Level
All the Logi JReport Designer UI text and message related files are packaged in the file resource_en_US.jar (if Logi JReport Designer is Chinese version, the file name is resource_zh_CN.jar) in <install_root>\lib
. To make Logi JReport Designer display in your required language, you just need to translate the needed files in this package.
The following takes French as an example to explain how to make Logi JReport Designer display in another language.
- Backup the file resource_en_US.jar in
<install_root>\lib
, then rename it to resource_fr_FR.jar.The name of the file must follow the format below: resource_abbreviation of the language with lowercase_abbreviation of the country using the language with uppercase.jar. The language argument is a valid ISO Language Code as defined by ISO-639. You can find a full list of these codes at a number of sites, for example: http://www.loc.gov/standards/iso639-2/php/code_list.php. The locale argument is a valid ISO Country Code as defined by ISO-3166. You can find a full list of these codes at a number of sites, for example: http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html.
- Open the newly saved file resource_fr_FR.jar, and you can find it contains two folders, META-INF and resource.
- In the resource folder, open the following files one by one and translate the property values in the files to French, then save and close the files:
- JWColorChooser.properties
- JWFileChooser.properties
- JWMessage.properties
- JWMisc.properties
- JWNLSPropertyValue.properties
- JWObject.properties
- JWObjectToolTip.properties
- JWPropertyGroup.properties
- JWToolTip.properties
- Open the folder images in the resource folder, translate all text that can be translated in the image files, and save them. The file names cannot be changed.
- Copy the folder uidescriptors in the resource folder to a specified place (for example, the Desktop), then open it. The folder contains a lot of .xml files.
- right-click the file CatalogDoctorResource.xml in the uidescriptors folder and select Edit from the shortcut menu to open the file. The file contains some name properties. Translate their values to French, then save and close the file.
- Translate the name property values in the following files as you do in the above step:
- DataBrowser.xml
- ReferenceEntityDialog.xml
- MainMenu.xml
- ToolBoxResource.xml
- HelpLinkResource.xml
- Translate the displayname property values in the following files as you do in step 6:
- FormulaSpecialFieldsResource.xml
- CrosstabFormulaFunctions.xml
- FormulaFunctions.xml
- FormulaOperators.xml
- CTFormulaSpecialFieldsResource.xml
- DynamicFormulaSpecialFieldsResource.xml
- Translate the title, name, tooltip and text property values in the other .xml files except ComponentContainerRelationship.xml, GraphPanel.xml and the ones listed in step 7 and step 8 as you do in step 6.
- After finishing the translation, copy the folder uidescriptors from the Desktop to the resource folder in resource_fr_FR.jar placed in
<install_root>\lib
to replace the original one. - Open the file config.xml
in <install_root>\bin
, and set the value of the property to _fr_FR. Make sure that Logi JReport Designer is closed when you modify this file.The language name must follow the format below: abbreviation of the language with lowercase_abbreviation of the country using the language with uppercase.jar. If the name format is not correct, Logi JReport Designer will start with the default language.
- Right-click the file Logi JReport.bat in
<install_root>\bin
and select Edit from the shortcut menu to open the file, then change the name of the language package resource_en_US.jar to resource_fr_FR.jar. - Save the file. Then when you run Logi JReport Designer, the UI text will be displayed in the specified language.