Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 395f252

Browse filesBrowse files
committed
minor #8123 Added a help note about translating routes (javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Added a help note about translating routes This will hopefully solve the last missing task of #5709. Commits ------- 30380e5 Added a help note about translating routes
2 parents c67627c + 30380e5 commit 395f252
Copy full SHA for 395f252

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed

‎routing.rst

Copy file name to clipboardExpand all lines: routing.rst
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,15 @@ route::
716716
// or, in Twig
717717
// {{ path('blog_show', {'slug': 'slug-value'}) }}
718718

719+
Translating Routes
720+
------------------
721+
722+
Symfony doesn't support defining routes with different contents depending on the
723+
user language. In those cases, you can define multiple routes per controller,
724+
one for each supported language; or use any of the bundles created by the
725+
community to implement this feature, such as `JMSI18nRoutingBundle`_ and
726+
`BeSimpleI18nRoutingBundle`_.
727+
719728
Summary
720729
-------
721730

@@ -743,3 +752,6 @@ Learn more about Routing
743752
:glob:
744753

745754
routing/*
755+
756+
.. _`JMSI18nRoutingBundle`: https://github.com/schmittjoh/JMSI18nRoutingBundle
757+
.. _`BeSimpleI18nRoutingBundle`: https://github.com/BeSimple/BeSimpleI18nRoutingBundle

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.