framework/i18n/CLocale.php
public static function getInstance($id)
	{
		static $locales=array();
		if(isset($locales[$id]))
			return $locales[$id];
		else
			return $locales[$id]=new CLocale($id);
	}
public static function getInstance($id)
	{
		static $locales=array();
		if(isset($locales[$id]))
			return $locales[$id];
		else
			return $locales[$id]=new CLocale($id);
	}
public static function getInstance ( $ id ) { static $ locales = array ( ) ; if ( isset ( $ locales [ $ id ] ) ) return $ locales [ $ id ] ; else return $ locales [ $ id ] = new CLocale ( $ id ) ; }
Returns the instance of the specified locale.
Since the constructor of CLocale is protected, you can only use
this method to obtain an instance of the specified locale.
@param string $id the locale ID (e.g. en_US)
@return CLocale the locale instance
Returns the instance of the specified locale . Since the constructor of CLocale is protected you can only use this method to obtain an instance of the specified locale .