[MKDoc-commit] I18n updates [1.8]

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Wed Apr 13 11:30:48 BST 2005


Log Message:
-----------
I18n updates [1.8]

Modified Files:
--------------
    mkd/resources/templates/editor/html:
        en.html

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/resources/templates/editor/html/en.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -Lresources/templates/editor/html/en.html -Lresources/templates/editor/html/en.html -u -r1.8 -r1.9
--- resources/templates/editor/html/en.html
+++ resources/templates/editor/html/en.html
@@ -1,33 +1,69 @@
 <!--?
 
+  Edit HTML Component Fragment
+  ============================
+
+  This template is used for the editor interface of a 
+  html component. 
+
+  $Id$
+
+
+  Author: Jean-Michel Hiver, Chris Croome <chris at webarchitects.co.uk>
+  Copyright: (c) 2005, MKDoc Ltd.
+
+  This file is part of MKDoc. 
+  
+  MKDoc is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+  
+  MKDoc is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+  
+  You should have received a copy of the GNU General Public License
+  along with MKDoc; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-This template is used for the editor interface of a 
-html component. 
   
 ?-->
 <fieldset
   class="html-component"
   xmlns:petal="http://purl.org/petal/1.0/"
-  petal:define="dir              self/direction;
-                align            self/align;
-                align_opposite   self/align_opposite;
-                name_move_up     string:${self/block_name}_up;
+  xmlns:metal="http://xml.zope.org/namespaces/metal"
+  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+  i18n:domain="mkdoc"
+  petal:define="name_move_up     string:${self/block_name}_up;
                 name_move_down   string:${self/block_name}_down;
                 name_delete      string:${self/block_name}_delete"
   ondblclick="window.location='./#component-${self/name_noext}'"
 >
 
-  <legend
-    xml:lang="en"
-    lang="en"
-    dir="ltr"
-  ><a 
-     name="component-${self/name_noext}" 
-     id="component-${self/name_noext}"
-  >HTML component</a></legend>
+<!--?
+  petal:define="dir              self/direction;
+                align            self/align;
+                align_opposite   self/align_opposite;
+?-->
+
+  <legend>
+    <a 
+      xml:lang="en"
+      lang="en"
+      dir="ltr"
+      name="component-${self/name_noext}" 
+      id="component-${self/name_noext}"
+      i18n:attributes="xml:lang two-letter-language-code;
+                       lang     two-letter-language-code;
+                       dir      text-direction;"
+      i18n:translate="html-component"
+    >HTML component</a>
+  </legend>
 
     <div
-      petal:condition="self/has_errors"
+      petal:condition="true: self/has_errors"
       petal:repeat="error self/errors"
     >
       <p  
@@ -35,6 +71,10 @@
         lang="en"
         dir="ltr"
         class="error"
+        i18n:attributes="xml:lang two-letter-language-code;
+                         lang     two-letter-language-code;
+                         dir      text-direction;"
+        i18n:translate="html-tidy-error"
         petal:condition="error/is --component/html/untidy"
       >
         HTML tidy cannot fix this HTML because it is too invalid.
@@ -44,86 +84,112 @@
     <p
       class="up"
     >
-      <label
-        for="html_up"
+
+      <input
+        type="submit"
+        name="file_up"
+        id="file_up"
+        value="Up"
         xml:lang="en"
         lang="en"
         dir="ltr"
-        petal:attributes="for name_move_up"
-      >
-        Move component
-      </label>
-
+        title="Move this component up."
+        petal:attributes="name name_move_up; 
+                          id   name_move_up"
+        i18n:attributes="xml:lang two-letter-language-code;
+                         lang     two-letter-language-code;
+                         dir      text-direction;
+                         title    move-component-up;
+                         value    up;"
+      />
       <input
         type="submit"
-        name="html_up" 
-        id="html_up"
+        name="file_down"
+        id="file_down"
+        value="Down"
         xml:lang="en"
         lang="en"
         dir="ltr"
-        value="Up"
-        title="Move this component up."
-        petal:attributes="name name_move_up; id name_move_up"
+        title="Move this component down."
+        petal:attributes="name name_move_down; 
+                          id   name_move_down"
+        i18n:attributes="xml:lang two-letter-language-code;
+                         lang     two-letter-language-code;
+                         dir      text-direction;
+                         title    move-component-down;
+                         value    Down;"
       />
+
     </p>
 
-    <p>
+    <p
+      class="widefield"
+    >
+      <label
+        for="html_id"
+        lang="en"
+        xml:lang="en"
+        dir="ltr"
+        petal:attributes="for self/block_name"
+        i18n:attributes="xml:lang two-letter-language-code;
+                         lang     two-letter-language-code;
+                         dir      text-direction;"
+        i18n:translate="html-formatted-text"
+      >HTML formatted text</label>
       <em
         class="help"
         xml:lang="en"
         lang="en"
         dir="ltr"
+        i18n:attributes="xml:lang two-letter-language-code;
+                         lang     two-letter-language-code;
+                         dir      text-direction;"
+        i18n:translate="html-component-help"
       >
         You can enter HTML into this form. Please use link components for hyperlinks. 
         <a
-          href="http://mkdoc.com/help/1/documents/content/html/"
+          xml:lang="en"
+          lang="en"
+          dir="ltr"
+          i18n:attributes="xml:lang two-letter-language-code;
+                           lang     two-letter-language-code;
+                           dir      text-direction;"
+          href="http://www.mkdoc.org/docs/old/1-0/documents/content/html/"
+          i18n:translate="html-component-help"
+          i18n:name="html-help-on-mkdoc-org"
         >HTML Help on the MKDoc web site.</a>
       </em>
-      <label
-        for="html_id"
-        lang="en"
-        xml:lang="en"
-        dir="ltr"
-        petal:attributes="for self/block_name"
-      >HTML formatted text</label>
-      <br />
       <textarea
         name="html_id"
         id="html_id"
         rows="12"
         cols="45"
-        class="adminform"
         title="Enter HTML code here."
-        petal:attributes="name self/block_name; id self/block_name"
+        style="width: 85%"
+        petal:attributes="name self/block_name; 
+                          id   self/block_name"
         petal:content="self/data" 
-      >&lt;p&gt;HTML formatted data.&lt;/p&gt;</textarea>
+      ></textarea>
     </p>
 
-    <p>
-      <input
-        type="submit"
-        name="html_delete"
-        id="html_delete"
-        value="Delete Component"
-        xml:lang="en"
-        lang="en"
-        dir="ltr"
-        title="Delete this component."
-        petal:attributes="name name_delete; id name_delete"
-      />
-      <bdo
-        dir="ltr"
-        petal:atributes="dir self/direction"
-        petal:condition="self/is_saved"
-      >|</bdo>
+    <p
+      class="down"
+    >
+
       <a 
         href="#" 
         xml:lang="en"
         lang="en"
         dir="ltr"
+        title="Copy this component to another document."
         petal:attributes="href string:${self/mkdoc_uri},copy"
+        i18n:attributes="xml:lang two-letter-language-code;
+                         lang     two-letter-language-code;
+                         dir      text-direction;
+                         title    copy-to-another-document;"
+        i18n:translate="copy-elsewhere"
         petal:condition="self/is_saved"
-      >Copy to another document</a> 
+      >Copy elsewhere</a>
       <bdo
         dir="ltr"
         petal:atributes="dir self/direction"
@@ -134,39 +200,39 @@
         xml:lang="en"
         lang="en"
         dir="ltr"
+        title="Move this component to another document."
         petal:attributes="href string:${self/mkdoc_uri},move"
+        i18n:attributes="xml:lang two-letter-language-code;
+                         lang     two-letter-language-code;
+                         dir      text-direction;
+                         title    move-to-another-document;"
+        i18n:translate="move-elsewhere"
         petal:condition="self/is_saved"
-      >Move to another document</a>
-    </p>
-
-
-    <p
-      class="down"
-    >
-
-      <label
-        for="html_down"
-        xml:lang="en"
-        lang="en"
+      >Move elsewhere</a>
+      <bdo
         dir="ltr"
-        petal:attributes="for name_move_down"
-      >
-        Move component
-      </label>
-
+        petal:atributes="dir self/direction"
+        petal:condition="self/is_saved"
+      >|</bdo>
       <input
         type="submit"
-        name="html_down"
-        id="html_down"
-        value="Down"
+        name="delete"
+        id="delete"
+        value="Delete"
         xml:lang="en"
         lang="en"
         dir="ltr"
-        title="Move this component down."
-        petal:attributes="name name_move_down; id name_move_down"
+        title="Delete this component."
+        petal:attributes="name name_delete; 
+                          id   name_delete"
+        i18n:attributes="xml:lang two-letter-language-code;
+                         lang     two-letter-language-code;
+                         dir      text-direction;
+                         value    delete;
+                         title    delete-component;"
       />
-
     </p>
 
+
 </fieldset>
 


More information about the MKDoc-commit mailing list