01: package org.tp23.antinstaller.renderer;
02:
03: import java.util.ResourceBundle;
04:
05: /**
06: * This class is a resource bundle that allows the bundle to be reloaded
07: * if the default Locale has changed
08: * @author teknopaul
09: *
10: */
11: public class AIResourceBundle {
12:
13: private static ResourceBundle res = ResourceBundle
14: .getBundle("org.tp23.antinstaller.renderer.Res");
15:
16: public String getString(String key) {
17: return res.getString(key);
18: }
19:
20: public static void reInitLocale() {
21: res = ResourceBundle
22: .getBundle("org.tp23.antinstaller.renderer.Res");
23: }
24:
25: }
|