Laravel 5.1 改为中文语言

WBOY
Release: 2016-06-23 13:24:20
Original
912 people have browsed it

好吧,其实用Laravel有一段时间了。一直也没有注意“中文”这个问题,直到做登陆注册提示信息在想到更改。

环境是Laravel 5.1

语言包地址:https://github.com/caouecs/Laravel-lang/tree/master/zh-CN

1.将语言包文件放到resources/lang/zh_CN文件夹下

2.更改config/app.php里面的'locale' => 'en',变为'locale' => 'zh_CN',

如图:

现在提示就是中文了。
原文:http://note.mango.im/article/27

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template