[ZPT] CVS: Zope/lib/python/Products/PageTemplates - GlobalTranslationService.py:1.1.4.2
Florent Guillaume
fg@nuxeo.com
Tue, 24 Sep 2002 11:39:59 -0400
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv20613/lib/python/Products/PageTemplates
Modified Files:
Tag: Zope-2_6-branch
GlobalTranslationService.py
Log Message:
Modified the translation service to return None if no translation exist.
So now using i18n tags without a translation service should give the
same behavior as before. The tests reflect that.
Tagged efge-before-i18n-notransserv-fix before this checkin.
=== Zope/lib/python/Products/PageTemplates/GlobalTranslationService.py 1.1.4.1 => 1.1.4.2 ===
--- Zope/lib/python/Products/PageTemplates/GlobalTranslationService.py:1.1.4.1 Wed Sep 18 10:54:11 2002
+++ Zope/lib/python/Products/PageTemplates/GlobalTranslationService.py Tue Sep 24 11:39:28 2002
@@ -17,10 +17,10 @@
"""
class DummyTranslationService:
- """Translation service that does nothing and returns the message id."""
+ """Translation service that doesn't know anything about translation."""
def translate(self, domain, msgid, mapping=None,
context=None, target_language=None):
- return msgid
+ return None
# XXX Not all of Zope.I18n.ITranslationService is implemented.
translationService = DummyTranslationService()