When you schedule to publish a report to HTML format, or run it in Advanced mode in HTML format, you can localize the names of page navigation links in the HTML report outputs, such as First, Previous, Next, and Last, according to your requirements.
The localizing process is divided into three steps:
The following explain the steps in detail:
To localize the page navigation link names in HTML report outputs, a property file must be created first for the desired language. To do this:
<server_install_root>\resources as follows: <server_install_root>\resources\report\languages\[language-locale]\properties. For example, C:\JReport\Server\resources\report\languages\zh-cn\properties.
For detailed information about the abbreviation for each language and locale, see Appendix 6: Language and region name list for National Language Support.
|
Note: For the line "4000107=@CurrentPageNumber; of @TotalPageNumber;", you just need to translate "of" to the desired language. In the HTML outputs, @CurrentPageNumber will be replaced by the current page number, and @TotalPageNumber by the report total page number.
<jdk_install_root>\bin directory.
Note: You can just add the <jdk_install_root>\bin directory to your PATH instead of copying the file.
<jdk_install_root>\bin by running the following command:
C:\jdk1.6.0_17\bin>native2ascii -encoding utf-8 report.properties > newreport.properties
Note: When you convert your property file to the same directory as the original one, you need to give it a new name instead of replacing the original in order to avoid problems.
<server_install_root>\resources\report\languages\[language-locale]\properties and copy newreport.properties in <jdk_install_root>\bin to it, then rename the property file back to report.properties.When the property file is ready, the next step is to enable the language defined in the file for the required report.
in the Control column.
above the Language box, then in the Add Language dialog, choose the specified language and click OK.
in the Control column.Now the language will have been enabled for the report.
To apply the localized link names to HTML outputs of the specified report, follow the steps below:
or Schedule button
on the floating toolbar.