src/Gelembjuk/Locale/TranslateManagement.php
public function checkKeyExists($key,$group,$allowempty = false) {
		if (!$this->locale || $this->locale == '') {
			return false;
		}
		
		$data = $this->loadDataForGroup($group,$allowempty);
		
		if (isset($data[$key])) {
			// check if data are in a file
			if (strpos($data[$key],'file:') === 0) {
				$filname = substr($data[$key],5);
				$file_path = $this->localespath.$this->locale.'/files/'.$filname;
				
				if (@file_exists($file_path)) {
					return true;
				}
				
				return false;
			}
			return true;
		}
		
		return false;
	}
public function checkKeyExists($key,$group,$allowempty = false) {
		if (!$this->locale || $this->locale == '') {
			return false;
		}
		
		$data = $this->loadDataForGroup($group,$allowempty);
		
		if (isset($data[$key])) {
			// check if data are in a file
			if (strpos($data[$key],'file:') === 0) {
				$filname = substr($data[$key],5);
				$file_path = $this->localespath.$this->locale.'/files/'.$filname;
				
				if (@file_exists($file_path)) {
					return true;
				}
				
				return false;
			}
			return true;
		}
		
		return false;
	}
public function checkKeyExists ( $ key , $ group , $ allowempty = false ) { if ( ! $ this -> locale || $ this -> locale == '' ) { return false ; } $ data = $ this -> loadDataForGroup ( $ group , $ allowempty ) ; if ( isset ( $ data [ $ key ] ) ) { // check if data are in a file if ( strpos ( $ data [ $ key ] , 'file:' ) === 0 ) { $ filname = substr ( $ data [ $ key ] , 5 ) ; $ file_path = $ this -> localespath . $ this -> locale . '/files/' . $ filname ; if ( @ file_exists ( $ file_path ) ) { return true ; } return false ; } return true ; } return false ; }
Check if a key exists for a group. Is used for translations management

@param string $key Key of text to translate
@param string $group Group of keys
@param bool $allowempty Marker if empty key is allowed

@return bool
Check if a key exists for a group . Is used for translations management