7 Commits

Author SHA1 Message Date
ced9d17d03 sf4 resolve errors and depreciations 2020-07-30 13:53:15 +02:00
de177e5764 fix sf4 deprecated using get() method for private container 2020-07-16 16:16:21 +02:00
f85462ac40 fix license header 2019-12-05 21:19:05 +01:00
Marc Ducobu
1c252eac43 Move csvCellFilter into Templating\CSVCellTwig - close #416 2015-03-03 10:57:23 +01:00
Marc Ducobu
88cb918c82 Adding twig filter for csv cell content - refs #401 2015-02-18 13:11:34 +01:00
Marc Ducobu
6cb7b89a27 Adding license 2015-02-18 12:37:17 +01:00
57f2fa3178 create an helper + twig filter to show translatable string in current locale.
The twig filter is localize_translatable_string

Example : {{ person.nationality|localize_translatable_string }}

The helper may be called with $container->get('chill.main.helper.translatable_string'). The main function is ->localize(array $strings)

Example:

$container->get('chill.main.helper.translatable_string')->localize($country->getName()); #return the name in current locale

close #299
2014-11-17 01:03:07 +01:00