itkg / translation-bundle
翻译包
1.0.0
2016-04-06 12:33 UTC
Requires
- php: >=5.4,<7.0
- symfony/symfony: ~2
Requires (Dev)
- phake/phake: ^2.1.1
- phpunit/phpunit: 4.*
- symfony/monolog-bundle: ~2
This package is not auto-updated.
Last update: 2024-09-14 19:04:04 UTC
README
关于
为Symfony 2项目提供翻译导入/导出功能
安装
通过Composer安装
- 如果您使用Composer,请将ItkgDelayEventBundle包作为依赖项添加到您的应用的composer.json文件中
"require": { "itkg/translation-bundle": "dev-master" },
- 将ItkgTranslationBundle添加到您的应用内核中。
// app/AppKernel.php <?php // ... public function registerBundles() { $bundles = array( // ... new Itkg\TranslationBundle\ItkgTranslationBundle(), ); }
使用方法
- 将yml文件导出为CSV
app/console itkg:translation:convert --path ./ --input=yml --output=csv --output-path=/var/www/mhps/translations
- 将csv文件导入为yml
app/console itkg:translation:convert --path ./translations/ --input=csv --output=yml