[Zope3-checkins] CVS: Zope3/src/zope/tal - talinterpreter.py:1.4

Nathan R. Yergler nathan@yergler.net
Tue, 25 Mar 2003 11:22:33 -0500


Update of /cvs-repository/Zope3/src/zope/tal
In directory cvs.zope.org:/tmp/cvs-serv7570

Modified Files:
	talinterpreter.py 
Log Message:
Added logging to warn when a message id is not found in the translation table.


=== Zope3/src/zope/tal/talinterpreter.py 1.3 => 1.4 ===
--- Zope3/src/zope/tal/talinterpreter.py:1.3	Tue Mar 25 10:47:32 2003
+++ Zope3/src/zope/tal/talinterpreter.py	Tue Mar 25 11:22:29 2003
@@ -18,6 +18,7 @@
 import getopt
 import re
 import sys
+import logging
 
 from cgi import escape
 # Do not use cStringIO here!  It's not unicode aware. :(
@@ -555,6 +556,9 @@
         
         if s is None:
             s = default or msgid
+
+            # log that an unknown id was found
+            logging.warn('TAL/i18n: Message id %s was not found in the translation table; using default text.' % msgid)
             
         # If there are i18n variables to interpolate into this string, better
         # do it now.