src/Gelembjuk/Locale/Utils.php
public function getDifference($group,$locale,$deflocale) {
		$translate = $this->getTranslateObject();
		$translate->setLocale($deflocale);
		
		$allkeys = $translate->getAllKeysForGroup($group);
		
		$translate->setLocale($locale);
		
		$result['groupmissed'] = false;
		
		try {
			$keys = $translate->getAllKeysForGroup($group);
		} catch (\Exception $e) {
			$result['groupmissed'] = true;
			$keys = array();
		}
		
		$result['missed'] = array_values(array_diff($allkeys,$keys));
		$result['extra'] = array_values(array_diff($keys,$allkeys));
		
		$result['missedcount'] = count($result['missed']);
		$result['extracount'] = count($result['extra']);
		
		$result['total'] = $result['missedcount']+$result['extracount'];

		return $result;
	}
public function getDifference($group,$locale,$deflocale) {
		$translate = $this->getTranslateObject();
		$translate->setLocale($deflocale);
		
		$allkeys = $translate->getAllKeysForGroup($group);
		
		$translate->setLocale($locale);
		
		$result['groupmissed'] = false;
		
		try {
			$keys = $translate->getAllKeysForGroup($group);
		} catch (\Exception $e) {
			$result['groupmissed'] = true;
			$keys = array();
		}
		
		$result['missed'] = array_values(array_diff($allkeys,$keys));
		$result['extra'] = array_values(array_diff($keys,$allkeys));
		
		$result['missedcount'] = count($result['missed']);
		$result['extracount'] = count($result['extra']);
		
		$result['total'] = $result['missedcount']+$result['extracount'];

		return $result;
	}
public function getDifference ( $ group , $ locale , $ deflocale ) { $ translate = $ this -> getTranslateObject ( ) ; $ translate -> setLocale ( $ deflocale ) ; $ allkeys = $ translate -> getAllKeysForGroup ( $ group ) ; $ translate -> setLocale ( $ locale ) ; $ result [ 'groupmissed' ] = false ; try { $ keys = $ translate -> getAllKeysForGroup ( $ group ) ; } catch ( \ Exception $ e ) { $ result [ 'groupmissed' ] = true ; $ keys = array ( ) ; } $ result [ 'missed' ] = array_values ( array_diff ( $ allkeys , $ keys ) ) ; $ result [ 'extra' ] = array_values ( array_diff ( $ keys , $ allkeys ) ) ; $ result [ 'missedcount' ] = count ( $ result [ 'missed' ] ) ; $ result [ 'extracount' ] = count ( $ result [ 'extra' ] ) ; $ result [ 'total' ] = $ result [ 'missedcount' ] + $ result [ 'extracount' ] ; return $ result ; }
Returns information about difference between same group file in different locales
an be used to find what is missed in secondary languages files

@param string $group Translation group
@param string $locale Locale to compare to default locale
@param string $deflocale Default locale to use as a base for comparing

@return array
Returns information about difference between same group file in different locales an be used to find what is missed in secondary languages files