Fixed issues in installing gettext callables to jinja2 environment.