[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_content - metadata_edit_form.pt:1.5.24.1 newsitem_edit_form.pt:1.5.16.2

Yvo Schubbe schubbe@web.de
Fri, 28 Feb 2003 12:14:37 -0500


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

Modified Files:
      Tag: yuppie-collector122-branch
	metadata_edit_form.pt newsitem_edit_form.pt 
Log Message:
- added i18n attributes
- closed empty tags

=== CMF/CMFDefault/skins/zpt_content/metadata_edit_form.pt 1.5 => 1.5.24.1 ===
--- CMF/CMFDefault/skins/zpt_content/metadata_edit_form.pt:1.5	Sat Jun 29 17:54:30 2002
+++ CMF/CMFDefault/skins/zpt_content/metadata_edit_form.pt	Fri Feb 28 12:14:36 2003
@@ -2,16 +2,16 @@
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       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">
 
 
 <span tal:replace="request/message"
-   tal:condition="request/message|nothing"><hr></span>
+   tal:condition="request/message|nothing"><hr /></span>
 
 <div class="Metadata">
 
-<h2>Standard Resource Metadata </h2>
+<h2 i18n:translate="">Standard Resource Metadata</h2>
 
 <form action="metadata_edit" method="post"
       tal:attributes="action string:${here/absolute_url}/metadata_edit"
@@ -20,23 +20,25 @@
 
  <tr valign="top">
 
-  <th>
-    Enable Discussion?
-  </th>
+  <th i18n:translate="">Enable Discussion?</th>
   <td>
     <select name="allowDiscussion"
             tal:define="val here/isDiscussable">
         <option value="None"
-                tal:attributes="selected python: val == None"> Default </option>
+                tal:attributes="selected python: val == None"
+                i18n:translate="">Default</option>
         <option value="0"
-                tal:attributes="selected python: val == 0"> Off </option>
+                tal:attributes="selected python: val == 0"
+                i18n:translate="">Off</option>
         <option value="1"
-                tal:attributes="selected python: val == 1"> On </option>
+                tal:attributes="selected python: val == 1"
+                i18n:translate="">On</option>
      </select>
   </td>
   <td colspan="2" align="right">
    <a href="full_metadata_edit_form"
       tal:attributes="href string:${here/absolute_url}/full_metadata_edit_form"
+      i18n:translate=""
      >Edit all metadata</a>
   </td>
 
@@ -44,27 +46,27 @@
 
  <tr valign="top">
 
-  <th align="right"> Identifier </th>
+  <th align="right" i18n:translate="">Identifier</th>
   <td colspan="3"> <span tal:replace="here/Identifier" /> </td>
 
  </tr>
 
  <tr valign="top">
 
-  <th align="right"> Title </th>
+  <th align="right" i18n:translate="">Title</th>
   <td colspan="3">
    <input type="text"
           name="title"
           value=""
           size="65"
-		  tal:attributes="value here/Title">
+          tal:attributes="value here/Title" />
   </td>
 
  </tr>
 
  <tr valign="top">
 
-  <th align="right"> Description </th>
+  <th align="right" i18n:translate="">Description</th>
   <td colspan="3">
    <textarea name="description:text" rows="5"
              cols="65" wrap="soft"
@@ -74,12 +76,12 @@
  </tr>
 
  <tr valign="top">
-       <th align="right"> Subject </th>
+       <th align="right" i18n:translate="">Subject</th>
   <td tal:define="subj_lines python: modules['string'].join(
                                          here.subjectsList(), '\n' )">
      <textarea name="subject:lines" rows="3" cols="20"
 	           tal:content="subj_lines"></textarea>
- <br> 
+   <br />
    <select name="subject:list" multiple>
      <option value=""
 		   tal:define="items python: here.portal_metadata.listAllowedSubjects(
@@ -90,16 +92,23 @@
 		   tal:attributes="value item; selected python: item in subjects"
 		   tal:content="item">
       </option>
-    </select> 
+    </select>
   </td>
 
-  <th align="right"> Format </th>
-  <td> <input type="text" name="format" value="" tal:attributes="value here/Format">
-  <br> <input type="submit" name="change" value=" Change ">
-  <br> <input type="submit" name="change_and_edit" value=" Change & Edit ">
-  <br> <input type="submit" name="change_and_view" value=" Change & View ">
+  <th align="right" i18n:translate="">Format</th>
+  <td>
+   <input type="text" name="format" value=""
+          tal:attributes="value here/Format" />
+   <br />
+   <input type="submit" name="change" value=" Change "
+          i18n:attributes="value" />
+   <br />
+   <input type="submit" name="change_and_edit" value=" Change & Edit "
+          i18n:attributes="value" />
+   <br />
+   <input type="submit" name="change_and_view" value=" Change & View "
+          i18n:attributes="value" />
   </td>
-
  </tr>
 
 </table>


=== CMF/CMFDefault/skins/zpt_content/newsitem_edit_form.pt 1.5.16.1 => 1.5.16.2 ===
--- CMF/CMFDefault/skins/zpt_content/newsitem_edit_form.pt:1.5.16.1	Wed Feb 26 11:19:46 2003
+++ CMF/CMFDefault/skins/zpt_content/newsitem_edit_form.pt	Fri Feb 28 12:14:36 2003
@@ -2,16 +2,17 @@
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       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">
 
 
 <span tal:replace="request/message"
-   tal:condition="request/message|nothing"><hr></span>
+   tal:condition="request/message|nothing"><hr /></span>
 
 <div class="NewsItem">
 
-<h2>Edit <span tal:replace="here/getId">My ID</span></h2>
+<h2 i18n:translate="">Edit <span
+    tal:replace="here/getId" i18n:name="objectid">My ID</span></h2>
 
 <form action="newsitem_edit" method="post"
       tal:attributes="action string:${here/absolute_url}/newsitem_edit"
@@ -19,39 +20,35 @@
 <table class="FormLayout">
 
  <tr>
-  <th> Title
-  </th>
+  <th i18n:translate="">Title</th>
   <td> <span tal:replace="here/Title">My Title</span> </td>
  </tr>
 
  <tr>
-  <th>
-   Format
-  </th>
+  <th i18n:translate="">Format</th>
   <td>
    <input type="radio" name="text_format"
                      value="structured-text"
                      tal:attributes="checked python: path('here/text_format') == 'structured-text'" />
-   <label for="cb_structuredtext">structured-text</label>
+   <label for="cb_structuredtext" i18n:translate="">structured-text</label>
    <input type="radio" name="text_format" value="plain"
           tal:attributes="checked python: path('here/text_format') == 'plain'" />
-   <label for="cb_html">plain text</label>
+   <label for="cb_html" i18n:translate="">plain text</label>
    <input type="radio" name="text_format" value="html"
           tal:attributes="checked python: path('here/text_format') == 'html'" />
-   <label for="cb_html">html</label>
+   <label for="cb_html" i18n:translate="">html</label>
   </td>
  </tr>
 
  <tr>
-  <th class="TextField"> Lead-in </th>
+  <th class="TextField" i18n:translate="">Lead-in</th>
   <td class="TextField">
-   <textarea name="description:text" rows="10" wrap="soft"  
+   <textarea name="description:text" rows="10" wrap="soft"
              cols="65" tal:content="here/Description"></textarea>
   </td>
  </tr>
  <tr>
-  <th class="TextField"> Body
-  </th>
+  <th class="TextField" i18n:translate="">Body</th>
   <td class="TextField">
    <textarea name="text:text" rows="20" cols="65" wrap="soft"
              tal:content="here/EditableBody"></textarea>
@@ -61,8 +58,10 @@
  <tr>
   <td> <br /> </td>
   <td>
-   <input type="submit" name="change" value=" Change " />
-   <input type="submit" name="change_and_view" value=" Change and View " />
+   <input type="submit" name="change" value=" Change "
+          i18n:attributes="value" />
+   <input type="submit" name="change_and_view" value=" Change and View "
+          i18n:attributes="value" />
   </td>
  </tr>