When a report is exported to HTML format, the names of page navigation links in the report, such as First, Previous, Next, and Last, can be localized according to your requirements.
To localize the link names:
<designer_install_root>
as follows: <designer_install_root>\resources\report\languages\[language-locale]\properties
. For example, C:\JReport\Designer\resources\report\languages\zh-cn\properties
.
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.
|
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.<jdk_install_root>\bin
by running the following command:
C:\jdk1.7.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.
<designer_install_root>\resources\report\languages\[language-locale]\properties
and copy newreport.properties in <jdk_install_root>\bin
to it, and then name the property file back to report.properties.