@@ -68,7 +68,7 @@ public function validateParentID($attribute)
6868 if ($ this ->{$ attribute } !== null ) {
6969 $ comment = self ::find ()->where (['id ' => $ this ->{$ attribute }, 'entity ' => $ this ->entity , 'entityId ' => $ this ->entityId ])->active ()->exists ();
7070 if ($ comment === false ) {
71- $ this ->addError ('content ' , ' Oops, something went wrong. Please try again later. ' );
71+ $ this ->addError ('content ' , Yii:: t ( ' yii2mod.comments ' , ' Oops, something went wrong. Please try again later. ') );
7272 }
7373 }
7474 }
@@ -107,16 +107,16 @@ public function behaviors()
107107 public function attributeLabels ()
108108 {
109109 return [
110- 'id ' => Yii::t ('app ' , 'ID ' ),
111- 'content ' => Yii::t ('app ' , 'Comment ' ),
112- 'entity ' => Yii::t ('app ' , 'Entity ' ),
113- 'status ' => Yii::t ('app ' , 'Status ' ),
114- 'level ' => Yii::t ('app ' , 'Level ' ),
115- 'createdBy ' => Yii::t ('app ' , 'Created by ' ),
116- 'updatedBy ' => Yii::t ('app ' , 'Updated by ' ),
117- 'relatedTo ' => Yii::t ('app ' , 'Related to ' ),
118- 'createdAt ' => Yii::t ('app ' , 'Created date ' ),
119- 'updatedAt ' => Yii::t ('app ' , 'Updated date ' ),
110+ 'id ' => Yii::t ('yii2mod.comments ' , 'ID ' ),
111+ 'content ' => Yii::t ('yii2mod.comments ' , 'Comment ' ),
112+ 'entity ' => Yii::t ('yii2mod.comments ' , 'Entity ' ),
113+ 'status ' => Yii::t ('yii2mod.comments ' , 'Status ' ),
114+ 'level ' => Yii::t ('yii2mod.comments ' , 'Level ' ),
115+ 'createdBy ' => Yii::t ('yii2mod.comments ' , 'Created by ' ),
116+ 'updatedBy ' => Yii::t ('yii2mod.comments ' , 'Updated by ' ),
117+ 'relatedTo ' => Yii::t ('yii2mod.comments ' , 'Related to ' ),
118+ 'createdAt ' => Yii::t ('yii2mod.comments ' , 'Created date ' ),
119+ 'updatedAt ' => Yii::t ('yii2mod.comments ' , 'Updated date ' ),
120120 ];
121121 }
122122
0 commit comments