All,

I have checked in my new updates for the I18N class which now supports
different resource files for plug-ins.

To use it in your plug-ins you will need to do the following, assuming
your plug-in is in the package com.foo.jump.bar

   1. Create a language package in the resource directory of you source
      for your resource bundles. Using maven the directory would be

      src/main/resources/com/foo/jump/bar/language

   2. Add the jump.properties file (and other language files) into the
      directory created in 1
   3. Use the method I18N.get("com.foo.jump.bar",
      "com.foo.jump.bar.MyPlugin.some-text-key") in your plugin to get
      the I18Nized text
   4. Make sure when you build your jar file the whole directory tree
      under src/main/resources is copied to the jar file. With maven
      this is done for you.

The new code uses the plug-in classloader so it should be able to find
the resource bundle as long as you don't use your own classloader.

Paul



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to