1 24 25 package org.objectweb.cjdbc.common.i18n; 26 27 import java.util.MissingResourceException ; 28 import java.util.ResourceBundle ; 29 30 37 38 public final class GuiTranslate extends I18N 39 { 40 41 44 public static final String GUI_LANGUAGE_FILE = "c-jdbc-gui-language"; 45 46 49 public static ResourceBundle bundle; 50 51 static 52 { 53 try 54 { 55 bundle = ResourceBundle.getBundle(GUI_LANGUAGE_FILE); 56 } 57 catch (MissingResourceException e) 58 { 59 e.printStackTrace(); 60 } 61 } 62 63 68 public static String get(String key) 69 { 70 return get(bundle, key); 71 } 72 73 79 public static String get(String key, boolean parameter) 80 { 81 return get(bundle, key, parameter); 82 } 83 84 90 public static String get(String key, int parameter) 91 { 92 return get(bundle, key, parameter); 93 } 94 95 101 public static String get(String key, long parameter) 102 { 103 return get(bundle, key, parameter); 104 } 105 106 112 public static String get(String key, Object [] parameters) 113 { 114 return get(bundle, key, parameters); 115 } 116 117 123 public static String get(String key, Object parameter) 124 { 125 return get(bundle, key, parameter); 126 } 127 } | Popular Tags |