mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add the twig date extension
The twig date extension allow to print message like "update 1 hour ago". Documentation here : http://twig.sensiolabs.org/doc/extensions/date.html
This commit is contained in:
parent
0fa3a9b0ed
commit
d6a1b878d3
@ -28,6 +28,13 @@ services:
|
||||
class: Twig_Extensions_Extension_Intl
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
twig_date:
|
||||
class: Twig_Extensions_Extension_Date
|
||||
arguments:
|
||||
- "@translator"
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
chill.main.form.type.translatable.string:
|
||||
class: Chill\MainBundle\Form\Type\TranslatableStringFormType
|
||||
|
7
Resources/translations/date.fr.yml
Normal file
7
Resources/translations/date.fr.yml
Normal file
@ -0,0 +1,7 @@
|
||||
#diff ago. See doc here : http://twig.sensiolabs.org/doc/extensions/date.html
|
||||
diff.ago.second: '{1} Il y a une seconde | ]1,Inf] Il y a %count% secondes'
|
||||
diff.ago.minute: '{1} Il y a une minute | ]1,Inf] Il y a %count% minutes'
|
||||
diff.ago.hour: '{1} Il y a une heure | ]1,Inf] Il y a %count% heures'
|
||||
diff.ago.day: '{1} Hier | ]1,Inf] Il y a %count% jours'
|
||||
diff.ago.month: '{1} Le mois dernier | ]1,Inf] Il y a %count% mois'
|
||||
diff.ago.year: '{1} Il y a un an | ]1,Inf] Il y a %count% ans'
|
Loading…
x
Reference in New Issue
Block a user