src/Mailer/Mailer.php
protected function getPrimaryLocale() {
		$primaryLanguage = Configure::read('Config.defaultLanguage');
		if (Configure::read('Config.defaultLocale')) {
			return Configure::read('Config.defaultLocale');
		}

		$primaryLocale = Configure::read('Config.allowedLanguages.' . $primaryLanguage . '.locale');
		return $primaryLocale;
	}
protected function getPrimaryLocale() {
		$primaryLanguage = Configure::read('Config.defaultLanguage');
		if (Configure::read('Config.defaultLocale')) {
			return Configure::read('Config.defaultLocale');
		}

		$primaryLocale = Configure::read('Config.allowedLanguages.' . $primaryLanguage . '.locale');
		return $primaryLocale;
	}
protected function getPrimaryLocale ( ) { $ primaryLanguage = Configure :: read ( 'Config.defaultLanguage' ) ; if ( Configure :: read ( 'Config.defaultLocale' ) ) { return Configure :: read ( 'Config.defaultLocale' ) ; } $ primaryLocale = Configure :: read ( 'Config.allowedLanguages.' . $ primaryLanguage . '.locale' ) ; return $ primaryLocale ; }
Returns the configured default locale.

Can be based on the primary language and the allowed languages (whitelist).

@return string
Returns the configured default locale .