1 18 19 package org.apache.batik.util.resources; 20 21 import java.util.Locale ; 22 import java.util.MissingResourceException ; 23 24 import org.apache.batik.i18n.LocalizableSupport; 25 26 32 public class Messages { 33 36 protected Messages() { 37 } 38 39 42 protected final static String RESOURCES = 43 "org.apache.batik.util.resources.Messages"; 44 45 48 protected static LocalizableSupport localizableSupport = 49 new LocalizableSupport(RESOURCES, Messages.class.getClassLoader()); 50 51 52 55 public static void setLocale(Locale l) { 56 localizableSupport.setLocale(l); 57 } 58 59 62 public static Locale getLocale() { 63 return localizableSupport.getLocale(); 64 } 65 66 70 public static String formatMessage(String key, Object [] args) 71 throws MissingResourceException { 72 return localizableSupport.formatMessage(key, args); 73 } 74 } 75 | Popular Tags |