手册的方式会报错,网上搜到一些方法也不行。
看生成的i18n生成的config.php中提到这样执行:
yii message/config-template backend/messages/config.php #之前版本的教程里,没有config-template参数
yii message backend/messages/config.php #指定好路径
我猜想是新版本用了新参数,但是没查到相关资料。不过这么做,确实可行。
手册的方式会报错,网上搜到一些方法也不行。
看生成的i18n生成的config.php中提到这样执行:
yii message/config-template backend/messages/config.php #之前版本的教程里,没有config-template参数
yii message backend/messages/config.php #指定好路径
我猜想是新版本用了新参数,但是没查到相关资料。不过这么做,确实可行。
转载于:https://my.oschina.net/u/247923/blog/788538