Skip to content

Commit 531909d

Browse files
Reword
1 parent 1492f3e commit 531909d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

translation/locale.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ it::
2828

2929
.. note::
3030

31-
Using a listener like this requires that it is called **before**
32-
LocaleListener attempts to access it. You will need to set your event listener
33-
with a higher priority if you want this to work.
31+
The custom listener must be called **before** ``LocaleListener``, which
32+
initializes the locale based on the current request. To do so, set your
33+
listener priority to a higher value than ``LocaleListener`` priority (which
34+
you can obtain running the ``debug:event kernel.request`` command).
3435

3536
Read :doc:`/session/locale_sticky_session` for more information on making
3637
the user's locale "sticky" to their session.

0 commit comments

Comments
 (0)