Commit 8f82d361 authored by Tres Seaver's avatar Tres Seaver

Collector #1888: Adjust call to 'engine.translate' to accomodate new signature.

parent da718a07
...@@ -33,6 +33,9 @@ Zope Changes ...@@ -33,6 +33,9 @@ Zope Changes
Bugs Fixed Bugs Fixed
- Collector #1888: Adjust call to 'engine.translate' to accomodate
change in its signature.
- Collector #1863: Prevent possibly sensitive information to leak via - Collector #1863: Prevent possibly sensitive information to leak via
the TransientObject's __repr__ method. the TransientObject's __repr__ method.
......
...@@ -506,8 +506,8 @@ class TALInterpreter: ...@@ -506,8 +506,8 @@ class TALInterpreter:
return return
if isinstance(text, MessageID): if isinstance(text, MessageID):
# Translate this now. # Translate this now.
text = self.engine.translate(text.domain, text, text = self.engine.translate(text.domain, text, text.mapping,
text.mapping, text.default) default=text.default)
s = escape(text) s = escape(text)
self._stream_write(s) self._stream_write(s)
i = s.rfind('\n') i = s.rfind('\n')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment