{"comment":{"created_at":"2011-10-18T20:36:40Z","body":"Hum, thanks for the solution, and sorry to use the issue tracker for that kind of question.","updated_at":"2011-10-18T20:36:40Z","url":"https://api.github.com/repos/schmittjoh/JMSI18nRoutingBundle/issues/comments/2447401","id":2447401,"user":{"gravatar_id":"14b4be29ee15ad92b71563f27137de9b","avatar_url":"https://secure.gravatar.com/avatar/14b4be29ee15ad92b71563f27137de9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/FMaz008","id":525000,"login":"FMaz008"}},"action":"created","issue":{"number":8,"created_at":"2011-10-18T19:38:28Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi, \r\n\r\nI've installed the bundle, and have a project with basically only 2 pages so far:\r\nIn my app/config/routing.yml :\r\n\r\n    _localeDispatcher:\r\n        pattern:  /\r\n        defaults: { _controller: MyAppBundle:LocaleDispatcher:index }\r\n      \r\n    _welcome:\r\n        pattern:  /welcome\r\n        defaults: { _controller:MyAppBundle:Welcome:index }\r\n\r\n\r\nIn my app/config/config.yml\r\n\r\n    jms_i18n_routing:\r\n        default_locale: en\r\n        locales: [fr, en_CA, en, es]\r\n        strategy: prefix\r\n\r\n\r\nBasically, my first page decide what's the best locale for the visitor, and redirect him to the proper route.\r\nThe URI his generated this way:\r\n\r\n    $arrParam = array('_locale' => $this->get('session')->getLocale());\r\n    $url = $this->container->get('router')->generate('_welcome', $arrParam);\r\n\r\nSo a couple of problems:\r\n1) I've setup the prefix strategy, and the $url variable contain /welcome?_locale=en instead of /en/welcome\r\n2) If I try to access /en/welcome, the route is not found\r\n3) If I run i18n:extract-routes en --dry-run, none of my route are detected, only those of FOSUserBundle will appear.\r\n\r\nI feel like it's a configuration problem, but their's almost no documentation or tutorials aside from /resources/doc/index.rst :(","comments":2,"title":"Undetected routes ?","updated_at":"2011-10-18T20:36:40Z","url":"https://api.github.com/repos/schmittjoh/JMSI18nRoutingBundle/issues/8","id":1967439,"assignee":null,"milestone":null,"closed_at":"2011-10-18T20:36:40Z","user":{"gravatar_id":"14b4be29ee15ad92b71563f27137de9b","avatar_url":"https://secure.gravatar.com/avatar/14b4be29ee15ad92b71563f27137de9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/FMaz008","id":525000,"login":"FMaz008"},"html_url":"https://github.com/schmittjoh/JMSI18nRoutingBundle/issues/8","labels":[],"state":"closed"},"legacy":{"issue_id":1967439,"comment_id":2447401}}