You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ro...@apache.org on 2004/03/03 10:46:52 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/xslt/authoring create.xsl

roku        2004/03/03 01:46:52

  Modified:    src/webapp/lenya/resources/i18n cmsui.xml cmsui_de.xml
               src/webapp/lenya/xslt/authoring create.xsl
  Log:
  Added i18n support for global Create Doc screen.
  
  Revision  Changes    Path
  1.41      +6 -1      cocoon-lenya/src/webapp/lenya/resources/i18n/cmsui.xml
  
  Index: cmsui.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/resources/i18n/cmsui.xml,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- cmsui.xml	2 Mar 2004 16:02:33 -0000	1.40
  +++ cmsui.xml	3 Mar 2004 09:46:51 -0000	1.41
  @@ -65,6 +65,7 @@
     <message key="Date">Date</message>
     <message key="Back">Back</message>
     <message key="Add">Add</message>
  +  <message key="Create">Create</message>  
     
     <!-- submit screen -->
     <message key="submit-for-approval">Submit {0} for approval</message>  
  @@ -242,4 +243,8 @@
     <message key="Publish and Export">Publish and&#160;Export</message>
     <message key="doc-has-links-to-unpublished">This document has links to the following unpublished documents:</message>
   
  +   <!-- New Document -->
  +   <message key="Please check the following possible causes of the exception">Please check the following possible causes of the exception.</message>
  +   <message key="Parent ID">Parent ID</message>
  +    
   </catalogue>
  
  
  
  1.45      +7 -2      cocoon-lenya/src/webapp/lenya/resources/i18n/cmsui_de.xml
  
  Index: cmsui_de.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/resources/i18n/cmsui_de.xml,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- cmsui_de.xml	25 Feb 2004 20:42:39 -0000	1.44
  +++ cmsui_de.xml	3 Mar 2004 09:46:51 -0000	1.45
  @@ -65,7 +65,8 @@
     <message key="Date">Datum</message>
     <message key="Back">Zur&#252;ck</message>
     <message key="Add">Hinzuf&#252;gen</message>
  -
  +  <message key="Create">Erstellen</message>  
  +  
     <!-- submit screen -->
     <message key="submit-for-approval">Dokument {0} freigeben</message>
     <message key="submit-for-approval?">M&#246;chten Sie {0} zur Durchsicht freigeben?</message>  
  @@ -242,6 +243,10 @@
     <message key="Active jobs">Aktive Aufgaben</message>
     <message key="Publish and Export">Ver&#246;ffentlichen und&#160;exportieren</message>
     <message key="doc-has-links-to-unpublished">Dieses Dokument hat Referenzen auf folgende unver&#246;ffentlichte Dokumente:</message>
  +
  +   <!-- New Document -->
  +   <message key="Please check the following possible causes of the exception">Bitte &#252;berpr&#252;fen Sie folgende Ursachen f&#252;r die Ausnahme.</message>
  +   <message key="Parent ID">&#220;bergerodnete ID</message>
   
   </catalogue>
   
  
  
  
  1.6       +22 -19    cocoon-lenya/src/webapp/lenya/xslt/authoring/create.xsl
  
  Index: create.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/authoring/create.xsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- create.xsl	14 Feb 2004 16:31:24 -0000	1.5
  +++ create.xsl	3 Mar 2004 09:46:51 -0000	1.6
  @@ -1,16 +1,22 @@
  -<?xml version="1.0" encoding="iso-8859-1"?>
  +<?xml version="1.0" encoding="utf-8"?>
  +
  +<!--
  +  $Id$
  +-->
   
   <xsl:stylesheet version="1.0"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  -    xmlns="http://www.w3.org/1999/xhtml">
  +    xmlns="http://www.w3.org/1999/xhtml"
  +    xmlns:i18n="http://apache.org/cocoon/i18n/2.1"    
  +>
     
  -  <xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
  +  <xsl:output version="1.0" indent="yes" encoding="UTF-8"/>
     
     <xsl:param name="lenya.usecase" select="'create'"/>
     
     <xsl:template match="/">
   	  <page:page xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0">
  -	  <page:title>Create Document</page:title>
  +	  <page:title><i18n:text>New Document</i18n:text></page:title>
   	  <page:body>
   	    <xsl:apply-templates/>
       </page:body>
  @@ -23,7 +29,7 @@
       
       <xsl:if test="not(exception)">
         <div class="lenya-box">
  -        <div class="lenya-box-title">New Document</div>
  +        <div class="lenya-box-title"><i18n:text>New Document</i18n:text></div>
         <div class="lenya-box-body">  
           <script Language="JavaScript">
   function validRequired(formField,fieldLabel)
  @@ -77,19 +83,19 @@
   	  <input type="hidden" name="properties.create.doctype" value="{/parent-child/doctype}"/>
   	  <table class="lenya-table-noborder">
   	    <tr>
  -	      <td class="lenya-form-caption">Parent ID:</td><td><xsl:value-of select="/parent-child/parentid"/></td>
  +	      <td class="lenya-form-caption"><i18n:text>Parent ID</i18n:text>:</td><td><xsl:value-of select="/parent-child/parentid"/></td>
   	    </tr>
   	    <tr>
  -	      <td class="lenya-form-caption">Document ID:</td><td><input class="lenya-form-element" type="text" name="properties.create.child-id"/></td>
  +	      <td class="lenya-form-caption"><i18n:text>Document ID</i18n:text>:</td><td><input class="lenya-form-element" type="text" name="properties.create.child-id"/></td>
   	    </tr>
   	    <tr>
  -	      <td class="lenya-form-caption">Name:</td><td><input class="lenya-form-element" type="text" name="properties.create.child-name"/></td>
  +	      <td class="lenya-form-caption"><i18n:text>Name</i18n:text>:</td><td><input class="lenya-form-element" type="text" name="properties.create.child-name"/></td>
   	    </tr>
   	    <tr>
   	      <td/>
   	      <td>
  -            <input type="submit" value="Create"/>&#160;
  -            <input type="button" onClick="location.href='{/parent-child/referer}';" value="Cancel"/>
  +            <input i18n:attr="value" type="submit" value="Create"/>&#160;
  +            <input i18n:attr="value" type="button" onClick="location.href='{/parent-child/referer}';" value="Cancel"/>
   	      </td>
   	    </tr>
   	  </table>
  @@ -100,17 +106,14 @@
     </xsl:template>
     
     <xsl:template match="exception">
  -    <font color="red">EXCEPTION</font><br />
  -    Go <a href="{../referer}">back</a> to page.<br />
  -    <p>
  -      Exception handling isn't very good at the moment. 
  -      For further details please take a look at the log-files
  -      of Cocoon. In most cases it's one of the two possible exceptions:
  +    <font color="red"><i18n:text>EXCEPTION</i18n:text></font><br />
  +    <a href="{../referer}"><i18n:text>Back</i18n:text></a><br />
  +    <p><i18n:text>Please check the following possible causes of the exception</i18n:text>
         <ol>
  -	<li>The id is not allowed to have whitespaces</li>
  -	<li>The id is already in use</li>
  +	<li><i18n:text>The id is not allowed to have whitespaces</i18n:text></li>
  +	<li><i18n:text>The id is already in use</i18n:text></li>
         </ol>
  -      Exception handling will be improved in the near future.
  +      <i18n:text>Exception handling will be improved in the near future</i18n:text>
       </p>
     </xsl:template>
     
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org