mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
parent
458a2e71a5
commit
74bf42e350
@ -9,6 +9,26 @@
|
|||||||
Localisation
|
Localisation
|
||||||
*************
|
*************
|
||||||
|
|
||||||
|
Language in url
|
||||||
|
===============
|
||||||
|
|
||||||
|
Language should be present in URL, conventionnaly as first argument.
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
/fr/your/url/here
|
||||||
|
|
||||||
|
This allow users to change from one language to another one on each page, which may be useful in multilanguages teams. If the installation is single-language, the language switcher will not appears.
|
||||||
|
|
||||||
|
This is an example of routing defined in yaml :
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
chill_person_general_edit:
|
||||||
|
pattern: /{_locale}/person/{person_id}/general/edit
|
||||||
|
defaults: {_controller: ChillPersonBundle:Person:edit }
|
||||||
|
|
||||||
|
|
||||||
Date and time
|
Date and time
|
||||||
==============
|
==============
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user