Hi Lukas, This feature is available on repository of fabpot : [FrameworkBundle] added routing internationalization
Francis. Le 15 nov. 2010 à 19:13, Lukas Kahwe Smith a écrit : > Did you ever turn this into a pull request? > > On 07.11.2010, at 17:34, Francis Besset wrote: > >> Hello World! >> >> I developed a patch to add internationalization in the routing of >> Symfony2. >> >> Here's how it works: >> In your routing.yml: >> homepage: >> pattern: /:_locale >> defaults: { _controller: MyBundle:MyController:index, _locale: >> en } >> requirements: { _locale: (en|fr) } >> >> In your PHP template: >> <?php echo $view['session']->getLocale() ?> >> >> The commit : >> https://github.com/francisbesset/symfony/commit/9efb29db72ff2564de417b0e25a7f927acb82588 >> The branch : >> https://github.com/francisbesset/symfony/tree/routing_internationalization >> The repository : git://github.com/francisbesset/symfony.git >> routing_internationalization >> >> >> Thanks for your reporting. >> >> -- >> 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 "symfony developers" group. >> To post to this group, send email to symfony-devs@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-devs+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/symfony-devs?hl=en > > Lukas Kahwe Smith > m...@pooteeweet.org > > > > -- > 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 "symfony developers" group. > To post to this group, send email to symfony-devs@googlegroups.com > To unsubscribe from this group, send email to > symfony-devs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en -- 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 "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en