Hello
Raffi,
One
more Q. I hope you will respond to
this positively.
We are
trying to integrate i18n sample into our web based
application.
i18n
sample is kept under <reports> folder where as properties files are kept
under <classes> folder which is there in the class
path.
Without any error, sample is getting compiled, filled. BUT, it is NOT
generating any pages. I think it is not able to read the locale specific
properties file.
I am
trying all these using ANT utility in stand along
application.
It
would be great if we know how exactly Jasper Reads the Properties files specific
to the locale passed.
Thanks,
Kalpesh
-----Original Message-----
From: S, Mohamed Raffi (Mohamed) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 8:00 PM
To: Kalpesh Chordia; 'jasperreports-questions@lists.sourceforge.net'
Subject: RE: [jasperreports-questions] i18n - Resource BundleIn the <jasperReport> element of the jrxml file.Form the samples of JasperReports:<jasperReport
name="I18nReport"
columnCount="1"
printOrder="Vertical"
orientation="Portrait"
pageWidth="595"
pageHeight="842"
columnWidth="555"
columnSpacing="0"
leftMargin="20"
rightMargin="20"
topMargin="30"
bottomMargin="30"
whenNoDataType="NoPages"
isTitleNewPage="false"
isSummaryNewPage="false"
resourceBundle="catalog/i18n1">-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Kalpesh Chordia
Sent: Thursday, June 22, 2006 7:59 PM
To: 'S, Mohamed Raffi (Mohamed)'; 'jasperreports-questions@lists.sourceforge.net'
Subject: Re: [jasperreports-questions] i18n - Resource BundleTHanks Raffi for the prompt and exact reply.Can you please elaborate more on...If you place these files in a directory (say catalog) and place the root directory (which contains the catalog) in classpath,then you need to mention as "catalog\propFileName", similar as the package name conventions.Where do I need to mention above thing ?-----Original Message-----
From: S, Mohamed Raffi (Mohamed) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 7:53 PM
To: Kalpesh Chordia; 'jasperreports-questions@lists.sourceforge.net'
Subject: RE: [jasperreports-questions] i18n - Resource BundleHi Kalpesh,1) You can Localize your reports to the any language without any modification in the report layout.2) Properties should be in classpath.3) Standard Java i18n conventionsi18n1.propertiesi18n1_de_DE.propertiesi18n1_fr_FR.propertiesIf you place these files in a directory (say catalog) and place the root directory (which contains the catalog) in classpath,then you need to mention as "catalog\propFileName", simillar as the package name conventions.And you can access the catalog values using $R{} convention or str() function.Refer the samples in the jasperReports for more details. Location: "jasperreports-X.X.X\demo\samples\i18n"Regards,Raffi-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Kalpesh Chordia
Sent: Thursday, June 22, 2006 7:43 PM
To: 'jasperreports-questions@lists.sourceforge.net'
Subject: [jasperreports-questions] i18n - Resource BundleHi,
We are trying to evaluate i18n sample provided with the latest version 1.2.3
1. What is the importance of resourceBundle="i18n" in
<jasperReport name="I18nReport" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30" resourceBundle="i18n"> ?2. Where should the properties files be placed ?
3. What are the naming conventions for these properties files ?
Thanks,
Kalpesh
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions