controllers/I18nTranslationController.php
protected function findModel($message_id, $language)
    {
        if (($model = I18nTranslation::findOne(['message_id' => $message_id, 'language' => $language])) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException('The requested page does not exist.');
        }
    }
protected function findModel($message_id, $language)
    {
        if (($model = I18nTranslation::findOne(['message_id' => $message_id, 'language' => $language])) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException('The requested page does not exist.');
        }
    }
Finds the I18nTranslation model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
@param integer $message_id
@param string $language
@return I18nTranslation the loaded model
@throws NotFoundHttpException if the model cannot be found