@@ -20,13 +20,13 @@ $ composer require php-translation/symfony-bundle
2020``` php
2121class AppKernel extends Kernel
2222{
23- public function registerBundles()
24- {
25- $bundles = array(
26- // ...
27- new Translation\Bundle\TranslationBundle(),
23+ public function registerBundles()
24+ {
25+ $bundles = array(
26+ // ...
27+ new Translation\Bundle\TranslationBundle(),
28+ }
2829 }
29- }
3030}
3131```
3232
@@ -35,38 +35,38 @@ An example configuration looks like this:
3535``` yaml
3636# config.yml
3737translation :
38- locales : ["en", "sv"]
39- symfony_profiler : # must be placed in config_dev.yml
40- enabled : true
41- webui :
42- enabled : true
43- edit_in_place :
44- enabled : true
45- config_name : default # the first one or one of your configs
46- activator : php_translation.edit_in_place.activator
47- configs :
48- app :
49- dirs : ["%kernel.root_dir%/Resources/views", "%kernel.root_dir%/../src"]
50- output_dir : " %kernel.root_dir%/Resources/translations"
51- excluded_names : ["*TestCase.php", "*Test.php"]
52- excluded_dirs : [cache, data, logs]
38+ locales : ["en", "sv"]
39+ symfony_profiler : # must be placed in config_dev.yml
40+ enabled : true
41+ webui :
42+ enabled : true
43+ edit_in_place :
44+ enabled : true
45+ config_name : default # the first one or one of your configs
46+ activator : php_translation.edit_in_place.activator
47+ configs :
48+ app :
49+ dirs : ["%kernel.root_dir%/Resources/views", "%kernel.root_dir%/../src"]
50+ output_dir : " %kernel.root_dir%/Resources/translations"
51+ excluded_names : ["*TestCase.php", "*Test.php"]
52+ excluded_dirs : [cache, data, logs]
5353` ` `
5454
5555` ` ` yaml
5656# routing_dev.yml
5757_translation_webui :
58- resource : " @TranslationBundle/Resources/config/routing_webui.yml"
59- prefix : /admin
58+ resource : " @TranslationBundle/Resources/config/routing_webui.yml"
59+ prefix : /admin
6060
6161_translation_profiler :
62- resource : ' @TranslationBundle/Resources/config/routing_symfony_profiler.yml'
62+ resource : ' @TranslationBundle/Resources/config/routing_symfony_profiler.yml'
6363` ` `
6464
6565` ` ` yaml
6666# routing.yml
6767_translation_edit_in_place :
68- resource : ' @TranslationBundle/Resources/config/routing_edit_in_place.yml'
69- prefix : /admin
68+ resource : ' @TranslationBundle/Resources/config/routing_edit_in_place.yml'
69+ prefix : /admin
7070` ` `
7171
7272## Documentation
0 commit comments