From acb5868ddc7e2a6551d00a8b350ae8df41cc5587 Mon Sep 17 00:00:00 2001 From: Alexander Schwenn Date: Fri, 9 Jan 2015 12:38:00 +0100 Subject: [PATCH] [Book][Translation] Added tip for routing params --- book/translation.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/book/translation.rst b/book/translation.rst index d6094a3a5d7..54c06f58e0a 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -422,7 +422,7 @@ via the ``request`` object:: .. tip:: - Read :doc:`/cookbook/session/locale_sticky_session` to learn, how to store + Read :doc:`/cookbook/session/locale_sticky_session` to learn how to store the user's locale in the session. .. index:: @@ -502,6 +502,11 @@ as the locale for the current request. You can now use the locale to create routes to other translated pages in your application. +.. tip:: + + Read :doc:`/cookbook/routing/service_container_parameters` to learn how to + avoid hardcoding the ``_locale`` requirement in all your routes. + Setting a default Locale ~~~~~~~~~~~~~~~~~~~~~~~~