nullisnot0 / symfony-translation-bundle
Installs: 1 082
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 92
Type:symfony-bundle
Requires
- php: ^5.5 || ^7.0
- nyholm/nsa: ^1.1
- php-translation/common: ^1.0
- php-translation/extractor: ^1.3
- php-translation/symfony-storage: ^1.0
- symfony/finder: ^2.7 || ^3.0 || ^4.0
- symfony/framework-bundle: ^2.7 || ^3.0 || ^4.0
- symfony/intl: ^2.7 || ^3.0 || ^4.0
- symfony/translation: ^2.7 || ^3.0 || ^4.0
- symfony/twig-bundle: ^2.7 || ^3.0 || ^4.0
- symfony/validator: ^2.7 || ^3.0 || ^4.0
Requires (Dev)
- guzzlehttp/psr7: ^1.4
- matthiasnoback/symfony-config-test: ^2.2 || ^3.1
- matthiasnoback/symfony-dependency-injection-test: ^1.2 || ^2.3
- nyholm/symfony-bundle-test: ^1.2.3
- php-http/curl-client: ^1.7
- php-http/message: ^1.6
- php-http/message-factory: ^1.0.2
- php-translation/translator: ^1.0
- symfony/asset: ^2.7 || ^3.0 || ^4.0
- symfony/console: ^2.7 || ^3.0 || ^4.0
- symfony/dependency-injection: ^2.7 || ^3.0 || ^4.0
- symfony/phpunit-bridge: ^3.4 || ^4.0
- symfony/templating: ^2.7 || ^3.0 || ^4.0
- symfony/twig-bridge: ^2.7 || ^3.0 || ^4.0
- symfony/web-profiler-bundle: ^2.7 || ^3.0 || ^4.0
Suggests
- php-http/httplug-bundle: To easier configure your httplug clients.
This package is auto-updated.
Last update: 2025-03-01 00:27:37 UTC
README
Symfony integration for PHP Translation
Install
Via Composer
$ composer require php-translation/symfony-bundle
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Translation\Bundle\TranslationBundle(), } } }
An example configuration looks like this:
# config.yml translation: locales: ["en", "sv"] symfony_profiler: # must be placed in config_dev.yml enabled: true webui: enabled: true edit_in_place: enabled: true config_name: default # the first one or one of your configs activator: php_translation.edit_in_place.activator configs: app: dirs: ["%kernel.root_dir%/Resources/views", "%kernel.root_dir%/../src"] output_dir: "%kernel.root_dir%/Resources/translations" excluded_names: ["*TestCase.php", "*Test.php"] excluded_dirs: [cache, data, logs]
# routing_dev.yml _translation_webui: resource: "@TranslationBundle/Resources/config/routing_webui.yml" prefix: /admin _translation_profiler: resource: '@TranslationBundle/Resources/config/routing_symfony_profiler.yml'
# routing.yml _translation_edit_in_place: resource: '@TranslationBundle/Resources/config/routing_edit_in_place.yml' prefix: /admin
Documentation
Read the full documentation at http://php-translation.readthedocs.io.