Prado\Web\UI\WebControls\THtmlArea::getLanguageSuffix PHP Method

getLanguageSuffix() protected method

protected getLanguageSuffix ( $culture ) : string
return string localized editor interface language extension.
    protected function getLanguageSuffix($culture)
    {
        $app = $this->getApplication()->getGlobalization();
        if (empty($culture) && $app !== null) {
            $culture = $app->getCulture();
        }
        $variants = array();
        if ($app !== null) {
            $variants = $app->getCultureVariants($culture);
        }
        foreach ($variants as $variant) {
            if (isset(self::$_langs[$variant])) {
                return self::$_langs[$variant];
            }
        }
        return 'en';
    }