[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/locales/extract.py Backport rev26202.

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Aug 11 16:10:49 EDT 2004


Log message for revision 27024:
  Backport rev26202.
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/locales/extract.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/locales/extract.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/locales/extract.py	2004-08-11 20:07:26 UTC (rev 27023)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/locales/extract.py	2004-08-11 20:10:49 UTC (rev 27024)
@@ -302,7 +302,11 @@
                     e[0], filename, e[1][0], e[1][1])
         finally:
             fp.close()            
-    # XXX: No support for domains yet :(
+    # One limitation of the Python message extractor is that it cannot
+    # determine the domain of the string, since it is not contained anywhere
+    # directly. The only way this could be done is by loading the module and
+    # inspect the '_' function. For now we simply assume that all the found
+    # strings have the domain the user specified.   
     return eater.getCatalog()
 
 def zcml_strings(dir, domain="zope"):



More information about the Zope3-Checkins mailing list