public static String getCountryName ( String country , Locale language ) { country = StringUtils . trimToNull ( country ) ; if ( country == null ) return null ; String iso2Code = LocaleUtils . getCountryISO2 ( country ) ; if ( iso2Code != null ) { String name = StringUtils . trimToNull ( new Locale ( iso2Code , iso2Code ) . getDisplayCountry ( language ) ) ; if ( name != null ) return name ; } return null ; }
Return a country name in another language .