[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate - engine.py:1.22

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Feb 27 17:25:25 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv19338/src/zope/app/pagetemplate

Modified Files:
	engine.py 
Log Message:
I must have been on sleep-derivation when originally writing the Translator 
code, which was horribly broken.

Fixed everything and updated the engine to do the right thing too.


=== Zope3/src/zope/app/pagetemplate/engine.py 1.21 => 1.22 ===
--- Zope3/src/zope/app/pagetemplate/engine.py:1.21	Tue Feb 10 20:14:02 2004
+++ Zope3/src/zope/app/pagetemplate/engine.py	Fri Feb 27 17:25:24 2004
@@ -88,7 +88,7 @@
         # so it is safe to remove all proxies
         request = removeAllProxies(self.request)
         # XXX should we cache the translator instance?
-        translator = Translator(request.locale, domain, self.context)
+        translator = Translator(domain, request, self.context)
         return translator.translate(msgid, mapping, default=default)
 
     evaluateInlineCode = False




More information about the Zope3-Checkins mailing list