1
2
3
4
5
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";
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
30 try {
31 return RESOURCE_BUNDLE.getString(key);
32 } catch (MissingResourceException e) {
33 return '!' + key + '!';
34 }
35 }
36 }