diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2005-01-02 12:53:28 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2005-01-02 12:53:28 +0000 |
commit | e8c58142f44da43019230e2643c5d174e6384722 (patch) | |
tree | 689d5d7a0cd2cce9c390acc1b1f911f5571ac5af /xslt/gettext | |
parent | 9cbf28b3b12b5aff56a653e4a16579d31293f848 (diff) | |
download | gnome-doc-utils-e8c58142f44da43019230e2643c5d174e6384722.tar.gz |
- Added db-title.xsl to ease title getting - Automatically output title,
* doc/xslt/C/gnome-doc-xslt.xml:
* xslt/docbook/common/Makefile.am:
* xslt/docbook/common/db-format.xml.in:
* xslt/docbook/common/db-xref.xsl:
* xslt/docbook/html/db2html-division.xsl:
* xslt/docbook/html/db2html.xsl:
* xslt/gettext/format2xsl.xsl:
- Added db-title.xsl to ease title getting
- Automatically output title, titleabbrev, and subtitle roles
* doc/xslt/C/translating.xml:
- Fixed typo
Diffstat (limited to 'xslt/gettext')
-rw-r--r-- | xslt/gettext/format2xsl.xsl | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/xslt/gettext/format2xsl.xsl b/xslt/gettext/format2xsl.xsl index 0fedd28..630147e 100644 --- a/xslt/gettext/format2xsl.xsl +++ b/xslt/gettext/format2xsl.xsl @@ -133,6 +133,27 @@ </xsl:apply-templates> </xslt:when> </xsl:for-each> + <xsl:if test="not(msg:msgstr[@role = 'title'])"> + <xslt:when test="$role = 'title'"> + <xslt:call-template name="db.title"> + <xslt:with-param name="node" select="$node"/> + </xslt:call-template> + </xslt:when> + </xsl:if> + <xsl:if test="not(msg:msgstr[@role = 'titleabbrev'])"> + <xslt:when test="$role = 'titleabbrev'"> + <xslt:call-template name="db.titleabbrev"> + <xslt:with-param name="node" select="$node"/> + </xslt:call-template> + </xslt:when> + </xsl:if> + <xsl:if test="not(msg:msgstr[@role = 'subtitle'])"> + <xslt:when test="$role = 'subtitle'"> + <xslt:call-template name="db.subtitle"> + <xslt:with-param name="node" select="$node"/> + </xslt:call-template> + </xslt:when> + </xsl:if> <xsl:choose> <xsl:when test="msg:msgstr[not(@role)]"> <xslt:otherwise> @@ -144,12 +165,14 @@ </xslt:otherwise> </xsl:when> <xsl:otherwise> - <xslt:message> - <xslt:text>No translation for </xslt:text> - <xslt:text><xsl:value-of select="$template/@name"/></xslt:text> - <xslt:text> with role </xslt:text> - <xslt:value-of select="$role"/> - </xslt:message> + <xslt:otherwise> + <xslt:message> + <xslt:text>No translation for </xslt:text> + <xslt:text><xsl:value-of select="$template/@name"/></xslt:text> + <xslt:text> with role </xslt:text> + <xslt:value-of select="$role"/> + </xslt:message> + </xslt:otherwise> </xsl:otherwise> </xsl:choose> </xslt:choose> |