src/Utility/L10n.php
public function catalog($language = null) {
		if (is_array($language)) {
			$result = [];
			foreach ($language as $_language) {
				$_result = $this->catalog($_language);
				if ($_result) {
					$result[$_language] = $_result;
				}
			}
			return $result;
		}
		if (is_string($language)) {
			if (isset($this->_l10nCatalog[$language])) {
				return $this->_l10nCatalog[$language];
			}
			if (isset($this->_l10nMap[$language]) && isset($this->_l10nCatalog[$this->_l10nMap[$language]])) {
				return $this->_l10nCatalog[$this->_l10nMap[$language]];
			}
			return false;
		}
		return $this->_l10nCatalog;
	}
public function catalog($language = null) {
		if (is_array($language)) {
			$result = [];
			foreach ($language as $_language) {
				$_result = $this->catalog($_language);
				if ($_result) {
					$result[$_language] = $_result;
				}
			}
			return $result;
		}
		if (is_string($language)) {
			if (isset($this->_l10nCatalog[$language])) {
				return $this->_l10nCatalog[$language];
			}
			if (isset($this->_l10nMap[$language]) && isset($this->_l10nCatalog[$this->_l10nMap[$language]])) {
				return $this->_l10nCatalog[$this->_l10nMap[$language]];
			}
			return false;
		}
		return $this->_l10nCatalog;
	}
public function catalog ( $ language = null ) { if ( is_array ( $ language ) ) { $ result = [ ] ; foreach ( $ language as $ _language ) { $ _result = $ this -> catalog ( $ _language ) ; if ( $ _result ) { $ result [ $ _language ] = $ _result ; } } return $ result ; } if ( is_string ( $ language ) ) { if ( isset ( $ this -> _l10nCatalog [ $ language ] ) ) { return $ this -> _l10nCatalog [ $ language ] ; } if ( isset ( $ this -> _l10nMap [ $ language ] ) && isset ( $ this -> _l10nCatalog [ $ this -> _l10nMap [ $ language ] ] ) ) { return $ this -> _l10nCatalog [ $ this -> _l10nMap [ $ language ] ] ; } return false ; } return $ this -> _l10nCatalog ; }
Attempts to find catalog record for requested language

@param string|array|null $language String requested language, array of requested languages, or null for whole catalog
@return array|bool array catalog record for requested language, array of catalog records, whole catalog,
or false when language doesn't exist
Attempts to find catalog record for requested language