View Javadoc

1   /*
2    * Created on Feb 23, 2005
3    *
4    * TODO To change the template for this generated file go to
5    * Window - Preferences - Java - Code Style - Code Templates
6    */
7   package net.sf.gumshoe;
8   
9   import java.util.Locale;
10  import java.util.MissingResourceException;
11  import java.util.ResourceBundle;
12  
13  /***
14   * @author Gabor
15   *
16   * TODO To change the template for this generated type comment go to
17   * Window - Preferences - Java - Code Style - Code Templates
18   */
19  public class Messages {
20  	private static final String BUNDLE_NAME = "net.sf.gumshoe.messages";//$NON-NLS-1$
21  
22  	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
23  			.getBundle(BUNDLE_NAME, Locale.FRENCH);
24  
25  	private Messages() {
26  	}
27  
28  	public static String getString(String key) {
29  		// TODO Auto-generated method stub
30  		try {
31  			return RESOURCE_BUNDLE.getString(key);
32  		} catch (MissingResourceException e) {
33  			return '!' + key + '!';
34  		}
35  	}
36  }