src/Model/Locale.php
public function isLocale($locale)
    {
        return stripos(i18n::convert_rfc1766($locale), i18n::convert_rfc1766($this->Locale)) === 0;
    }
public function isLocale($locale)
    {
        return stripos(i18n::convert_rfc1766($locale), i18n::convert_rfc1766($this->Locale)) === 0;
    }
public function isLocale ( $ locale ) { return stripos ( i18n :: convert_rfc1766 ( $ locale ) , i18n :: convert_rfc1766 ( $ this -> Locale ) ) === 0 ; }
Returns whether the given locale matches the current Locale object

@param  string $locale E.g. en_NZ, en-NZ, en-nz-1990
@return bool
Returns whether the given locale matches the current Locale object