[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/widget_macros.pt Provide a nonexistent domain for the template to avoid having zpt put

Jim Fulton jim at zope.com
Tue Nov 8 17:57:42 EST 2005


Log message for revision 39989:
  Provide a nonexistent domain for the template to avoid having zpt put
  all labels and hints without domains into the zope domain.
  

Changed:
  U   Zope3/trunk/src/zope/app/form/browser/widget_macros.pt

-=-
Modified: Zope3/trunk/src/zope/app/form/browser/widget_macros.pt
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/widget_macros.pt	2005-11-08 22:55:56 UTC (rev 39988)
+++ Zope3/trunk/src/zope/app/form/browser/widget_macros.pt	2005-11-08 22:57:41 UTC (rev 39989)
@@ -1,4 +1,4 @@
-<html>
+<html i18n:domain="want an empty string, but zpt would ignore it :(">
   <body>
     <metal:block define-macro="widget_rows">
       <div class="row" tal:repeat="widget view/widgets">
@@ -6,10 +6,13 @@
           <div class="label">
             <label for="field.name" title="The widget's hint"
               tal:attributes="for widget/name; title widget/hint"
-              tal:content="widget/label" i18n:translate="">The Label</label>
+              tal:content="widget/label" i18n:translate=""
+              >The Label</label>
           </div>
           <tal:block define="error widget/error"
-            condition="error" content="structure error" i18n:translate="">
+            condition="error" content="structure error"
+            i18n:translate=""
+            >
             The Error
           </tal:block>
           <div class="field" tal:content="structure widget">



More information about the Zope3-Checkins mailing list