def install_jinja_translations():
class Translation(object):<EOL><INDENT>"""<STR_LIT>"""<EOL>ugettext = staticmethod(ugettext)<EOL>ungettext = staticmethod(ungettext)<EOL><DEDENT>import jingo<EOL>jingo.env.install_gettext_translations(Translation)<EOL>
Install our gettext and ngettext functions into Jinja2's environment.