library/Garp/Model/Behavior/Translatable.php
public function getI18nModel(Garp_Model_Db $model) {
        $modelName = get_class($model);
        $modelName .= self::I18N_MODEL_SUFFIX;
        $model = new $modelName;

        // Do not block unpublished items, we might not get the right record from the fetchRow()
        // call in self::_saveI18nRecord()
        if ($draftable = $model->getObserver('Draftable')) {
            $draftable->setBlockOfflineItems(false);
        }
        return $model;
    }
public function getI18nModel(Garp_Model_Db $model) {
        $modelName = get_class($model);
        $modelName .= self::I18N_MODEL_SUFFIX;
        $model = new $modelName;

        // Do not block unpublished items, we might not get the right record from the fetchRow()
        // call in self::_saveI18nRecord()
        if ($draftable = $model->getObserver('Draftable')) {
            $draftable->setBlockOfflineItems(false);
        }
        return $model;
    }
public function getI18nModel ( Garp_Model_Db $ model ) { $ modelName = get_class ( $ model ) ; $ modelName .= self :: I18N_MODEL_SUFFIX ; $ model = new $ modelName ; // Do not block unpublished items, we might not get the right record from the fetchRow() // call in self::_saveI18nRecord() if ( $ draftable = $ model -> getObserver ( 'Draftable' ) ) { $ draftable -> setBlockOfflineItems ( false ) ; } return $ model ; }
Retrieve i18n model

@param Garp_Model_Db $model
@return Garp_Model_Db
Retrieve i18n model