Jump to content
Changes to the Jaspersoft community edition download ×

Labels in different languages based on user parameter


simoskets

Recommended Posts

How to show label values in different language based on a paramater given by user and not by locale. 

For example i have a report and all the labels are in english.

I want to have the same report in 4 other languages so that when a user runs the report and selects a parameter (for example the value of the parameter could be 'el' for Greek, 'en' for English, 'de' for German and so on, the report will run with the labels of this language. 

This is similar to localization but i want the report to run in the language based on parameter given by the user and not based on which country the report will run.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hello Simos,

Great question, the way I would approach this requirement is to create all resource bundles for the languages for the report and create a parameter that takes from the user and passes that back to the report locale and return the report output with that locale. I am in the process of testing this myself. I hope this helps

Thank you

 

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