【文件属性】:
文件名称:yii2-language:Yii2国际化模块
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-09 13:36:15
PHP
安装
用作曲家安装。 从yii2根目录添加到composer.json。
"repositories": [
{
"type": "vcs",
"url": "https://github.com/adzadzadz/yii2-language"
}
]
然后从您的终端,
$ composer require adzadzadz/yii2-language:dev-master
迁移所需的表。
$ php yii migration --migrationPath =供应商/ adzadzadz / yii2-语言/ migration --interactive = 0
从所有文件中提取所有启用了translate / i18n的元素
在yii2根目录安装中,输入如下所示的命令。
$ php ./yii message/extrac
【文件预览】:
yii2-language-master
----README.md(2KB)
----language.php(311B)
----views()
--------default()
----migration()
--------m150910_014555_create_language_set_tables.php(2KB)
----composer.json(450B)
----config.php(4KB)
----models()
--------Message.php(1KB)
--------Source.php(1KB)
--------Language.php(888B)
----assets()
--------MainAsset.php(511B)
--------main()
----controllers()
--------DefaultController.php(3KB)