concrete/src/Editor/CkeditorEditor.php
protected function getLanguageOption()
    {
        $langPath = DIR_BASE_CORE . '/js/ckeditor4/vendor/lang/';
        $useLanguage = 'en';

        $language = strtolower(str_replace('_', '-', Localization::activeLocale()));
        if (file_exists($langPath . $language . '.js')) {
            $useLanguage = $language;
        } elseif (file_exists($langPath . strtolower(Localization::activeLanguage()) . '.js')) {
            $useLanguage = strtolower(Localization::activeLanguage());
        } else {
            $useLanguage = null;
        }

        return $useLanguage;
    }
protected function getLanguageOption()
    {
        $langPath = DIR_BASE_CORE . '/js/ckeditor4/vendor/lang/';
        $useLanguage = 'en';

        $language = strtolower(str_replace('_', '-', Localization::activeLocale()));
        if (file_exists($langPath . $language . '.js')) {
            $useLanguage = $language;
        } elseif (file_exists($langPath . strtolower(Localization::activeLanguage()) . '.js')) {
            $useLanguage = strtolower(Localization::activeLanguage());
        } else {
            $useLanguage = null;
        }

        return $useLanguage;
    }
protected function getLanguageOption ( ) { $ langPath = DIR_BASE_CORE . '/js/ckeditor4/vendor/lang/' ; $ useLanguage = 'en' ; $ language = strtolower ( str_replace ( '_' , '-' , Localization :: activeLocale ( ) ) ) ; if ( file_exists ( $ langPath . $ language . '.js' ) ) { $ useLanguage = $ language ; } elseif ( file_exists ( $ langPath . strtolower ( Localization :: activeLanguage ( ) ) . '.js' ) ) { $ useLanguage = strtolower ( Localization :: activeLanguage ( ) ) ; } else { $ useLanguage = null ; } return $ useLanguage ; }
Get the CKEditor language configuration.

@return string|null
Get the CKEditor language configuration .