/**
  * Creates a new ProductTranslation model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate($product_id)
 {
     $username = Yii::$app->user->identity->username;
     $model = new ProductTranslation();
     $model->product_id = $product_id;
     $this->product_id = $model->product_id;
     if (Yii::$app->request->isPost && ($model = ProductTranslation::create(Yii::$app->request->post()))) {
         return $this->redirect(['update', 'id' => $model->id]);
     } else {
         return $this->render('create', ['username' => $username, 'model' => $model]);
     }
 }