This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

kingofswing16021
kingofswing16021

I've installed the simple contact plugin, everything worked well exception the validation message . I created the zh-cn directory under lang, copy the 2 files (lang.php, validadtion.php) there and change the needed message to Chinese, but after changed to Chinese (using rainlab's locale plugin), if submit the form without put anything in the form , it can't display the right Chinese alert. in Simplecontact.php's onFormSubmit() function , there is a $customValidationMessages array which holds the translated messages, i.e,


'name.required' => e(trans('zainab.simplecontact::validation.custom.name.required')) 
, but It seems it still got the English validation message . I'm new to October cms, does any one can give me a tip ? TIA!

Last updated

kingofswing16021
kingofswing16021

I should mention this: in simple contact plugin's backend setting, all Chinese translation messages I put into the lang.php work fine .

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.