Code example for Locale

Methods: getCountry, getLanguage

0
   * @return an String suffix which can be appended to a resource name 
   */ 
  protected static String getResourceSuffix(Locale locale)
  { 
 
    String suffix = "_" + locale.getLanguage();
    String country = locale.getCountry();
 
    if (country.equals("TW"))
      suffix += "_" + country;
 
    return suffix;
  } 
}