[Checkins] 
	SVN: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/GlobalTranslationService.py
	minor clean up and reminder to get rid of GTS asap.
    Philipp von Weitershausen 
    philikon at philikon.de
       
    Mon May  8 14:35:40 EDT 2006
    
    
  
Log message for revision 68034:
  minor clean up and reminder to get rid of GTS asap.
  
Changed:
  U   Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/GlobalTranslationService.py
-=-
Modified: Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/GlobalTranslationService.py
===================================================================
--- Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/GlobalTranslationService.py	2006-05-08 18:28:01 UTC (rev 68033)
+++ Zope/branches/ajung-zpt-end-game/lib/python/Products/PageTemplates/GlobalTranslationService.py	2006-05-08 18:35:39 UTC (rev 68034)
@@ -15,12 +15,11 @@
 
 $Id$
 """
-
 import re
 import Products.Five.i18n
 
 from DocumentTemplate.DT_Util import ustr
-from TAL.TALDefs import NAME_RE
+from zope.tal.taldefs import NAME_RE
 
 class DummyTranslationService:
     """Translation service that doesn't know anything about translation."""
@@ -30,13 +29,15 @@
             return ustr(mapping[m.group(m.lastindex)])
         cre = re.compile(r'\$(?:(%s)|\{(%s)\})' % (NAME_RE, NAME_RE))
         return cre.sub(repl, default or msgid)
-    # XXX Not all of Zope2.I18n.ITranslationService is implemented.
 
 #
 # As of Five 1.1, we're by default using Zope 3 Message Catalogs for
 # translation, but we allow fallback translation services such as PTS
 # and Localizer
 #
+# TODO We should really deprecate Zope2-style translation service and
+# only support Zope3-style i18n in the future.
+#
 
 Products.Five.i18n._fallback_translation_service = DummyTranslationService()
 fiveTranslationService = Products.Five.i18n.FiveTranslationService()
    
    
More information about the Checkins
mailing list