mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-24 20:58:31 +00:00
Change all content from rst format to markdown and correct spelling/grammar
This commit is contained in:
30
docs/source/development/localisation.md
Normal file
30
docs/source/development/localisation.md
Normal file
@@ -0,0 +1,30 @@
|
||||
###### Localisation
|
||||
|
||||
## Language in url
|
||||
|
||||
Language should be present in URL, conventionally as the first argument.
|
||||
|
||||
`/fr/your/url/here`
|
||||
|
||||
This allows 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 :
|
||||
|
||||
```yaml
|
||||
chill_person_general_edit:
|
||||
pattern: /{_locale}/person/{person_id}/general/edit
|
||||
defaults: {_controller: ChillPersonBundle:Person:edit }
|
||||
```
|
||||
|
||||
## Date and time
|
||||
|
||||
The [Intl extension ](http://twig.sensiolabs.org/doc/extensions/intl.html) is enabled on the Chill application.
|
||||
|
||||
You may format date and time using the [localizeddate` function :
|
||||
|
||||
`date|localizeddate('long', 'none')`
|
||||
|
||||
By default, we prefer using the `long` format for date formatting.
|
||||
|
||||
[Documentation for Intl Extension](http://twig.sensiolabs.org/doc/extensions/intl.html)
|
||||
Read the complete doc for the Intl extension.
|
||||
Reference in New Issue
Block a user