1 34 package net.myvietnam.mvncore; 35 36 import java.util.Locale ; 37 import java.util.ResourceBundle ; 38 39 import net.myvietnam.mvncore.i18n.CacheResourceBundle; 40 41 public class MVNCoreResourceBundle { 42 43 private static CacheResourceBundle cacheResourceBundle = new CacheResourceBundle(MVNCoreGlobal.RESOURCE_BUNDLE_NAME); 44 45 private MVNCoreResourceBundle() { 46 } 47 48 public static ResourceBundle getResourceBundle(Locale locale) { 49 return cacheResourceBundle.getResourceBundle(locale); 50 } 51 52 public static String getString(Locale locale, String key) { 53 return cacheResourceBundle.getString(locale, key); 54 } 55 56 public static String getString(Locale locale, String key, Object [] args) { 57 return cacheResourceBundle.getString(locale, key, args); 58 } 59 } 60 | Popular Tags |