From c915f4851f66ada797d14ebfe95b42488328f9e2 Mon Sep 17 00:00:00 2001 From: "H. Westphal" Date: Sat, 22 Oct 2011 11:23:43 +0200 Subject: [PATCH] Added another "before" possibility to retrieve the locale from a Twig template. --- UPGRADE-2.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index fa7a8e8a32..a1560677f9 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -28,7 +28,7 @@ UPGRADE FROM 2.0 to 2.1 Retrieving the locale from a Twig template: - Before: {{ app.request.session.locale }} + Before: {{ app.request.session.locale }} or {{ app.session.locale }} After: {{ app.request.locale }} Retrieving the locale from a PHP template: