Page 1 of 1

Translation section

PostPosted: 21 Sep 2018, 15:13
by luckyphan
Hi,

Where can we edit the warning message of "email address has been taken" during new user registration? Can't find it on the language translation section.

Need to change to local language.

Thanks

Re: Translation section

PostPosted: 21 Sep 2018, 17:17
by Xpycm
Hi.

Post in correct section! "Open Real Estate" -> "Questions and help for changes" not in "Open Real Estate".
Next time you violate the rules, you will be banned.

Solution:
Find all "array('email', 'unique')" in project and replace with array('email', 'unique', 'message' => Yii::t('common', 'My custom message')),

For example:
protected\modules\users\models\User.php file
In this file replace
Code: Select all
array('email''unique'), 

with:
Code: Select all
array('email''unique',  'message' => Yii::t('common''My custom message')),