Jump to content
We've recently updated our Privacy Statement, available here ×

Currency, Number and Date Formats


cinglez

Recommended Posts

Hello everybody.

How can I use brazilian portuguese number / date formatting on Jasper Server? I use iReport 3.7 to design the jrxml files. The "pattern" property does not have the option "NNN.NN0,00".

Please note that dots and commas do not follow the same patterns as the US number formats.

 

Any help is appreciated.

Thanks in advance

 

Carlos Inglez

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

 Well,

I followed the JasperServer Localization Guide. I created the files jasperserver_config_pt_BR.properties and jasperserver_messages_pt_BR.properties. Inside the config file I changed the date formats, but could not see where to change the number formats.

In the applicationContext-security.xml, I added the line <value type="java.util.Locale">pt_BR</value>.

 

Restarted Jasper Server.

The documentation sugests it should follow the user's browser default locale. But I tried it on a brazilian portuguese Windows machine and the number formats are still american-style.

On iReport the only thing I did was to change the pattern for that text box to currency (it was showing the american format).

What am I missing here?

Please help

 

Carlos

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...