[Zope3-checkins] CVS: Zope3/src/zope/i18n/interfaces - __init__.py:1.4

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Feb 27 17:25:54 EST 2004


Update of /cvs-repository/Zope3/src/zope/i18n/interfaces
In directory cvs.zope.org:/tmp/cvs-serv19338/src/zope/i18n/interfaces

Modified Files:
	__init__.py 
Log Message:
I must have been on sleep-derivation when originally writing the Translator 
code, which was horribly broken.

Fixed everything and updated the engine to do the right thing too.


=== Zope3/src/zope/i18n/interfaces/__init__.py 1.3 => 1.4 ===
--- Zope3/src/zope/i18n/interfaces/__init__.py:1.3	Fri Feb 27 12:48:42 2004
+++ Zope3/src/zope/i18n/interfaces/__init__.py	Fri Feb 27 17:25:23 2004
@@ -152,7 +152,7 @@
     the domain, context, and target language.
     """
 
-    def translate(msgid, mapping=None):
+    def translate(msgid, mapping=None, default=None):
         """Translate the source msgid using the given mapping.
 
         See ITranslationService for details.




More information about the Zope3-Checkins mailing list