1 16 17 package org.apache.batik.swing; 18 19 import java.util.Locale ; 20 import java.util.MissingResourceException ; 21 22 import org.apache.batik.i18n.LocalizableSupport; 23 24 30 public class TestMessages { 31 32 35 protected TestMessages() { } 36 37 40 protected final static String RESOURCES = 41 "org.apache.batik.swing.resources.TestMessages"; 42 43 46 protected static LocalizableSupport localizableSupport = 47 new LocalizableSupport(RESOURCES); 48 49 52 public static void setLocale(Locale l) { 53 localizableSupport.setLocale(l); 54 } 55 56 59 public static Locale getLocale() { 60 return localizableSupport.getLocale(); 61 } 62 63 67 public static String formatMessage(String key, Object [] args) 68 throws MissingResourceException { 69 return localizableSupport.formatMessage(key, args); 70 } 71 } 72 | Popular Tags |