Changeset 5522

Show
Ignore:
Timestamp:
10/06/08 22:42:22 (3 months ago)
Author:
mramm
Message:

Fix internationalization setup for template render functions.

Fix basesd on patch in ticket #1789

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tg/configuration.py

    r5413 r5522  
    189189        def template_loaded(template): 
    190190            "Plug-in our i18n function to Genshi." 
    191             genshi.template.filters.insert(0, Translator(ugettext)) 
     191            template.filters.insert(0, Translator(ugettext)) 
    192192        loader = TemplateLoader(search_path=self.paths.templates, 
    193193                                auto_reload=self.auto_reload_templates)