coffin/coffin — Issue #26: underscore in templates
Author: patoch
Created: 2011-11-04 12:31:45+00:00
State: open

Hi

when I call the underscore function from a template to get translated text, an error is raised :
'_' is undefined

I believe jinja2 i18n extension is not loaded properly. In the settings file I added :
JINJA2_ENVIRONMENT_OPTIONS = {
'extensions': ['jinja2.ext.i18n'],
}

Is this correct ?

Thanks for your comments,

Pat