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