'zh-CN','timeZone'=>'Asia/Shanghai',"; finally save the changes. ."/> 'zh-CN','timeZone'=>'Asia/Shanghai',"; finally save the changes. .">

Home  >  Article  >  PHP Framework  >  How to set error message language in yii2

How to set error message language in yii2

藏色散人
藏色散人Original
2020-07-20 09:44:162380browse

yii2 Method to set the error message language: first find and open the configuration file; then write the statement "'language'=>'zh-CN','timeZone'=>'Asia/Shanghai' ,"; finally save the changes.

How to set error message language in yii2

Yii2 verification error message changed to global Chinese

Recommended: "yii tutorial"

Configuration file writing

'language'=>'zh-CN',
'timeZone'=>'Asia/Shanghai',

The above is the detailed content of How to set error message language in yii2. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn