fproject/widgets/FlexWidget.php
private function getFlexLocale($language) {
        if(!empty($language))
        {
            $split = explode("-", $language, 2);

            if(count($split) == 2 && $split[1] != "") {
                $split[1] = strtoupper($split[1]);
            } else {
                $split = null;
            }
        }

        if(empty($split))
            $split = ['en', 'US'];

        return $split[0] . self::LANGUAGUE_SEPARATOR . $split[1];
    }
private function getFlexLocale($language) {
        if(!empty($language))
        {
            $split = explode("-", $language, 2);

            if(count($split) == 2 && $split[1] != "") {
                $split[1] = strtoupper($split[1]);
            } else {
                $split = null;
            }
        }

        if(empty($split))
            $split = ['en', 'US'];

        return $split[0] . self::LANGUAGUE_SEPARATOR . $split[1];
    }
private function getFlexLocale ( $ language ) { if ( ! empty ( $ language ) ) { $ split = explode ( "-" , $ language , 2 ) ; if ( count ( $ split ) == 2 && $ split [ 1 ] != "" ) { $ split [ 1 ] = strtoupper ( $ split [ 1 ] ) ; } else { $ split = null ; } } if ( empty ( $ split ) ) $ split = [ 'en' , 'US' ] ; return $ split [ 0 ] . self :: LANGUAGUE_SEPARATOR . $ split [ 1 ] ; }
Returns locale with format for flex application
@param string $language the app language
@return string
Returns locale with format for flex application