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
39
40
41
42
43
44
45
46
47
48