Changeset 2232

Show
Ignore:
Timestamp:
06/25/09 16:17:09
Author:
johnsa
Message:

user client: fix task #393 - Role and Partstat should be localized

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r2223 r2232  
    23382338                  </td> 
    23392339                  <td class="role"> 
    2340                     <xsl:value-of select="role"/> 
     2340                    <xsl:apply-templates select="role"/> 
    23412341                  </td> 
    23422342                  <td class="status"> 
    2343                     <xsl:value-of select="partstat"/> 
     2343                    <xsl:apply-templates select="partstat"/> 
    23442344                  </td> 
    23452345                </tr> 
     
    43514351          </td> 
    43524352          <td class="role"> 
    4353             <xsl:value-of select="role"/> 
     4353            <xsl:apply-templates select="role"/> 
    43544354          </td> 
    43554355          <td class="status"> 
    4356             <xsl:value-of select="partstat"/> 
     4356            <xsl:apply-templates select="partstat"/> 
    43574357          </td> 
    43584358        </tr> 
    43594359      </xsl:for-each> 
    43604360    </table> 
     4361  </xsl:template> 
     4362 
     4363  <xsl:template match="partstat"> 
     4364    <xsl:choose> 
     4365      <xsl:when test=". = 'NEEDS-ACTION' or . = ''">needs action</xsl:when> 
     4366      <xsl:when test=". = 'ACCEPTED'">accepted</xsl:when> 
     4367      <xsl:when test=". = 'DECLINED'">declined</xsl:when> 
     4368      <xsl:when test=". = 'TENTATIVE'">tentative</xsl:when> 
     4369      <xsl:when test=". = 'DELEGATED'">delegated</xsl:when> 
     4370      <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> 
     4371    </xsl:choose> 
     4372  </xsl:template> 
     4373 
     4374  <xsl:template match="role"> 
     4375    <xsl:choose> 
     4376      <xsl:when test=". = 'REQ-PARTICIPANT' or . = ''">required participant</xsl:when> 
     4377      <xsl:when test=". = 'CHAIR'">chair</xsl:when> 
     4378      <xsl:when test=". = 'OPT-PARTICIPANT'">optional participant</xsl:when> 
     4379      <xsl:when test=". = 'NON-PARTICIPANT'">non-participant</xsl:when> 
     4380      <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> 
     4381    </xsl:choose> 
    43614382  </xsl:template> 
    43624383 
     
    72897310                  <tr> 
    72907311                    <td class="role"> 
    7291                       <xsl:value-of select="role"/> 
     7312                      <xsl:apply-templates select="role"/> 
    72927313                    </td> 
    72937314                    <td class="status"> 
    7294                       <xsl:value-of select="partstat"/> 
     7315                      <xsl:apply-templates select="partstat"/> 
    72957316                    </td> 
    72967317                    <td> 
     
    74117432                  </xsl:when> 
    74127433                  <xsl:otherwise> 
    7413                     <xsl:value-of select="attendees/attendee/partstat"/> 
     7434                    <xsl:apply-templates select="attendees/attendee/partstat"/> 
    74147435                  </xsl:otherwise> 
    74157436                </xsl:choose> 
     
    74727493          </td> 
    74737494          <td class="fieldval scheduleActions"> 
    7474             <xsl:value-of select="attendees/attendee/partstat"/> 
     7495            <xsl:apply-templates select="attendees/attendee/partstat"/> 
    74757496            <xsl:if test="comments/value"> 
    74767497              <p><strong>Comments:</strong></p>