package net.sourceforge.pmd.util.viewer.util;
import java.util.ResourceBundle;
/**
* helps with internationalization
*
* @author Boris Gruschko ( boris at gruschko.org )
* @version $Id: NLS.java,v 1.1 2003/09/23 20:32:42 tomcopeland Exp $
*/
public class NLS
{
private final static ResourceBundle bundle;
static
{
bundle =
ResourceBundle.getBundle(
"net.sourceforge.pmd.util.viewer.resources.viewer_strings" );
}
/**
* translates the given key to the message
*
* @param key key to be translated
*
* @return translated string
*/
public static String nls( String key )
{
return bundle.getString( key );
}
}
/*
* $Log: NLS.java,v $
* Revision 1.1 2003/09/23 20:32:42 tomcopeland
* Added Boris Gruschko's new AST/XPath viewer
*
* Revision 1.1 2003/09/24 01:33:03 bgr
* moved to a new package
*
* Revision 1.1 2003/09/22 05:21:54 bgr
* initial commit
*
*/