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

Sidnei da Silva sidnei at x3ng.com.br
Fri Feb 27 12:58:18 EST 2004


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

Modified Files:
      Tag: runyaga-sip-branch
	engine.py 
Log Message:
Temporary fix, while Stephan Richter figures out the Real Fix (tm).


=== Zope3/src/zope/app/pagetemplate/engine.py 1.21 => 1.21.6.1 ===
--- 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 12:58:18 2004
@@ -89,7 +89,9 @@
         request = removeAllProxies(self.request)
         # XXX should we cache the translator instance?
         translator = Translator(request.locale, domain, self.context)
-        return translator.translate(msgid, mapping, default=default)
+        return translator.translate(msgid, mapping,
+                                    context=request,
+                                    default=default)
 
     evaluateInlineCode = False
 
@@ -109,7 +111,7 @@
             error = _('No interpreter named "${lang_name}" was found.')
             error.mapping = {'lang_name': lang}
             raise InlineCodeError, error
-                  
+
         globals = self.vars.copy()
         result = interpreter.evaluateRawCode(code, globals)
         # Add possibly new global variables.




More information about the Zope3-Checkins mailing list