src/Language.php
public function setLocale($keys) {
		if (!setlocale(LC_ALL, $keys)) {
			exec('locale -a', $locales);
			$locales = implode("<br />", $locales);
			throw new \Exception(__METHOD__.'<br>setLocale() failed. These are the locales installed on this system:<br />'.$locales);
		}
	}
public function setLocale($keys) {
		if (!setlocale(LC_ALL, $keys)) {
			exec('locale -a', $locales);
			$locales = implode("<br />", $locales);
			throw new \Exception(__METHOD__.'<br>setLocale() failed. These are the locales installed on this system:<br />'.$locales);
		}
	}
public function setLocale ( $ keys ) { if ( ! setlocale ( LC_ALL , $ keys ) ) { exec ( 'locale -a' , $ locales ) ; $ locales = implode ( "<br />" , $ locales ) ; throw new \ Exception ( __METHOD__ . '<br>setLocale() failed. These are the locales installed on this system:<br />' . $ locales ) ; } }
Tries to set the locales via setlocale. If no array items matches locales installed on the system you will get an overview of all installed locales.
@param 	array	$keys	An array of keys to try.
@return	`null`
Tries to set the locales via setlocale . If no array items matches locales installed on the system you will get an overview of all installed locales .