Changeset 1180

Show
Ignore:
Timestamp:
12/27/06 10:52:59
Author:
johnsa
Message:

slight improvement to descriptive recurrence output in edit event form.

Files:

Legend:

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

    r1179 r1180  
    10211021                  <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 
    10221022                  <xsl:value-of select="."/><xsl:choose> 
    1023                     <xsl:when test=". = '11' or . = '12' or . = '13'">th</xsl:when> 
     1023                    <xsl:when test="substring(., string-length(.)-1, 2) = '11' or 
     1024                                    substring(., string-length(.)-1, 2) = '12' or 
     1025                                    substring(., string-length(.)-1, 2) = '13'">th</xsl:when> 
    10241026                    <xsl:when test="substring(., string-length(.), 1) = '1'">st</xsl:when> 
    10251027                    <xsl:when test="substring(., string-length(.), 1) = '2'">nd</xsl:when> 
     
    10371039                  <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 
    10381040                  <xsl:value-of select="."/><xsl:choose> 
    1039                     <xsl:when test=". = '11' or . = '12' or . = '13'">th</xsl:when> 
     1041                    <xsl:when test="substring(., string-length(.)-1, 2) = '11' or 
     1042                                    substring(., string-length(.)-1, 2) = '12' or 
     1043                                    substring(., string-length(.)-1, 2) = '13'">th</xsl:when> 
    10401044                    <xsl:when test="substring(., string-length(.), 1) = '1'">st</xsl:when> 
    10411045                    <xsl:when test="substring(., string-length(.), 1) = '2'">nd</xsl:when> 
     
    10531057                  <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 
    10541058                  <xsl:value-of select="."/><xsl:choose> 
    1055                     <xsl:when test=". = '11' or . = '12' or . = '13'">th</xsl:when> 
     1059                    <xsl:when test="substring(., string-length(.)-1, 2) = '11' or 
     1060                                    substring(., string-length(.)-1, 2) = '12' or 
     1061                                    substring(., string-length(.)-1, 2) = '13'">th</xsl:when> 
    10561062                    <xsl:when test="substring(., string-length(.), 1) = '1'">st</xsl:when> 
    10571063                    <xsl:when test="substring(., string-length(.), 1) = '2'">nd</xsl:when> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1179 r1180  
    22082208        <td class="fieldval"> 
    22092209          <!-- Output descriptive recurrence information.  Probably not 
    2210                complete yet. Replace all freq strings so can be internationalized. --> 
     2210               complete yet. Replace all strings so can be 
     2211               more easily internationalized. --> 
    22112212          <xsl:if test="form/recurrence"> 
    22122213            <div id="recurrenceInfo"> 
     
    22842285                  <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 
    22852286                  <xsl:value-of select="."/><xsl:choose> 
    2286                     <xsl:when test=". = '11' or . = '12' or . = '13'">th</xsl:when> 
     2287                    <xsl:when test="substring(., string-length(.)-1, 2) = '11' or 
     2288                                    substring(., string-length(.)-1, 2) = '12' or 
     2289                                    substring(., string-length(.)-1, 2) = '13'">th</xsl:when> 
    22872290                    <xsl:when test="substring(., string-length(.), 1) = '1'">st</xsl:when> 
    22882291                    <xsl:when test="substring(., string-length(.), 1) = '2'">nd</xsl:when> 
     
    23002303                  <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 
    23012304                  <xsl:value-of select="."/><xsl:choose> 
    2302                     <xsl:when test=". = '11' or . = '12' or . = '13'">th</xsl:when> 
     2305                    <xsl:when test="substring(., string-length(.)-1, 2) = '11' or 
     2306                                    substring(., string-length(.)-1, 2) = '12' or 
     2307                                    substring(., string-length(.)-1, 2) = '13'">th</xsl:when> 
    23032308                    <xsl:when test="substring(., string-length(.), 1) = '1'">st</xsl:when> 
    23042309                    <xsl:when test="substring(., string-length(.), 1) = '2'">nd</xsl:when> 
     
    23162321                  <xsl:if test="position() != 1 and position() = last()"> and </xsl:if> 
    23172322                  <xsl:value-of select="."/><xsl:choose> 
    2318                     <xsl:when test=". = '11' or . = '12' or . = '13'">th</xsl:when> 
     2323                    <xsl:when test="substring(., string-length(.)-1, 2) = '11' or 
     2324                                    substring(., string-length(.)-1, 2) = '12' or 
     2325                                    substring(., string-length(.)-1, 2) = '13'">th</xsl:when> 
    23192326                    <xsl:when test="substring(., string-length(.), 1) = '1'">st</xsl:when> 
    23202327                    <xsl:when test="substring(., string-length(.), 1) = '2'">nd</xsl:when>