View Javadoc

1   package net.sourceforge.pmd.util.viewer.util;
2   
3   import java.util.ResourceBundle;
4   
5   
6   /***
7    * helps with internationalization
8    *
9    * @author Boris Gruschko ( boris at gruschko.org )
10   * @version $Id: NLS.java,v 1.1 2003/09/23 20:32:42 tomcopeland Exp $
11   */
12  public class NLS
13  {
14    private final static ResourceBundle bundle;
15  
16    static
17    {
18      bundle =
19        ResourceBundle.getBundle( 
20          "net.sourceforge.pmd.util.viewer.resources.viewer_strings" );
21    }
22  
23    /***
24     * translates the given key to the message
25     *
26     * @param key key to be translated
27     *
28     * @return translated string
29     */
30    public static String nls( String key )
31    {
32      return bundle.getString( key );
33    }
34  }
35  
36  
37  /*
38   * $Log: NLS.java,v $
39   * Revision 1.1  2003/09/23 20:32:42  tomcopeland
40   * Added Boris Gruschko's new AST/XPath viewer
41   *
42   * Revision 1.1  2003/09/24 01:33:03  bgr
43   * moved to a new package
44   *
45   * Revision 1.1  2003/09/22 05:21:54  bgr
46   * initial commit
47   *
48   */