/** * This function internationalize the labels using Yii::t() * @see CActiveRecord::getAttributeLabel() */ public function getAttributeLabel($attribute) { $baseLabel = parent::getAttributeLabel($attribute); return Yii::t('waterrequest', $baseLabel); }
/** * @param string $attribute * @return string */ public function getAttributeLabel($attribute) { $baseLabel = parent::getAttributeLabel($attribute); return Yii::t('CheckoutForm', $baseLabel); }