public function validateAcl($file, $key, $against_language, $validate_language)
	{
		if (!isset($validate_language['cat']))
		{
			$this->output->addMessage(Output::FATAL, 'Permission is missing the cat-key', $file, $key);
		}
		else if ($validate_language['cat'] !== $against_language['cat'])
		{
			$this->output->addMessage(Output::FATAL, sprintf('Permission should have cat %1$s but has %2$s', $against_language['cat'], $validate_language['cat']), $file, $key);
		}

		if (!isset($validate_language['lang']))
		{
			$this->output->addMessage(Output::FATAL, 'Permission is missing the lang-key', $file, $key);
		}
		else
		{
			$this->validateString($file, $key, $against_language['lang'], $validate_language['lang']);
		}
	}
public function validateAcl($file, $key, $against_language, $validate_language)
	{
		if (!isset($validate_language['cat']))
		{
			$this->output->addMessage(Output::FATAL, 'Permission is missing the cat-key', $file, $key);
		}
		else if ($validate_language['cat'] !== $against_language['cat'])
		{
			$this->output->addMessage(Output::FATAL, sprintf('Permission should have cat %1$s but has %2$s', $against_language['cat'], $validate_language['cat']), $file, $key);
		}

		if (!isset($validate_language['lang']))
		{
			$this->output->addMessage(Output::FATAL, 'Permission is missing the lang-key', $file, $key);
		}
		else
		{
			$this->validateString($file, $key, $against_language['lang'], $validate_language['lang']);
		}
	}
public function validateAcl ( $ file , $ key , $ against_language , $ validate_language ) { if ( ! isset ( $ validate_language [ 'cat' ] ) ) { $ this -> output -> addMessage ( Output :: FATAL , 'Permission is missing the cat-key' , $ file , $ key ) ; } else if ( $ validate_language [ 'cat' ] !== $ against_language [ 'cat' ] ) { $ this -> output -> addMessage ( Output :: FATAL , sprintf ( 'Permission should have cat %1$s but has %2$s' , $ against_language [ 'cat' ] , $ validate_language [ 'cat' ] ) , $ file , $ key ) ; } if ( ! isset ( $ validate_language [ 'lang' ] ) ) { $ this -> output -> addMessage ( Output :: FATAL , 'Permission is missing the lang-key' , $ file , $ key ) ; } else { $ this -> validateString ( $ file , $ key , $ against_language [ 'lang' ] , $ validate_language [ 'lang' ] ) ; } }
Validates a permission entry

Should have a cat and lang key
cat should be the same as in origin language
lang should compare like a string to origin lang

@param	string	$file		File to validate
@param	string	$key		Key to validate
@param	array	$against_language		Original language
@param	array	$validate_language		Translated language
@return	null
Validates a permission entry