protected function normalizeLocale($locale) {
		if ($locale instanceof Locale) {
			$locale = $locale->getPrimaryLanguage();
		}
		
		$underlinePos = strpos($locale, '_');
		
		if ($underlinePos !== false) {
			return substr($locale, 0, $underlinePos);
		}
		
		return $locale;
	}
protected function normalizeLocale($locale) {
		if ($locale instanceof Locale) {
			$locale = $locale->getPrimaryLanguage();
		}
		
		$underlinePos = strpos($locale, '_');
		
		if ($underlinePos !== false) {
			return substr($locale, 0, $underlinePos);
		}
		
		return $locale;
	}
protected function normalizeLocale ( $ locale ) { if ( $ locale instanceof Locale ) { $ locale = $ locale -> getPrimaryLanguage ( ) ; } $ underlinePos = strpos ( $ locale , '_' ) ; if ( $ underlinePos !== false ) { return substr ( $ locale , 0 , $ underlinePos ) ; } return $ locale ; }
Normalize the locale

@param  string | Locale $locale
@return string
Normalize the locale