[MKDoc-commit] Added i18n stuff
chris at mkdoc.demon.co.uk
chris at mkdoc.demon.co.uk
Thu Apr 7 13:02:08 BST 2005
Log Message:
-----------
Added i18n stuff
Modified Files:
--------------
mkd/resources/templates/editor/box:
en.html
-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/resources/templates/editor/box/en.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lresources/templates/editor/box/en.html -Lresources/templates/editor/box/en.html -u -r1.1 -r1.2
--- resources/templates/editor/box/en.html
+++ resources/templates/editor/box/en.html
@@ -1,43 +1,78 @@
<!--?
+ New Component Fragment
+ ======================
-This template is used for the add a new component interface on the
-document content editor interface.
+ This template is used for the add a new component interface on the
+ document content editor interface.
+
+ It would be good if the name attributes used could be changed so that
+ they dodn't start with a _ for (X)HTML validity...
+
+ $Id$
+
+
+ Author: Chris Croome <chris at webarchitects.co.uk>
+ Copyright: (c) 2004, 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
+
+
?-->
<fieldset
class="new-component"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:petal="http://purl.org/petal/1.0/"
+ xmlns:metal="http://xml.zope.org/namespaces/metal"
+ xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+ i18n:domain="mkdoc"
>
- <legend
- xml:lang="en"
- lang="en"
- dir="ltr"
- >Add new component(s)</legend>
-
- <!--?
- It would be good if the names that follow could be changed so that they didn't
- start with a _ for (X)HTML validity...
- ?-->
-
- <p
- xml:lang="en"
- lang="en"
- dir="ltr"
- align="left"
- petal:attributes="align align"
- >
+ <legend>
+ <a
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
+ name="add-new-component"
+ id="add-new-component"
+ i18n:attributes="xml:lang two-letter-language-code;
+ lang two-letter-language-code;
+ dir text-direction;"
+ i18n:translate="add-new-component"
+ >Add new component(s)</a>
+ </legend>
+
+ <p>
<label
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
for="_new_component_amount"
- title="The number of components to add."
+ i18n:attributes="xml:lang two-letter-language-code;
+ lang two-letter-language-code;
+ dir text-direction;"
+ i18n:translate="number"
>Number</label>
<select
name="_new_component_amount"
id="_new_component_amount"
title="Select the number of components to add."
+ i18n:attributes="title select-the-number-of-components"
>
<option>1</option>
<option>2</option>
@@ -51,21 +86,24 @@
</select>
<label
+ xml:lang="en"
+ lang="en"
+ dir="ltr"
for="_new_component"
+ i18n:attributes="xml:lang two-letter-language-code;
+ lang two-letter-language-code;
+ dir text-direction;"
+ i18n:translate="type"
>Type</label>
<select
name="_new_component"
id="_new_component"
title="Select the type of component to add."
+ i18n:attributes="title select-the-type-of-components"
>
-
- <!--?
- It is not legal (X)HTML to have a span element here but I
- can't think of how else to do this...
- ?-->
<span
- petal:omit-tag="string:1"
+ petal:omit-tag=""
petal:repeat="option option_list"
>
<option
@@ -77,11 +115,19 @@
</select>
<input
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
type="submit"
name="_new_component_add"
id="_new_component_add"
value="Add"
title="Add the selected component(s) to the document."
+ i18n:attributes="lang two-letter-language-code;
+ xml:lang two-letter-language-code;
+ dir text-direction;
+ value add;
+ title title enter-a-title;"
/>
</p>
More information about the MKDoc-commit
mailing list