[Checkins] SVN: z3c.pt/trunk/ Fixed translation function compatibility issue.
Malthe Borch
cvs-admin at zope.org
Fri Jun 1 09:31:49 UTC 2012
Log message for revision 126549:
Fixed translation function compatibility issue.
Changed:
U z3c.pt/trunk/CHANGES.txt
U z3c.pt/trunk/src/z3c/pt/pagetemplate.py
-=-
Modified: z3c.pt/trunk/CHANGES.txt
===================================================================
--- z3c.pt/trunk/CHANGES.txt 2012-05-31 19:13:03 UTC (rev 126548)
+++ z3c.pt/trunk/CHANGES.txt 2012-06-01 09:31:46 UTC (rev 126549)
@@ -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)
~~~~~~~~~~~~~~~~~~
Modified: z3c.pt/trunk/src/z3c/pt/pagetemplate.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/pagetemplate.py 2012-05-31 19:13:03 UTC (rev 126548)
+++ z3c.pt/trunk/src/z3c/pt/pagetemplate.py 2012-06-01 09:31:46 UTC (rev 126549)
@@ -127,7 +127,8 @@
# 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
More information about the checkins
mailing list