protected function makeModelLabel($key, array $properties, $isPlain, $lang)
    {
        $text = $properties['text'];

        $this->replaceModelName($text, $this->modelName);

        $localeKey = sprintf('%s.%s', $this->localeGroup, $key);

        $label = new Label($text, $localeKey, $isPlain, $lang, $key);
        $label->template = $properties['template'];
        $label->isInFunction = $this->isInFunction($properties);

        return $label;
    }