# HG changeset patch # User cmlenz # Date 1176813417 0 # Node ID fe1c1b0391a964835ef2d4f6261043a7a67ea6e0 # Parent e1159958d163cf6b74e4067f566b2f6904dba220 Fix incorrect reference to translation function in the I18N filter. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Version 0.4.1 +http://svn.edgewall.org/repos/genshi/tags/0.4.1/ +(?, from branches/stable/0.4.x) + + * Fix incorrect reference to translation function in the I18N filter. + + Version 0.4 http://svn.edgewall.org/repos/genshi/tags/0.4.0/ (Apr 16 2007, from branches/stable/0.4.x) diff --git a/genshi/filters/i18n.py b/genshi/filters/i18n.py --- a/genshi/filters/i18n.py +++ b/genshi/filters/i18n.py @@ -133,9 +133,11 @@ for name, value in attrs: if name in include_attrs: if isinstance(value, basestring): - newval = ugettext(value) + newval = self.translate(value) else: - newval = list(self(value, ctxt, search_text=name in include_attrs)) + newval = list(self(value, ctxt, + search_text=name in include_attrs) + ) if newval != value: value = new_val changed = True