src/PeskyCMF/Scaffold/ScaffoldSectionConfig.php
public function translateGeneral($path, array $parameters = []) {
        $prefix = $this->getSectionTranslationsPrefix();
        $text = $this->getScaffoldConfig()->translate($prefix, $path, $parameters);
        if (preg_match('%\.' . preg_quote($prefix . '.' . $path, '%') . '$%', $text)) {
            $text = cmfTransGeneral($this->getSectionTranslationsPrefix('general') . '.' . $path, $parameters);
        }
        return $text;
    }
public function translateGeneral($path, array $parameters = []) {
        $prefix = $this->getSectionTranslationsPrefix();
        $text = $this->getScaffoldConfig()->translate($prefix, $path, $parameters);
        if (preg_match('%\.' . preg_quote($prefix . '.' . $path, '%') . '$%', $text)) {
            $text = cmfTransGeneral($this->getSectionTranslationsPrefix('general') . '.' . $path, $parameters);
        }
        return $text;
    }
public function translateGeneral ( $ path , array $ parameters = [ ] ) { $ prefix = $ this -> getSectionTranslationsPrefix ( ) ; $ text = $ this -> getScaffoldConfig ( ) -> translate ( $ prefix , $ path , $ parameters ) ; if ( preg_match ( '%\.' . preg_quote ( $ prefix . '.' . $ path , '%' ) . '$%' , $ text ) ) { $ text = cmfTransGeneral ( $ this -> getSectionTranslationsPrefix ( 'general' ) . '.' . $ path , $ parameters ) ; } return $ text ; }
Translate general UI elements (button labels, tooltips, messages, etc..)
@param $path
@param array $parameters
@return mixed
Translate general UI elements ( button labels tooltips messages etc .. )