[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_control - synPropertiesForm.pt:1.5

Yvo Schubbe schubbe@web.de
Thu, 6 Mar 2003 05:36:41 -0500


Update of /cvs-repository/CMF/CMFDefault/skins/zpt_control
In directory cvs.zope.org:/tmp/cvs-serv12082/CMFDefault/skins/zpt_control

Modified Files:
	synPropertiesForm.pt 
Log Message:
Merged yuppie-collector122-branch:
- Added i18n attributes. (Collector #122)
- Made scripts independent of submit button values.
- Added transition_form.

=== CMF/CMFDefault/skins/zpt_control/synPropertiesForm.pt 1.4 => 1.5 ===
--- CMF/CMFDefault/skins/zpt_control/synPropertiesForm.pt:1.4	Tue Apr  2 19:10:34 2002
+++ CMF/CMFDefault/skins/zpt_control/synPropertiesForm.pt	Thu Mar  6 05:36:39 2003
@@ -3,7 +3,7 @@
       metal:use-macro="here/main_template/macros/master">
 <body>
 
-<div metal:fill-slot="main">      
+<div metal:fill-slot="main" i18n:domain="cmf_default">
 
 <div class="Desktop"
      tal:define="s_tool here/portal_syndication;
@@ -12,7 +12,7 @@
                  s_allowed python:s_site_allowed and s_here_allowed;
                 ">
 
-<h2>Default Syndication Properties</h2>
+<h2 i18n:translate="">Default Syndication Properties</h2>
 
 <div tal:condition="python:s_allowed">
 
@@ -23,7 +23,8 @@
   <table width="100%" border="0">
 
    <tr>
-    <th colspan="2" valign="top" align="left">Channel Properties</th>
+    <th colspan="2" valign="top" align="left"
+        i18n:translate="">Channel Properties</th>
    </tr>
 
    <tr>
@@ -35,15 +36,17 @@
 
         <table>
          <tr>
-          <td valign="top" height="30">Channel Title:  </td>
           <td valign="top" height="30"
-              tal:content="here/Title"> Title </td>
+              i18n:translate="">Channel Title:</td>
+          <td valign="top" height="30"
+              tal:content="here/Title">Title</td>
          </tr>
 
          <tr>
-          <td valign="top" height="30">Channel Description:  </td>
           <td valign="top" height="30"
-              tal:content="here/Description"> Description </td>
+              i18n:translate="">Channel Description:</td>
+          <td valign="top" height="30"
+              tal:content="here/Description">Description</td>
          </tr>
 
         </table>
@@ -60,7 +63,7 @@
   <table width="100%" border="0">
 
    <tr>
-    <th valign="top" align="left">Sy Module Properties</th>
+    <th valign="top" align="left" i18n:translate="">Sy Module Properties</th>
    </tr>
 
    <tr>
@@ -73,12 +76,12 @@
         <table>
 
          <tr>
-          <th align="left">Element</th>
-          <th align="left">Default Value</th>
+          <th align="left" i18n:translate="">Element</th>
+          <th align="left" i18n:translate="">Default Value</th>
          </tr>
 
          <tr>
-          <td> UpdatePeriod </td>
+          <td i18n:translate="">UpdatePeriod</td>
           <td>
            <select name="updatePeriod">
             <option value="hourly"
@@ -86,14 +89,15 @@
                     tal:repeat="item s_tool/buildUpdatePeriods"
                     tal:attributes="value python:item[0];
                                     selected python:item[0] == upd"
-                    tal:content="python: item[1]">Hourly
+                    tal:content="python: item[1]"
+                    i18n:translate="">Hourly
             </option>
-           </select> 
+           </select>
            </td>
          </tr>
 
          <tr>
-          <td> UpdateFrequency </td>
+          <td i18n:translate="">UpdateFrequency</td>
           <td>
            <input type="text" name="updateFrequency" size="3" value=""
                   tal:attributes="value python:s_tool.getUpdateFrequency(here)"
@@ -102,7 +106,7 @@
          </tr>
 
          <tr>
-          <td> UpdateBase </td>
+          <td i18n:translate="">UpdateBase</td>
           <td>
            <input type="text" name="updateBase:date" value="" size="25"
                   tal:attributes="value python:s_tool.getUpdateBase(here)">
@@ -110,14 +114,15 @@
          </tr>
 
          <tr>
-          <td> Max Syndicated Items </td>
+          <td i18n:translate="">Max Syndicated Items</td>
           <td>
-           <input type="text" name="max_items" value=""  size="3"            
+           <input type="text" name="max_items" value=""  size="3"
                   tal:attributes="value python:s_tool.getMaxItems(here)">
           </td>
          </tr>
          <tr>
-          <td colspan="2"><input type="submit" name="edit" value=" Save "></td>
+          <td colspan="2"><input type="submit" name="edit" value=" Save "
+                                 i18n:attributes="value"></td>
          </tr>
 
         </table>
@@ -139,7 +144,7 @@
  <form action="disableSyndication" method="post"
        tal:attributes="action string:${here/absolute_url}/disableSyndication"
  >
-  <input type="submit" value="Disable Syndication">
+  <input type="submit" value="Disable Syndication" i18n:attributes="value">
   <input type="hidden" name="isAllowed:int" value="0">
  </form>
 
@@ -150,14 +155,14 @@
  <form action="enableSyndication" method="post"
        tal:attributes="action string:${here/absolute_url}/enableSyndication"
  >
-  <input type="hidden" name="isAllowed:int" value="1"> 
-  <input type="submit" value="Enable Syndication">
+  <input type="hidden" name="isAllowed:int" value="1">
+  <input type="submit" value="Enable Syndication" i18n:attributes="value">
   </form>
 
 </div><!-- s_site_allowed and not s_here_allowed -->
 
 <div tal:condition="python:not(s_allowed)">
- <h4>Syndication is Disabled</h4>
+ <h4 i18n:translate="">Syndication is Disabled</h4>
 </div>
 
 </div><!-- class="Desktop -->