# HG changeset patch # User cmlenz # Date 1176813479 0 # Node ID d79b1c624a308d495d83e68c93d16863ab88a5ea # Parent d799e17d3efe4afc7db1a84899c794b13c355d72 Port [552] to stable. 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