MetaModels\Attribute\Base::setLanguageStrings PHP Method

setLanguageStrings() private method

Set the language strings.
private setLanguageStrings ( ) : void
return void
    private function setLanguageStrings()
    {
        // Only overwrite the language if not already set.
        if (empty($GLOBALS['TL_LANG'][$this->getMetaModel()->getTableName()][$this->getColName()])) {
            $GLOBALS['TL_LANG'][$this->getMetaModel()->getTableName()][$this->getColName()] = array($this->getLangValue($this->get('name')), $this->getLangValue($this->get('description')));
        }
    }