raulsaavedrax Posted June 8, 2007 Share Posted June 8, 2007 Hello my friends, i'm very happy for write in this forum. I have a question. Which is the default language that return the sentence new Date(), for example: return the month: -> Enero in spanish or...-> January in english ireport examine the language of the operating system? or return the values according to the inner language? Excuse me for the grammar of this post.I don't speak english. Than you for your help. Link to comment Share on other sites More sharing options...
mdahlman Posted June 9, 2007 Share Posted June 9, 2007 Hi Raulsaavedrax, I'm not sure how iReport "decides" what language to run in. But it will render the report in whatever language Java is using. For example, my operating system is using English, therefore Java starts by default in English. Therefore in a text field with the expression "new java.util.Date()" and the Pattern "EEEEE dd MMMMM yyyy" I get this: Friday 08 June 2007 But if I modify iReport's startup.bat to launch in Spanish, then I get this in my report (without making any changes to the report): viernes 08 junio 2007 To run iReport in Spanish I added this parameter in startup.bat:-Duser.language=es Note: What language iReport runs in is a different question. When I changed the Java language to "es" my iReport still ran in English. But you can change this with the menu choice Options -> Settings -> Language. Regards,MattJasperSoft Link to comment Share on other sites More sharing options...
raulsaavedrax Posted June 14, 2007 Author Share Posted June 14, 2007 Hi mdahlman, thank you very much. Your help has been very useful for my problem. Good bye. Thanks. 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