Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 550243e

Browse files
committed
Merge pull request #754 from symfony-cmf/simple-cms-locale
clarify locale with simple cms
2 parents 3b8eae0 + 49a8f82 commit 550243e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

bundles/simple_cms/multilang.rst

+9-2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ For example::
3636

3737
$dm->flush();
3838

39+
Unless you write your own listener to update the locale *before* the routing
40+
takes place, your content will be loaded in the default locale and you will
41+
need to reload the content after the routing step to get the requested locale.
42+
3943
.. sidebar:: Translating the URL
4044

4145
Since SimpleCmsBundle only provides a single tree structure, all nodes
@@ -45,5 +49,8 @@ For example::
4549

4650
If you need language specific URLs, you can either add Route documents for
4751
the other locales and configure the dynamic router to look for routes under
48-
both prefixes. You can also completely separate routing and content by using
49-
the separate documents from the RoutingBundle and ContentBundle.
52+
both prefixes, or contribute the feature described in the `issue tracker`_.
53+
You can also completely separate routing and content by using the separate
54+
documents from the RoutingBundle and ContentBundle.
55+
56+
.. _`issue tracker`: https://github.com/symfony-cmf/SimpleCmsBundle/issues/109

0 commit comments

Comments
 (0)