Changeset 3e0c81bb for stylesheets


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

Location:
stylesheets
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-chunked2.xsl

    r1bec700 r3e0c81bb  
    1717  <xsl:include href="xhtml/lfs-xref.xsl"/>
    1818
     19    <!-- This file contains our localization strings (for internationalization) -->
     20  <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
     21
    1922    <!-- The CSS Stylesheet -->
    2023  <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/>
  • stylesheets/lfs-nochunks.xsl

    r1bec700 r3e0c81bb  
    1818  <xsl:include href="xhtml/lfs-toc.xsl"/>
    1919  <xsl:include href="xhtml/lfs-xref.xsl"/>
     20
     21    <!-- This file contains our localization strings (for internationalization) -->
     22  <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
    2023
    2124    <!-- Dropping some unwanted style attributes -->
  • stylesheets/lfs-pdf.xsl

    r1bec700 r3e0c81bb  
    1616  <xsl:include href="pdf/lfs-mixed.xsl"/>
    1717  <xsl:include href="pdf/lfs-xref.xsl"/>
     18
     19    <!-- This file contains our localization strings (for internationalization) -->
     20  <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
    1821
    1922    <!-- Paper size required by the publisher -->
  • 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>
  • stylesheets/xhtml/lfs-index.xsl

    r1bec700 r3e0c81bb  
    4747            <xsl:choose>
    4848              <xsl:when test="$divtitle = 'A'">
    49                 <xsl:text>Packages</xsl:text>
     49                <xsl:call-template name="gentext">
     50                  <xsl:with-param name="key">Packages</xsl:with-param>
     51                </xsl:call-template>
    5052             </xsl:when>
    5153             <xsl:when test="$divtitle = 'B'">
    52                 <xsl:text>Programs</xsl:text>
     54                <xsl:call-template name="gentext">
     55                  <xsl:with-param name="key">Programs</xsl:with-param>
     56                </xsl:call-template>
    5357             </xsl:when>
    5458             <xsl:when test="$divtitle = 'C'">
    55                 <xsl:text>Libraries</xsl:text>
     59                <xsl:call-template name="gentext">
     60                  <xsl:with-param name="key">Libraries</xsl:with-param>
     61                </xsl:call-template>
    5662             </xsl:when>
    5763             <xsl:when test="$divtitle = 'D'">
    58                 <xsl:text>Scripts</xsl:text>
     64                <xsl:call-template name="gentext">
     65                  <xsl:with-param name="key">Scripts</xsl:with-param>
     66                </xsl:call-template>
    5967             </xsl:when>
    6068              <xsl:when test="$divtitle = 'E'">
    61                   <xsl:text>Others</xsl:text>
     69                <xsl:call-template name="gentext">
     70                  <xsl:with-param name="key">Others</xsl:with-param>
     71                </xsl:call-template>
    6272              </xsl:when>
    6373             <xsl:otherwise>
     
    167177            </xsl:call-template>
    168178          </xsl:attribute>
    169           <xsl:text>description</xsl:text>
     179          <xsl:call-template name="gentext">
     180            <xsl:with-param name="key">description</xsl:with-param>
     181          </xsl:call-template>
    170182        </a>
    171183      </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.