justamail Posted January 31, 2007 Share Posted January 31, 2007 Hi all, I've got a small issue with internalization and translation. Small example : A field can have 2 differents values : blocked or active. In my report, I want to use internalization and translate the value in the correct language (for example in french : 'bloqué' or 'actif'). So I would like to have an expression like : $R{$F{fieldname}} This doesn't work. I read in the iReport user guide that the key name between the two brackets of the $R{} is not translated during compilation. Is there a solution for this kind of thing ? Thanks. Greg. Link to comment Share on other sites More sharing options...
lucianc Posted February 2, 2007 Share Posted February 2, 2007 Use the built-in str function:Code:str($F{fieldname}) HTH,Lucian 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