[Zope-Checkins]
SVN: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/Engine.py
get rid of 2nd, less useful implementation of translate()
Philipp von Weitershausen
philikon at philikon.de
Mon May 8 14:28:02 EDT 2006
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,
More information about the Zope-Checkins
mailing list