bariew / yii2-i18n-cms-module
翻译的CRUD模块
2.0.0-beta
2016-06-07 07:08 UTC
This package is auto-updated.
Last update: 2024-08-25 20:03:19 UTC
README
模块或从管理区域管理网站翻译信息。
使用方法
- 将以下内容添加到配置文件中的'components'部分
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\DbMessageSource',
],
],
],
- 将此模块的'migrations'文件夹中的迁移文件复制到您的应用的'migrations'文件夹,并在控制台中运行
./yii migrate
- 将i18n.php.example复制到您的配置文件夹中的i18n.php文件,并在控制台中运行
./yii message config/i18n.php
现在您可以在后端'/i18n/message/index' URL下找到所有应用的翻译。