Expresso 5-6

com.jcorporate.expresso.core.utility
Class XlateUtil

java.lang.Object
  extended bycom.jcorporate.expresso.core.utility.XlateUtil

public class XlateUtil
extends Object

Simple utility to read the english and another language strings bundle and report where additional translation is required


Constructor Summary
XlateUtil()
           
 
Method Summary
static void compare(String theDir)
          Compares all MessagesBundles against all directories.
static void compare(String theDir, String theLang)
          Compares the files for a particular language.
static void compareOneFile(BufferedReader other, String fileName)
          Given a buffered reader, checks against the default language
static void loadDefaultBundle(String theDir)
          Loads the english bundle into memory for quick compare.
static void main(String[] args)
          Main method so that XlateUtil can be launched from a command line
static void usage()
          Returns a sample usage message in case of errors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XlateUtil

public XlateUtil()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Main method so that XlateUtil can be launched from a command line

Throws:
Exception

usage

public static void usage()
Returns a sample usage message in case of errors.


compare

public static void compare(String theDir)
                    throws Exception,
                           IOException
Compares all MessagesBundles against all directories.

Throws:
Exception
IOException

loadDefaultBundle

public static void loadDefaultBundle(String theDir)
                              throws Exception
Loads the english bundle into memory for quick compare.

Throws:
Exception

compareOneFile

public static void compareOneFile(BufferedReader other,
                                  String fileName)
                           throws Exception
Given a buffered reader, checks against the default language

Parameters:
other - The Buffered Reader of the other MessagesBundle*.properties file to read
Throws:
Exception

compare

public static void compare(String theDir,
                           String theLang)
                    throws Exception
Compares the files for a particular language.

Parameters:
theDir - The directory to look in.
theLang - The language to check
Throws:
Exception

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.