1 24 25 package org.objectweb.cjdbc.common.i18n; 26 27 import java.util.MissingResourceException ; 28 import java.util.ResourceBundle ; 29 30 36 public final class ConsoleTranslate extends I18N 37 { 38 41 public static final String CONSOLE_LANGUAGE_FILE = "c-jdbc-console-language"; 42 43 46 public static ResourceBundle bundle; 47 48 static 49 { 50 try 51 { 52 bundle = ResourceBundle.getBundle(CONSOLE_LANGUAGE_FILE); 53 } 54 catch (MissingResourceException e) 55 { 56 e.printStackTrace(); 57 } 58 } 59 60 65 public static String get(String key) 66 { 67 return get(bundle, key); 68 } 69 70 76 public static String get(String key, boolean parameter) 77 { 78 return get(bundle, key, parameter); 79 } 80 81 87 public static String get(String key, int parameter) 88 { 89 return get(bundle, key, parameter); 90 } 91 92 98 public static String get(String key, long parameter) 99 { 100 return get(bundle, key, parameter); 101 } 102 103 109 public static String get(String key, Object [] parameters) 110 { 111 return get(bundle, key, parameters); 112 } 113 114 120 public static String get(String key, Object parameter) 121 { 122 return get(bundle, key, parameter); 123 } 124 } | Popular Tags |