Jump to content
Changes to the Jaspersoft community edition download ×

Adding my own resourceBundle to perform translations on the fly


Recommended Posts

I'm intending to create a class that extends java.util.resourceBundle which will use Google translate to convert text into various languages (and also save the translation to file for future reference). 

I already have a library contained in a single JAR file used for some additional formating, which already works, so I have added the bare bones of an extended resourceBundle to this.

My problem is that when I run the report I keep getting MissingResourceExceptions : Can't find bundle for base name etc. etc. etc

In JasperSoft Studio in the reports resource bundle setting I have put my class name in (i.e. myTranslator) but I read it needed the fully qualified name so I have also put 'com.companyName.myLibrary.myTranslator' but still it is throwing up the same exception.

I noticed that nothing appears in the open resource lookup, am I missing something to get my resourceBundle class to appear here?

What am I doing wrong?

Please note, whilst I've been a developer for many years Java is definitely NOT my first language, I only know enough to make me dangerous!

Many thanks in advance.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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