openclassrooms / translation-bundle
Symfony2 Bundle 用于翻译工作流程
dev-master / 1.0.x-dev
2015-12-08 14:30 UTC
Requires
- php: >=5.3.3
- ezyang/htmlpurifier: ~4.6
- symfony/finder: ~2.6
- symfony/framework-bundle: ~2.6
- symfony/process: ^2.6
- symfony/translation: ~2.6
Requires (Dev)
- phpunit/phpunit: ~4.5
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2024-09-06 23:21:43 UTC
README
Symfony2 Bundle 用于检查缺失的翻译键并修复 Transifex 行为
安装
此包可以通过 composer 安装
composer require openclassrooms/translation-bundle
或直接将包添加到 composer.json 文件中。
{ "require": { "openclassrooms/translation-bundle": "*" } }
安装包后,将包添加到 AppKernel.php 文件中
// in AppKernel::registerBundles() $bundles = array( // ... new OpenClassrooms\Bundle\TranslationBundle\OpenClassroomsTranslationBundle(), // ... );
配置
将 elasticsearch 主机添加到 config.yml
openclassrooms_translation: locale_source: fr locale_targets: - en - es bundles: - AppBundle - UserBundle