You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by he...@apache.org on 2005/09/09 16:22:41 UTC

svn commit: r279782 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-calendar-styling.xsl

Author: hepabolu
Date: Fri Sep  9 07:22:35 2005
New Revision: 279782

URL: http://svn.apache.org/viewcvs?rev=279782&view=rev
Log:
calendar.alt is now localized

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-calendar-styling.xsl

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-calendar-styling.xsl
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-calendar-styling.xsl?rev=279782&r1=279781&r2=279782&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-calendar-styling.xsl (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-calendar-styling.xsl Fri Sep  9 07:22:35 2005
@@ -17,6 +17,7 @@
 <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"
+                xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
                 exclude-result-prefixes="fi">
   <!--+
       | This stylesheet is designed to be included by 'forms-advanced-styling.xsl'.
@@ -71,14 +72,12 @@
       <!-- calendar popup -->
       <xsl:choose>
         <xsl:when test="@state = 'disabled'">
-          <!-- TODO: i18n key for @alt -->
-          <img src="{$resources-uri}/img/cal.gif" alt="Calendar"/>
+          <img src="{$resources-uri}/img/cal.gif" alt="forms:calendar.alt" i18n:attr="alt"/>
         </xsl:when>
         <xsl:otherwise>
           <a href="#" name="{$id}" id="{$id}"
              onclick="forms_calendar.select(forms_getForm(this)['{@id}'],'{$id}','{$format}'); return false;">
-            <!-- TODO: i18n key for @alt -->
-            <img src="{$resources-uri}/img/cal.gif" alt="Calendar"/>
+            <img src="{$resources-uri}/img/cal.gif" alt="forms:calendar.alt" i18n:attr="alt"/>
           </a>
         </xsl:otherwise>
       </xsl:choose>