5 Commits

Author SHA1 Message Date
f85462ac40 fix license header 2019-12-05 21:19:05 +01:00
7b8d22a486 remove dump statement 2017-04-18 22:18:19 +02:00
Marc Ducobu
6cb7b89a27 Adding license 2015-02-18 12:37:17 +01:00
ab8c565ff3 add language fallback to translatable string
refs #332
2015-02-05 16:43:45 +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