protected function configureI18nProcessing(
        ModelCriteria $search,
        $columns = array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM'),
        $foreignTable = null,
        $foreignKey = 'ID',
        $forceReturn = false
    ) {
        /* manage translations */

        $this->locale = ModelCriteriaTools::getI18n(
            $this->getBackendContext(),
            $this->getLang(),
            $search,
            $this->getCurrentRequest()->getSession()->getLang()->getLocale(),
            $columns,
            $foreignTable,
            $foreignKey,
            $this->getForceReturn()
        );
    }
protected function configureI18nProcessing(
        ModelCriteria $search,
        $columns = array('TITLE', 'CHAPO', 'DESCRIPTION', 'POSTSCRIPTUM'),
        $foreignTable = null,
        $foreignKey = 'ID',
        $forceReturn = false
    ) {
        /* manage translations */

        $this->locale = ModelCriteriaTools::getI18n(
            $this->getBackendContext(),
            $this->getLang(),
            $search,
            $this->getCurrentRequest()->getSession()->getLang()->getLocale(),
            $columns,
            $foreignTable,
            $foreignKey,
            $this->getForceReturn()
        );
    }
protected function configureI18nProcessing ( ModelCriteria $ search , $ columns = array ( 'TITLE' , 'CHAPO' , 'DESCRIPTION' , 'POSTSCRIPTUM' ) , $ foreignTable = null , $ foreignKey = 'ID' , $ forceReturn = false ) { /* manage translations */ $ this -> locale = ModelCriteriaTools :: getI18n ( $ this -> getBackendContext ( ) , $ this -> getLang ( ) , $ search , $ this -> getCurrentRequest ( ) -> getSession ( ) -> getLang ( ) -> getLocale ( ) , $ columns , $ foreignTable , $ foreignKey , $ this -> getForceReturn ( ) ) ; }
Setup ModelCriteria for proper i18n processing

@param ModelCriteria $search       the Propel Criteria to configure
@param array         $columns      the i18n columns
@param string        $foreignTable the specified table (default  to criteria table)
@param string        $foreignKey   the foreign key in this table (default to criteria table)
@param bool          $forceReturn

@return mixed the locale
Setup ModelCriteria for proper i18n processing