Skip to content

Commit

Permalink
Fixed translation function compatibility issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Jun 1, 2012
1 parent d62663b commit 8e331ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

In next release ...

Compatibility:

- The translation function now accepts (but ignores) a ``context``
argument. This fixes a compatibility issue with Chameleon 2.9.x.

2.2.2 (2012-04-24)
~~~~~~~~~~~~~~~~~~

Expand Down
3 changes: 2 additions & 1 deletion src/z3c/pt/pagetemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def render(self, target_language=None, **context):
# bind translation-method to request
def translate(
msgid, domain=None, mapping=None,
target_language=None, default=None):
target_language=None, default=None,
context=None):
if msgid is MV:
# Special case handling of Zope2's Missing.MV
# (Missing.Value) used by the ZCatalog but is
Expand Down

0 comments on commit 8e331ed

Please sign in to comment.