src/Common/Service/Language.php
public function getByCode($sCode)
    {
        $aLanguages = $this->getAll();
        return !empty($aLanguages[$sCode]) ? $aLanguages[$sCode] : false;
    }
public function getByCode($sCode)
    {
        $aLanguages = $this->getAll();
        return !empty($aLanguages[$sCode]) ? $aLanguages[$sCode] : false;
    }
public function getByCode ( $ sCode ) { $ aLanguages = $ this -> getAll ( ) ; return ! empty ( $ aLanguages [ $ sCode ] ) ? $ aLanguages [ $ sCode ] : false ; }
Returns a language by it's code

@param  string $sCode The language code

@return mixed         stdClass on success, false on failure
Returns a language by it s code