Discussion:
InvalidConfigurationException: The child node "default_locale" at path "jms_i18n_routing" must be configured.
DrÿSs'
2012-06-05 15:27:02 UTC
Permalink
Hi,

First of all, sorry to anoying you and for my bad english (I'm french !).

I found your bundle for SF2 to handle i18n routing.
I tryed to install/configure it following your documentation at
http://jmsyst.com/bundles/JMSI18nRoutingBundle.

But when I try to launch my home, I got following error:

"*InvalidConfigurationException: The child node "default_locale" at path
"jms_i18n_routing" must be configured.*"

I added to my *routing.yml* following code:

"*jms_i18n_routing:*
* default_locale: en*
* locales: [de, en]*
* strategy: prefix_except_default*"

What sould I do more to make it work?
I'm very new using SF...

Thanks a lot for your help,
Amically,
--
If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
Christophe COEVOET
2012-06-05 18:54:16 UTC
Permalink
Post by DrÿSs'
Hi,
First of all, sorry to anoying you and for my bad english (I'm french !).
I found your bundle for SF2 to handle i18n routing.
I tryed to install/configure it following your documentation at
http://jmsyst.com/bundles/JMSI18nRoutingBundle
<http://jmsyst.com/bundles/JMSI18nRoutingBundle>.
"*InvalidConfigurationException: The child node "default_locale" at
path "jms_i18n_routing" must be configured.*"
"*jms_i18n_routing:*
* default_locale: en*
* locales: [de, en]*
* strategy: prefix_except_default*"
What sould I do more to make it work?
I'm very new using SF...
Thanks a lot for your help,
Amically,
The configuration of bundles goes in the config.yml file, not in the
routing.yml file (which only contains route definitions).
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
Loading...