Elements/Fieldset/LanguageFieldset.php
protected function prepareLanguage($language)
    {
        $value = addslashes($language['code']);
        $label = addslashes($language['code']);
        $flag  = addslashes(sprintf('%s.png', substr($label, 0, 2)));
        
        return [
            'sValue' => $value,
            'sLabel' => $label,
            'sFlag'  => $flag,
        ];
    }
protected function prepareLanguage($language)
    {
        $value = addslashes($language['code']);
        $label = addslashes($language['code']);
        $flag  = addslashes(sprintf('%s.png', substr($label, 0, 2)));
        
        return [
            'sValue' => $value,
            'sLabel' => $label,
            'sFlag'  => $flag,
        ];
    }
protected function prepareLanguage ( $ language ) { $ value = addslashes ( $ language [ 'code' ] ) ; $ label = addslashes ( $ language [ 'code' ] ) ; $ flag = addslashes ( sprintf ( '%s.png' , substr ( $ label , 0 , 2 ) ) ) ; return [ 'sValue' => $ value , 'sLabel' => $ label , 'sFlag' => $ flag , ] ; }
Prepares language to use it as element attribute

@param $language

@return array
Prepares language to use it as element attribute