public function findByCountry($country)
    {
        $country = Text::toUpper($country);
        foreach ($this->getAvailable() as $locale) {
            if ($country == $locale->getCountry(Text::UPPER)) {
                return $locale;
            }
        }

        return null;
    }
public function findByCountry($country)
    {
        $country = Text::toUpper($country);
        foreach ($this->getAvailable() as $locale) {
            if ($country == $locale->getCountry(Text::UPPER)) {
                return $locale;
            }
        }

        return null;
    }
public function findByCountry ( $ country ) { $ country = Text :: toUpper ( $ country ) ; foreach ( $ this -> getAvailable ( ) as $ locale ) { if ( $ country == $ locale -> getCountry ( Text :: UPPER ) ) { return $ locale ; } } return null ; }
Get locale with specified country.

@param $country

@return Locale|null
Get locale with specified country .