[Zope-Checkins] CVS: Zope3/lib/python/Zope/I18n - IMessageCatalog.py:1.1.2.5

Jim Fulton jim@zope.com
Sat, 19 Jan 2002 15:10:29 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/I18n
In directory cvs.zope.org:/tmp/cvs-serv8765

Modified Files:
      Tag: Zope-3x-branch
	IMessageCatalog.py 
Log Message:
Needed to add an object argument so we could have a context for
looking up other services.


=== Zope3/lib/python/Zope/I18n/IMessageCatalog.py 1.1.2.4 => 1.1.2.5 ===
     """
 
-    def translateSequence(source_sequence,
-                          context=None,
+    def translateSequence(object, context, source_sequence,
                           destination_language_tag=None):
         """Translate a source sequence that represents text with interpolation
 
+        The source sequence is translated for an object, which
+        provides a place setting language negotiation policies, and a
+        context, which represents a client, such as a web browser,
+        with which there are language preferences.
+
         The source sequence is a sequence of text and IVariable
         object. The IVariable objects define interpolation names for
         data to be interpolated during or after translation.
@@ -54,3 +58,8 @@
         A sequence is returned including translated text and IVariable
         objects. 
         """
+
+
+
+
+