src/classes/CCModel.php
public function __( $key, $params = array() )
	{
		$namespace = explode( "\\", get_called_class() );

		$class = strtolower( 'model/'.str_replace( '_', '/', array_pop( $namespace ) ) );

		$namespace = implode( "\\", $namespace );

		if ( $namespace )
		{
				$class = $namespace.'::'.$class;
		}

		return __( $class.'.label.'.$key, $params );
	}
public function __( $key, $params = array() )
	{
		$namespace = explode( "\\", get_called_class() );

		$class = strtolower( 'model/'.str_replace( '_', '/', array_pop( $namespace ) ) );

		$namespace = implode( "\\", $namespace );

		if ( $namespace )
		{
				$class = $namespace.'::'.$class;
		}

		return __( $class.'.label.'.$key, $params );
	}
public function __ ( $ key , $ params = array ( ) ) { $ namespace = explode ( "\\" , get_called_class ( ) ) ; $ class = strtolower ( 'model/' . str_replace ( '_' , '/' , array_pop ( $ namespace ) ) ) ; $ namespace = implode ( "\\" , $ namespace ) ; if ( $ namespace ) { $ class = $ namespace . '::' . $ class ; } return __ ( $ class . '.label.' . $ key , $ params ) ; }
Label translation helper

@param string 		$key
@param array 			$params
@return string
Label translation helper