Log message for revision 68033:
  get rid of 2nd, less useful implementation of translate()
  correct argument order in useful implementation
  

Changed:
  U   
Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Engine.py

-=-
Modified: 
Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Engine.py
===================================================================
--- 
Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Engine.py    
    2006-05-08 18:25:50 UTC (rev 68032)
+++ 
Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Engine.py    
    2006-05-08 18:28:01 UTC (rev 68033)
@@ -67,15 +67,10 @@
 
 class Context(Context):
 
-    def translate(self, msgid, domain=None, mapping=None, default=None):
-        return getGlobalTranslationService().translate(
-            msgid, domain, mapping,
-            context=self.contexts['context'], default=default)
-
-    def translate(self, domain, msgid, mapping=None,
+    def translate(self, msgid, domain, mapping=None,
                   context=None, target_language=None, default=None):
         if context is None:
-            context = self.contexts.get('here')
+            context = self.contexts.get('context')
         return getGlobalTranslationService().translate(
             domain, msgid, mapping=mapping,
             context=context,

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to