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

Month name in english - wrong locale


diegoqueres

Recommended Posts

When i log in JasperServer, I choose the pt-BR locale (Brazilian Portuguese).

The application interface entirely in Portuguese with this action.

 

However, when I request a report, the date format on report view, is appearing with month names in English (January, February...), as shown below:

relatorio_com_locale_errado.jpg.4d6256c6ce07ea6c2b1f99f394170b52.jpg

 

 

 

In the report, i use the Format function to display the date on MONTH / YEAR format:

<categoryExpression><![CDATA[ DATEFORMAT( $F{Mês},"MMMM/yy" ) ]]></categoryExpression> [/code]
 

 

How do I fix this problem? How i display the name of the month in Portuguese (Janeiro, Fevereiro, Março)?

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Language you choose before logging in is just for the JasperReports Server locale and is not for report locale. To get the locale correctly in reports, you have to set locale properly in your reports and in jvm. Something like below in set-env.bat
-Duser.language=pt -Duser.region=BR

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...