Next in thread → Next in month →

Re: [docbook-apps] localization.

From
Keith Fahlgren <>
Date
2007-07-09T00:37:22+00:00
ID
Thread
Re: [docbook-apps] localization.
On 7/8/07, Keith Fahlgren <> wrote:
> On 7/1/07, Dave Pawson <> wrote:
> > Thomas Schraitle wrote:
> > > Hi Dave,
> > >
> > > On Sonntag, 1. Juli 2007, Dave Pawson wrote:
> > >> In en.xml etc, there are uses of %t, %n etc.
> > >
> > > %t = title
> > > %s = subtitle (if available)
> > > %n = number
> > > %p = page number (if applicable)

Here's a potential list of the "etc", if someone else needs it (the
template names may be helpful documentation). This is from
1.71.1/common/gentext.xsl:

<xsl:when test="$candidate = 't'">
  <xsl:apply-templates select="." mode="insert.title.markup">
--
<xsl:when test="$candidate = 's'">
  <xsl:apply-templates select="." mode="insert.subtitle.markup">
--
<xsl:when test="$candidate = 'n'">
  <xsl:apply-templates select="." mode="insert.label.markup">
--
<xsl:when test="$candidate = 'p'">
  <xsl:apply-templates select="." mode="insert.pagenumber.markup">
--
<xsl:when test="$candidate = 'o'">
  <!-- olink target document title -->
  <xsl:apply-templates select="." mode="insert.olink.docname.markup">
--
[%d doesn't seem to be in use as of 1.71]
<xsl:when test="$candidate = 'd'">
  <xsl:apply-templates select="." mode="insert.direction.markup">
--
[a literal %, finally]
<xsl:when test="$candidate = '%' ">
  <xsl:text>%</xsl:text>
</xsl:when>


HTH,
Keith
Next in thread → Next in month →