[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/locales/extract.py
Removed an XXX.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Jul 8 09:39:33 EDT 2004
Log message for revision 26202:
Removed an XXX.
This issue cannot be resolved easily, if it ever will. It would require
some major thought. I provided a lengthy, explanatory comment instead.
-=-
Modified: Zope3/trunk/src/zope/app/locales/extract.py
===================================================================
--- Zope3/trunk/src/zope/app/locales/extract.py 2004-07-08 10:42:46 UTC (rev 26201)
+++ Zope3/trunk/src/zope/app/locales/extract.py 2004-07-08 13:39:33 UTC (rev 26202)
@@ -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