From 30380e5eca7a15278a879c70ca2083bfa4a9fdcd Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 5 Jul 2017 09:54:00 +0200 Subject: [PATCH] Added a help note about translating routes --- routing.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/routing.rst b/routing.rst index f66caca3ca8..5b7a926748b 100644 --- a/routing.rst +++ b/routing.rst @@ -716,6 +716,15 @@ route:: // or, in Twig // {{ path('blog_show', {'slug': 'slug-value'}) }} +Translating Routes +------------------ + +Symfony doesn't support defining routes with different contents depending on the +user language. In those cases, you can define multiple routes per controller, +one for each supported language; or use any of the bundles created by the +community to implement this feature, such as `JMSI18nRoutingBundle`_ and +`BeSimpleI18nRoutingBundle`_. + Summary ------- @@ -743,3 +752,6 @@ Learn more about Routing :glob: routing/* + +.. _`JMSI18nRoutingBundle`: https://github.com/schmittjoh/JMSI18nRoutingBundle +.. _`BeSimpleI18nRoutingBundle`: https://github.com/BeSimple/BeSimpleI18nRoutingBundle