src/ChickenWire/I18n.php
public static function setLocale($locale)
		{
			static::$_locale = $locale;

			// Apply to PHP locale
			$sysLocales = \ChickenWire\Application::getConfiguration()->systemLocales;
			if (array_key_exists($locale, $sysLocales)) {
				setlocale(LC_ALL, $sysLocales[$locale]);
			}

		}
public static function setLocale($locale)
		{
			static::$_locale = $locale;

			// Apply to PHP locale
			$sysLocales = \ChickenWire\Application::getConfiguration()->systemLocales;
			if (array_key_exists($locale, $sysLocales)) {
				setlocale(LC_ALL, $sysLocales[$locale]);
			}

		}
public static function setLocale ( $ locale ) { static :: $ _locale = $ locale ; // Apply to PHP locale $ sysLocales = \ ChickenWire \ Application :: getConfiguration ( ) -> systemLocales ; if ( array_key_exists ( $ locale , $ sysLocales ) ) { setlocale ( LC_ALL , $ sysLocales [ $ locale ] ) ; } }
Set the current locale
@param string     The locale to use
Set the current locale