Locale.ENGLISH).getObject(name); localizedString= (String) table.get(key);
Locale.ENGLISH).getString(property);
  public static String getLocalizedString(Locale inLocale, String key,					  String name, boolean checkEnglish,					  boolean checkRoot)  {    String localizedString;    Hashtable table;    if (key.equals(""))      return "";    /* Localize to inLocale */    try      {        table = (Hashtable)	  ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",				   inLocale).getObject(name);	localizedString = (String) table.get(key);      }    catch (MissingResourceException exception)      {	localizedString = null;      }    /* Localize to default locale */    if (localizedString == null)      {	try 	  {	    ResourceBundle bundle;	    	    bundle =	      ResourceBundle.getBundle("gnu.java.locale.LocaleInformation");	    table = (Hashtable) bundle.getObject(name);	    localizedString = (String) table.get(key);	  }	catch (MissingResourceException exception)	  {	    localizedString = null;	  }      }    /* Localize to English */    if (localizedString == null && checkEnglish)      {	try	  {	    table = (Hashtable)	      ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",				       Locale.ENGLISH).getObject(name);	    localizedString= (String) table.get(key);	  }	catch (MissingResourceException exception)	  {	    localizedString = null;	  }      }    /* Return unlocalized version */    if (localizedString == null && checkRoot)      {	try	  {	    table = (Hashtable)	      ResourceBundle.getBundle("gnu.java.locale.LocaleInformation",				       new Locale("","","")).getObject(name);	    localizedString= (String) table.get(key);	  }	catch (MissingResourceException exception)	  {	    localizedString = null;	  }      }    /* Return original input string */    if (localizedString == null)      {	localizedString = key;      }    return localizedString;  }