[Checkins] SVN: zope.tal/trunk/src/zope/tal/ Fixed handling of <i18n:...> elements for HTML

Dmitry Vasiliev dima at hlabs.spb.ru
Thu Jun 21 06:11:17 EDT 2007


Log message for revision 76888:
  Fixed handling of <i18n:...> elements for HTML

Changed:
  U   zope.tal/trunk/src/zope/tal/htmltalparser.py
  A   zope.tal/trunk/src/zope/tal/tests/input/test37.html
  A   zope.tal/trunk/src/zope/tal/tests/output/test37.html

-=-
Modified: zope.tal/trunk/src/zope/tal/htmltalparser.py
===================================================================
--- zope.tal/trunk/src/zope/tal/htmltalparser.py	2007-06-21 10:08:47 UTC (rev 76887)
+++ zope.tal/trunk/src/zope/tal/htmltalparser.py	2007-06-21 10:11:17 UTC (rev 76888)
@@ -313,6 +313,6 @@
                                     repr(keybase), self.getpos())
                 i18ndict[keybase] = value
             attrlist.append(item)
-        if namens in ('metal', 'tal'):
+        if namens in ('metal', 'tal', 'i18n'):
             taldict['tal tag'] = namens
         return name, attrlist, taldict, metaldict, i18ndict

Added: zope.tal/trunk/src/zope/tal/tests/input/test37.html
===================================================================
--- zope.tal/trunk/src/zope/tal/tests/input/test37.html	                        (rev 0)
+++ zope.tal/trunk/src/zope/tal/tests/input/test37.html	2007-06-21 10:11:17 UTC (rev 76888)
@@ -0,0 +1,3 @@
+<span xmlns:i18n="http://xml.zope.org/namespaces/i18n">
+  <i18n:block translate="">Test</i18n:block>
+</span>

Added: zope.tal/trunk/src/zope/tal/tests/output/test37.html
===================================================================
--- zope.tal/trunk/src/zope/tal/tests/output/test37.html	                        (rev 0)
+++ zope.tal/trunk/src/zope/tal/tests/output/test37.html	2007-06-21 10:11:17 UTC (rev 76888)
@@ -0,0 +1,3 @@
+<span>
+  TEST
+</span>



More information about the Checkins mailing list