org.jfree.report.modules.gui.base.resources
Class ResourceCompareTool

java.lang.Object
  |
  +--org.jfree.report.modules.gui.base.resources.ResourceCompareTool

public final class ResourceCompareTool
extends java.lang.Object

The ResourceCompareTool provides simple reporting capabilities to compare a localized resource bundle with the default resource bundle.

This report contains all keys, which are undefined in the localisation, which are defined with an incompabile object value or which are not defined in the default resource bundle, but defined in the localized version.

Using the automated comparing will help to make translations more easier.

Author:
Thomas Morgner

Method Summary
static void executeTest(java.lang.String base, java.lang.String locale)
          Executes the test for the given localisation.
static void main(java.lang.String[] args)
          Starts the resource comparing process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

executeTest

public static void executeTest(java.lang.String base,
                               java.lang.String locale)
Executes the test for the given localisation. This compares that all defined values are valid and that no extra keys are defined. It also prints some status information that may be helpfull to verify the integrity of the translation.
Parameters:
base - the base name of the resource bundle.
locale - the locale that should be tested.

main

public static void main(java.lang.String[] args)
Starts the resource comparing process.
Parameters:
args - a string array with only one element, the ISO code of the localisation.