[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_content - content_status_history.pt:1.2.54.1 document_edit_form.pt:1.5.16.2 favorite_view.pt:1.3.38.1 file_edit_form.pt:1.3.26.2

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


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

Modified Files:
      Tag: yuppie-collector122-branch
	content_status_history.pt document_edit_form.pt 
	favorite_view.pt file_edit_form.pt 
Log Message:
- added i18n attributes
- closed empty tags

=== CMF/CMFDefault/skins/zpt_content/content_status_history.pt 1.2 => 1.2.54.1 ===
--- CMF/CMFDefault/skins/zpt_content/content_status_history.pt:1.2	Thu Dec  6 17:43:42 2001
+++ CMF/CMFDefault/skins/zpt_content/content_status_history.pt	Fri Feb 28 12:13:42 2003
@@ -2,40 +2,48 @@
       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"
      tal:define="review_state python: here.portal_workflow.getInfoFor(here, 'review_state');
 	 review_history python: here.portal_workflow.getInfoFor(here, 'review_history')">
-<h1>Content Item status history</h1>
 
-<div>An item's status (also called its review state) determines who can see it.
+
+<h1 i18n:translate="">Content Item status history</h1>
+
+<p i18n:translate="">An item's status (also called its review state)
+   determines who can see it.
    A <b>private</b> item can only be viewed by its Owner and by the site
    management.  Only <b>published</b> items are available to the general
    member base and anonymous visitors.  To make an item published, it
    has to be reviewed by one of the site's Reviewers.  You can request
-   that an item be reviewed by setting its status to <b>pending</b>.</div>
+   that an item be reviewed by setting its status to <b>pending</b>.</p>
 
-<div>Another way to control the visibility of an item is with its <b>effective
-   date</b>.  An item is not publicly available before its effective date,
-   <em>even if its status is <b>published</b></em>.</div>
+<p i18n:translate="">Another way to control the visibility of an item is with
+  its <b>effective date</b>. An item is not publicly available before its
+  effective date, <em>even if its status is <b>published</b></em>.</p>
 
-<h2>Current state</h2>
-This item is in <b><span tal:replace="review_state">Private</span></b> state.
+<h2 i18n:translate="">Current state</h2>
+<span tal:omit-tag="" i18n:translate="">This item is in
+<span i18n:name="status"><b tal:content="review_state"
+                            i18n:translate="">Private</b></span> state.</span>
 
 <div tal:condition="review_history|nothing">
-      <h3><strong>Reviewing history</strong></h3>
+  <h3><strong i18n:translate="">Reviewing history</strong></h3>
     <div tal:repeat="items python: here.reverseList(review_history)">
 	  <span tal:replace="python: items['time'].aCommon()" />
-	  <span tal:replace="items/action" />
-      <span tal:condition="items/effective_date|nothing">
-        (effective: <span tal:replace="python: items['effective_date'].aCommon()"></span>)
-      </span>
-     by <span tal:replace="items/actor">Actor</span><br>
+    <span tal:omit-tag="" tal:content="items/action" i18n:translate=""></span>
+    <span tal:condition="items/effective_date|nothing" i18n:translate="">
+     (effective: <span tal:replace="python: items['effective_date'].aCommon()"
+                       i18n:name="eff_date"></span>)</span>
+    <span tal:omit-tag="" i18n:translate="">by
+     <span tal:replace="items/actor" i18n:name="actor">Actor</span></span>
+    <br />
       <div tal:define="rhComments items/comments"
 		 tal:replace="rhComments">Comments</div>
     </div>
 </div>
-<div tal:condition="python: not(review_history)">This item has not had any status changes.</div>
+<div tal:condition="python: not(review_history)"
+     i18n:translate="">This item has not had any status changes.</div>
  </div>
 </div>
 </body>


=== CMF/CMFDefault/skins/zpt_content/document_edit_form.pt 1.5.16.1 => 1.5.16.2 ===
--- CMF/CMFDefault/skins/zpt_content/document_edit_form.pt:1.5.16.1	Wed Feb 26 11:18:50 2003
+++ CMF/CMFDefault/skins/zpt_content/document_edit_form.pt	Fri Feb 28 12:13:42 2003
@@ -2,63 +2,58 @@
       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">
-<h2>Edit <span tal:replace="here/getId">ID</span></h2>
+<h2 i18n:translate="">Edit <span
+    tal:replace="here/getId" i18n:name="objectid">My ID</span></h2>
 
 <form action="document_edit" method="post" enctype="multipart/form-data"
       tal:attributes="action string:${here/absolute_url}/document_edit"
 >
 
  <input type="hidden" name="SafetyBelt" value=""
-        tal:attributes="value here/SafetyBelt">
+        tal:attributes="value here/SafetyBelt" />
 
 <table class="FormLayout">
  <tr>
-  <th>
-    Title
-  </th>
+  <th i18n:translate="">Title</th>
   <td>
    <span tal:replace="here/Title">Title</span>
   </td>
  </tr>
 
  <tr>
-  <th>
-    Description
-  </th>
+  <th i18n:translate="">Description</th>
   <td>
    <span tal:replace="here/Description">Description</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> Upload </th>
+  <th i18n:translate="">Upload</th>
   <td>
-   <input type="file" name="file" size="25">
+   <input type="file" name="file" size="25" />
   </td>
  </tr>
 
  <tr>
-  <th class="TextField"> Edit </th>
+  <th class="TextField" i18n:translate="">Edit</th>
   <td class="TextField">
    <textarea name="text:text" rows="20" cols="80" wrap="soft"
                     tal:content="here/EditableBody"></textarea>
@@ -68,8 +63,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>
 


=== CMF/CMFDefault/skins/zpt_content/favorite_view.pt 1.3 => 1.3.38.1 ===
--- CMF/CMFDefault/skins/zpt_content/favorite_view.pt:1.3	Fri Jan  4 21:02:33 2002
+++ CMF/CMFDefault/skins/zpt_content/favorite_view.pt	Fri Feb 28 12:13:42 2003
@@ -20,11 +20,12 @@
 
 </div>
 
-<div metal:fill-slot="main">
+<div metal:fill-slot="main" i18n:domain="cmf_default">
 
- <p> Link: <a href=""
+ <p i18n:translate="">Link: <a href=""
               tal:attributes="href here/getRemoteUrl"
               tal:content="here/getRemoteUrl"
+              i18n:name="link"
            >/index_html</a></p>
 
  <div class="Discussion">


=== CMF/CMFDefault/skins/zpt_content/file_edit_form.pt 1.3.26.1 => 1.3.26.2 ===
--- CMF/CMFDefault/skins/zpt_content/file_edit_form.pt:1.3.26.1	Wed Feb 26 11:19:09 2003
+++ CMF/CMFDefault/skins/zpt_content/file_edit_form.pt	Fri Feb 28 12:13:42 2003
@@ -3,12 +3,13 @@
       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>
 
-<h2>Edit <span tal:replace="here/id">My ID</span></h2>
+<h2 i18n:translate="">Edit <span
+    tal:replace="here/getId" i18n:name="objectid">My ID</span></h2>
 
 <form action="file_edit" method="post" enctype="multipart/form-data"
       tal:attributes="action string:${here/absolute_url}/file_edit"
@@ -16,30 +17,32 @@
 <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>Description</th>
+  <th i18n:translate="">Description</th>
   <td> <span tal:replace="here/Description">My Description</span></td>
  </tr>
 
  <tr>
-  <th>Content type</th>
+  <th i18n:translate="">Content type</th>
   <td> <span tal:replace="here/Format">html/text</span></td>
  </tr>
 
  <tr>
-  <th>Upload file</th>
-  <td> <input type="file" name="file" size="35"> </td>
+  <th i18n:translate="">Upload file</th>
+  <td> <input type="file" name="file" size="35" /> </td>
  </tr>
 
  <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>