public function getTranslateModel() { tt($this->char_code . "_translate", 'currency'); $model = TranslateMessage::model()->findByAttributes(array('category' => 'module_currency', 'message' => $this->char_code . "_translate")); return $model; }
public function getTranslateModel() { if ($this->type == self::TYPE_DEFAULT || $this->isNewRecord) { return NULL; } tc('Search by ' . $this->field); $model = TranslateMessage::model()->findByAttributes(array('category' => 'common', 'message' => 'Search by ' . $this->field)); return $model; }