You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2010/11/25 15:15:53 UTC
svn commit: r1039052 -
/lenya/branches/BRANCH_2_1_X/src/modules-core/i18n/xslt/flattenCatalogue.xsl
Author: andreas
Date: Thu Nov 25 14:15:52 2010
New Revision: 1039052
URL: http://svn.apache.org/viewvc?rev=1039052&view=rev
Log:
Remove duplicate i18n messages when flattening catalogue, allows overriding i18n messages via fallback.
Modified:
lenya/branches/BRANCH_2_1_X/src/modules-core/i18n/xslt/flattenCatalogue.xsl
Modified: lenya/branches/BRANCH_2_1_X/src/modules-core/i18n/xslt/flattenCatalogue.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules-core/i18n/xslt/flattenCatalogue.xsl?rev=1039052&r1=1039051&r2=1039052&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_1_X/src/modules-core/i18n/xslt/flattenCatalogue.xsl (original)
+++ lenya/branches/BRANCH_2_1_X/src/modules-core/i18n/xslt/flattenCatalogue.xsl Thu Nov 25 14:15:52 2010
@@ -25,6 +25,15 @@
</xsl:template>
+ <xsl:template match="i18n:message">
+ <xsl:if test="not(preceding::i18n:message[@key = current()/@key])">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:if>
+ </xsl:template>
+
+
<xsl:template match="@*|node()|comment()" priority="-2">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org