diegoqueres Posted April 12, 2016 Share Posted April 12, 2016 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: 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 More sharing options...
hozawa Posted April 13, 2016 Share Posted April 13, 2016 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 More sharing options...
diegoqueres Posted April 13, 2016 Author Share Posted April 13, 2016 I put this on setenv.bat file, but didn't fix the problem:set JAVA_HOME=C:JASPER~1JASPER~1.0javaset JAVA_OPTS="%JAVA_OPTS% -Duser.language=pt -Duser.region=BR -Duser.country=BR " Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now