Ignore:
Timestamp:
10/15/2004 09:28:52 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
37eabe3
Parents:
1bec700
Message:

Full internationalization support into the stylesheets.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4292 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/pdf/lfs-index.xsl

    r1bec700 r3e0c81bb  
    1414  <xsl:template match="index" mode="title.markup">
    1515    <xsl:param name="allow-anchors" select="0"/>
    16     <xsl:text>Index</xsl:text>
     16    <xsl:call-template name="gentext">
     17      <xsl:with-param name="key">Index</xsl:with-param>
     18    </xsl:call-template>
    1719  </xsl:template>
    1820
     
    3133              <xsl:choose>
    3234                <xsl:when test="$divtitle = 'A'">
    33                   <xsl:text>Packages</xsl:text>
    34               </xsl:when>
    35               <xsl:when test="$divtitle = 'B'">
    36                   <xsl:text>Programs</xsl:text>
    37               </xsl:when>
    38               <xsl:when test="$divtitle = 'C'">
    39                   <xsl:text>Libraries</xsl:text>
    40               </xsl:when>
    41               <xsl:when test="$divtitle = 'D'">
    42                   <xsl:text>Scripts</xsl:text>
    43               </xsl:when>
    44               <xsl:when test="$divtitle = 'E'">
    45                   <xsl:text>Others</xsl:text>
    46               </xsl:when>
    47               <xsl:otherwise>
    48                 <xsl:value-of select="$divtitle"/>
    49               </xsl:otherwise>
    50             </xsl:choose>
     35                  <xsl:call-template name="gentext">
     36                    <xsl:with-param name="key">Packages</xsl:with-param>
     37                  </xsl:call-template>
     38                </xsl:when>
     39                <xsl:when test="$divtitle = 'B'">
     40                  <xsl:call-template name="gentext">
     41                    <xsl:with-param name="key">Programs</xsl:with-param>
     42                  </xsl:call-template>
     43                </xsl:when>
     44                <xsl:when test="$divtitle = 'C'">
     45                  <xsl:call-template name="gentext">
     46                    <xsl:with-param name="key">Libraries</xsl:with-param>
     47                  </xsl:call-template>
     48                </xsl:when>
     49                <xsl:when test="$divtitle = 'D'">
     50                  <xsl:call-template name="gentext">
     51                    <xsl:with-param name="key">Scripts</xsl:with-param>
     52                  </xsl:call-template>
     53                </xsl:when>
     54                <xsl:when test="$divtitle = 'E'">
     55                  <xsl:call-template name="gentext">
     56                    <xsl:with-param name="key">Others</xsl:with-param>
     57                  </xsl:call-template>
     58                </xsl:when>
     59                <xsl:otherwise>
     60                  <xsl:value-of select="$divtitle"/>
     61                </xsl:otherwise>
     62              </xsl:choose>
    5163            </xsl:with-param>
    5264          </xsl:call-template>
Note: See TracChangeset for help on using the changeset viewer.