public static String resolveLocaleCode(Locale locale){
  return resolveLocaleCode(locale.getLanguage(),locale.getCountry(),locale.getVariant());
}

public static String resolveLocaleCode ( Locale locale ) { return resolveLocaleCode ( locale . getLanguage ( ) , locale . getCountry ( ) , locale . getVariant ( ) ) ; }
resolves locale code from locale .
