[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - folder_localrole_form.pt:1.4.18.1 folder_rename_form.pt:1.5.26.1 index_html_utils.html:1.2.20.1

Yvo Schubbe schubbe@web.de
Thu, 27 Feb 2003 19:28:11 -0500


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

Modified Files:
      Tag: yuppie-collector122-branch
	folder_localrole_form.pt folder_rename_form.pt 
	index_html_utils.html 
Log Message:
- added i18n attributes
- closed empty tags

=== CMF/CMFDefault/skins/zpt_generic/folder_localrole_form.pt 1.4 => 1.4.18.1 ===
--- CMF/CMFDefault/skins/zpt_generic/folder_localrole_form.pt:1.4	Thu Oct 17 15:38:36 2002
+++ CMF/CMFDefault/skins/zpt_generic/folder_localrole_form.pt	Thu Feb 27 19:28:07 2003
@@ -6,12 +6,13 @@
      tal:define="searching python: request.get('role_submit', None );
                  mtool here/portal_membership;
                 "
+     i18n:domain="cmf_default"
 >
 
 <div tal:condition="python: not searching">
 <!-- Search -->
 
-<h2>Assign local roles: Search Members</h2>
+<h2 i18n:translate="">Assign local roles: Search Members</h2>
 
 <form method="post" action="folder_localrole_form"
       tal:attributes="action string:${here/absolute_url}/folder_localrole_form"
@@ -19,21 +20,24 @@
 
 <table class="FormLayout">
  <tr>
-  <th>Search by</th>
+  <th i18n:translate="">Search by</th>
   <td>
     <select name="search_param">
-      <option value="username">User Name</option>
-      <option value="email">Email Address</option>
+      <option value="username" i18n:translate="">User Name</option>
+      <option value="email" i18n:translate="">Email Address</option>
     </select>
   </td>
  </tr>
  <tr>
-   <th>Search Term</th>
-   <td><input type="text" name="search_term" size="30"></td>
+   <th i18n:translate="">Search Term</th>
+   <td><input type="text" name="search_term" size="30" /></td>
  </tr>
  <tr>
    <td><br /></td>
-   <td><input type="submit" name="role_submit" value=" Search "></td>
+   <td>
+    <input type="submit" name="role_submit" value=" Search "
+           i18n:attributes="value" />
+   </td>
  </tr>
 </table>
 
@@ -42,7 +46,7 @@
 
 <!-- End search -->
 </div>
- 
+
 <div tal:condition="searching"
      tal:define="search_param python: request.get( 'search_param', '' );
                  search_term  python: request.get( 'search_term', '' );
@@ -52,31 +56,31 @@
                 "
 >
 <!-- Assignment -->
- 
-<h2>Assign local roles: Search Results</h2>
+
+<h2 i18n:translate="">Assign local roles: Search Results</h2>
 
 <div tal:condition="found">
 
- <p>Select Member(s) and a role to assign:</p>
+ <p i18n:translate="">Select Member(s) and a role to assign:</p>
 
  <form method="post" action="folder_localrole_edit"
        tal:attributes="action string:${here/absolute_url}/folder_localrole_edit"
  >
-  <input type="hidden" name="change_type" value="add">
+  <input type="hidden" name="change_type" value="add" />
 
   <table class="FormLayout">
 
    <tr>
-    <td width="16"><br></td>
-    <th style="text-align:left;">User</th>
-    <th style="text-align:left;">Email address</th>
+    <td width="16"><br /></td>
+    <th style="text-align:left;" i18n:translate="">User</th>
+    <th style="text-align:left;" i18n:translate="">Email address</th>
    </tr>
 
    <tr tal:repeat="member found">
     <td width="16">
-     <input type="checkbox" name="member_ids:list" 
+     <input type="checkbox" name="member_ids:list"
             value=""
-            tal:attributes="value member/username">
+            tal:attributes="value member/username" />
     </td>
     <td tal:content="member/username"> Username 1 </td>
     <td tal:content="member/email"> Email 1 </td>
@@ -84,18 +88,18 @@
 
    <tr tal:condition="nothing">
     <td width="16">
-     <input type="checkbox" name="member_ids:list" value="">
+     <input type="checkbox" name="member_ids:list" value="" />
     </td>
     <td> Username 2 </td>
     <td> Email 2 </td>
    </tr>
 
    <tr>
-    <td colspan="3"><br></td>
+    <td colspan="3"><br /></td>
    </tr>
 
    <tr>
-    <th colspan="2">Role to assign:</th>
+    <th colspan="2" i18n:translate="">Role to assign:</th>
     <td>
      <select name="member_role"
              tal:define="roles python: mtool.getCandidateLocalRoles( here )">
@@ -108,12 +112,14 @@
    </tr>
 
    <tr>
-    <td colspan="3"><br></td>
+    <td colspan="3"><br /></td>
    </tr>
 
    <tr>
-    <td width="16"><br></td>
-    <td colspan="2"><input type="submit" value=" Assign Roles "></td>
+    <td width="16"><br /></td>
+    <td colspan="2">
+     <input type="submit" value=" Assign Roles " i18n:attributes="value" />
+    </td>
    </tr>
 
   </table>
@@ -122,31 +128,30 @@
 </div>
 
 <div tal:condition="python: not found">
-
- <p> Sorry, no members matched your search. </p>
-
+ <p i18n:translate="">Sorry, no members matched your search.</p>
 </div>
 
 <!-- End assignment -->
 </div>
 
-<hr>
+<hr />
 
-<h2>Currently assigned local roles</h2>
+<h2 i18n:translate="">Currently assigned local roles</h2>
 
-<p>These users currently have local roles assigned in this folder:</p>
+<p i18n:translate="">These users currently have local roles assigned in this
+  folder:</p>
 
 <form method="post" action="folder_localrole_edit"
       tal:attributes="action string:${here/absolute_url}/folder_localrole_edit"
 >
- <input type="hidden" name="change_type" value="delete">
- <input type="hidden" name="member_role" value="">
+ <input type="hidden" name="change_type" value="delete" />
+ <input type="hidden" name="member_role" value="" />
 
  <table class="FormLayout" tal:define="lroles here/get_local_roles">
  <tr>
-   <td width="16"><br></td>
-   <th style="text-align:left;">User</th>
-   <th style="text-align:left;">Role(s)</th>
+   <td width="16"><br /></td>
+   <th style="text-align:left;" i18n:translate="">User</th>
+   <th style="text-align:left;" i18n:translate="">Role(s)</th>
  </tr>
 
  <tbody tal:repeat="role_tuple lroles">
@@ -160,9 +165,8 @@
    <input type="checkbox" name="member_ids:list"
           value="id"
           tal:attributes="value user_name"
-          tal:condition="python: user_name != auth_name"
-   >
-   <br tal:condition="python: user_name == auth_name">
+          tal:condition="python: user_name != auth_name" />
+   <br tal:condition="python: user_name == auth_name" />
   </td>
   <td tal:content="user_name"> Username 1 </td>
   <td tal:content="python: modules['string'].join( roles, ', ' )">
@@ -173,7 +177,7 @@
 
  <tr tal:condition="nothing">
   <td width="16">
-   <input type="checkbox" name="member_ids:list" value="id">
+   <input type="checkbox" name="member_ids:list" value="id" />
   </td>
   <td> Username 2 </td>
   <td> Role3 </td>
@@ -181,19 +185,21 @@
 
  <tr tal:condition="nothing">
   <td width="16">
-   <br>
+   <br />
   </td>
   <td> Auth username </td>
   <td> Role1, Role2, Role3 </td>
  </tr>
 
  <tr>
-  <td colspan="3"><br></td>
+  <td colspan="3"><br /></td>
  </tr>
 
  <tr>
-   <td><br></td>
-   <td colspan="2"><input type="submit" value=" Delete "></td>
+   <td><br /></td>
+   <td colspan="2">
+    <input type="submit" value=" Delete " i18n:attributes="value" />
+   </td>
  </tr>
 
 </table>


=== CMF/CMFDefault/skins/zpt_generic/folder_rename_form.pt 1.5 => 1.5.26.1 ===
--- CMF/CMFDefault/skins/zpt_generic/folder_rename_form.pt:1.5	Thu May 23 08:28:09 2002
+++ CMF/CMFDefault/skins/zpt_generic/folder_rename_form.pt	Thu Feb 27 19:28:07 2003
@@ -2,44 +2,46 @@
       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">
 
-<h3> Rename Items </h3>
+<h3 i18n:translate="">Rename Items</h3>
 
 <div tal:condition="here/folder_rename_items" >
 
-<form action="folder_rename" method="POST"
+<form action="folder_rename" method="post"
       tal:attributes="action string:${here/absolute_url}/folder_rename"
 >
 
  <table class="FormLayout">
 
   <tr tal:repeat="item here/folder_rename_items">
- 
+
     <td align="left" valign="top" width="8%">
       <span tal:replace="structure item/iconHTML">Type Image</span>
     </td>
-   
+
     <td align="left" valign="top" width="20%" nowrap>
       <span tal:replace="item/getId">ID</span>
       <input type="hidden" name="ids:list" value=""
-             tal:attributes="value item/getId">
+             tal:attributes="value item/getId" />
     </td>
 
     <td align="left" valign="top" width="5%">
-      <strong>to</strong>
+      <strong i18n:translate="">to</strong>
     </td>
 
     <td align="left" valign="top">
       <input type="text" name="new_ids:list" value=""
-             tal:attributes="value item/getId" size="20">
+             tal:attributes="value item/getId" size="20" />
     </td>
   </tr>
 
   <tr>
-    <td colspan="4"> <input type="submit" value=" Ok "> </td>
+    <td colspan="4">
+      <input type="submit" value=" Ok " i18n:attributes="value" />
+    </td>
   </tr>
 
  </table>
@@ -50,11 +52,11 @@
 
 <div tal:condition="not: here/folder_rename_items">
 
-<form action="folder_contents" method="GET"
+<form action="folder_contents" method="get"
       tal:attributes="action string:${here/absolute_url}/folder_contents"
 >
-  <p>You must select one or more items to rename.</p>
-  <input type="submit" value=" Ok ">
+  <p i18n:translate="">You must select one or more items to rename.</p>
+  <input type="submit" value=" Ok " i18n:attributes="value" />
 </form>
 </div>
 


=== CMF/CMFDefault/skins/zpt_generic/index_html_utils.html 1.2 => 1.2.20.1 ===
--- CMF/CMFDefault/skins/zpt_generic/index_html_utils.html:1.2	Thu Jul 25 10:48:46 2002
+++ CMF/CMFDefault/skins/zpt_generic/index_html_utils.html	Thu Feb 27 19:28:07 2003
@@ -9,7 +9,7 @@
 
 </div>
 
-<div metal:define-macro="index_content">
+<div metal:define-macro="index_content" i18n:domain="cmf_default">
 
   <div tal:define="auth_filter nocall: modules/ZTUtils/LazyFilter;
                    default_types python:( 'Document'
@@ -25,7 +25,7 @@
                   ">
   <div tal:condition="items">
 
-  <h4> Content </h4>
+  <h4 i18n:translate=""> Content </h4>
 
   <ul>
    <li tal:repeat="item items">
@@ -33,7 +33,8 @@
       align="middle" border="0"
       tal:attributes="src   string:${item/portal_url}/${item/getIcon};
                       alt   string:${item/Type};
-                      title string:${item/Type}"></a>
+                      title string:${item/Type}"
+      i18n:attributes="alt title" /></a>
     <a href="item_url" tal:attributes="href item/absolute_url"
        tal:content="item/Title"> Title </a>
      <blockquote tal:condition="exists: item/Description"
@@ -49,7 +50,7 @@
 </div>
 
 
-<div metal:define-macro="index_links">
+<div metal:define-macro="index_links" i18n:domain="cmf_default">
 
   <div tal:define="auth_filter nocall: modules/ZTUtils/LazyFilter;
                    default_types python:( 'Link'
@@ -62,7 +63,7 @@
                    items python: auth_filter( raw_items, skip='View' );
                   ">
   <div tal:condition="items">
-  <h4> Related Resources </h4>
+  <h4 i18n:translate=""> Related Resources </h4>
 
   <ul>
    <li tal:repeat="item items">
@@ -70,7 +71,8 @@
       align="middle" border="0"
       tal:attributes="src   string:${item/portal_url}/${item/getIcon};
                       alt   string:${item/Type};
-                      title string:${item/Type}"></a>
+                      title string:${item/Type}"
+      i18n:attributes="alt title" /></a>
     <a href="item_url" tal:attributes="href item/absolute_url"
        tal:content="item/Title"> Title </a>
      <blockquote tal:condition="exists: item/Description"
@@ -85,11 +87,11 @@
 
 </div>
 
-<div metal:define-macro="index_folders">
+<div metal:define-macro="index_folders" i18n:domain="cmf_default">
 
   <div tal:define="auth_filter nocall: modules/ZTUtils/LazyFilter;
                    default_types python:( 'Folder'
-                                        , 
+                                        ,
                                         );
                    types types | here/show_folder_types | default_types;
                    raw_items python: here.contentValues(
@@ -97,7 +99,7 @@
                    items python: auth_filter( raw_items, skip='View' );
                   ">
   <div tal:condition="items">
-  <h4> Folders </h4>
+  <h4 i18n:translate=""> Folders </h4>
 
   <ul>
    <li tal:repeat="item items">
@@ -105,7 +107,8 @@
       align="middle" border="0"
       tal:attributes="src   string:${item/portal_url}/${item/getIcon};
                       alt   string:${item/Type};
-                      title string:${item/Type}"></a>
+                      title string:${item/Type}"
+      i18n:attributes="alt title" /></a>
     <a href="item_url" tal:attributes="href item/absolute_url"
        tal:content="item/TitleOrId"> Title </a>
      <blockquote tal:condition="exists: item/Description"
@@ -120,7 +123,7 @@
 
 </div>
 
-<div metal:define-macro="news_box">
+<div metal:define-macro="news_box" i18n:domain="cmf_default">
 
  <table class="NewsItems"
         cellspacing="0"
@@ -136,28 +139,28 @@
 		            global batch python:Batch(news, 10, 0, orphan=1)">
   <tr>
    <td class="NewsBorder" width="1" rowspan="13" bgcolor="#6699CC">
-    <img src="spacer.gif" alt=" " width="1" height="2" border="0">
+    <img src="spacer.gif" alt=" " width="1" height="2" border="0" />
    </td>
    <td valign="top" class="NewsTitle" width="100%">
-     <b>News</b>
+     <b i18n:translate="">News</b>
    </td>
   </tr>
   <tr class="NewsItemRow" tal:condition="news"
       tal:repeat="news batch">
    <td valign="top" wrap>
     <a href="" tal:attributes="href python:news.getURL()"
-       tal:content="news/Title"></a><br>
+       tal:content="news/Title"></a><br />
     <span tal:replace="news/Date">Date</span>
    </td>
   </tr>
   <tr class="NewsItemRow" tal:condition="python:not(news)">
-   <td valign="top">
+   <td valign="top" i18n:translate="">
      No news is no news.
    </td>
   </tr>
   <tr class="NewsItemRow">
    <td>
-     <a href="recent_news">More...</a>
+     <a href="recent_news" i18n:translate="">More...</a>
    </td>
   </tr>
 </tbody>