[Xfce4-commits] <xfce4-docs:xfce4-clipman-plugin-master> Update index.xsl to include translation copyright in the footer
Mike Massonnet
noreply at xfce.org
Sun Oct 23 14:38:01 CEST 2011
Updating branch refs/heads/xfce4-clipman-plugin-master
to 636a47b50216c442fb57e6f15e7875ec9daefc21 (commit)
from 2868104c088aa75fa928843d4bb36a24d4420256 (commit)
commit 636a47b50216c442fb57e6f15e7875ec9daefc21
Author: Mike Massonnet <mmassonnet at xfce.org>
Date: Sun Oct 23 14:37:44 2011 +0200
Update index.xsl to include translation copyright in the footer
index.xsl | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/index.xsl b/index.xsl
index 7d08e31..faf6159 100644
--- a/index.xsl
+++ b/index.xsl
@@ -102,9 +102,20 @@ includes the table of contents with links.
<xsl:param name="node"/>
<div class="copyrights">
<xsl:for-each select="$node/mal:info/mal:credit[mal:years]">
- <div class="copyright">
- Copyright <xsl:value-of select="concat('© ', mal:years, ' ', mal:name)"/>
- </div>
+ <xsl:if test="contains(concat(' ', @type, ' '), ' author ')">
+ <div class="copyright">
+ Copyright <xsl:value-of select="concat('© ', mal:years, ' ', mal:name)"/>
+ </div>
+ </xsl:if>
+ <xsl:if test="contains(concat(' ', @type, ' '), ' translator ')">
+ <div class="copyright">
+ <xsl:call-template name="l10n.gettext">
+ <xsl:with-param name="msgid" select="'Translation'"/>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="concat('© ', mal:years, ' ', mal:name)"/>
+ </div>
+ </xsl:if>
</xsl:for-each>
</div>
</xsl:template>
More information about the Xfce4-commits
mailing list